Announcement

Collapse
No announcement yet.

Problem with kernel updates

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Problem with kernel updates

    Good afternoon.

    I have a problem with kernel updates. I'm currently using kernel 5.15.0-76-generic.
    The update system showed me a lot of them. After installing them (possibly I shouldn't have) I could no longer boot.


    Click image for larger version  Name:	modules1.png Views:	0 Size:	47.8 KB ID:	671862


    Click image for larger version  Name:	modules.png Views:	0 Size:	74.9 KB ID:	671866


    Click image for larger version  Name:	modules3.png Views:	59 Size:	75.2 KB ID:	671868


    The first error it showed me when booting was:

    -- Failed to start Virtualbox linux kernel module

    I had to reboot and reload the previous kernel (5.15.0-76-generic).

    I deleted all the new updates and tried to keep the linux-image-5.19.0-46-generic kernel and installed its headers:

    sudo apt install linux-headers-​5.19.0-46-generic

    but when I tried to boot with that kernel it failed to boot either. It got stuck after displaying the message:​

    -- loaded console scheme

    I rebooted again with the current kernel (5.15.0-76-generic) and it shows again that these updates are available.

    Any suggestions please?.​ Thanks in advance.
    Attached Files
    Last edited by Hendrixx; Jul 01, 2023, 12:33 PM.

    #2
    Why and from where did you install all those kernels?!?​
    If you don't know:

    apt search linux | grep -E "^linux" | grep -i install
    apt policy and apt show the single packages to get more info.

    sudo apt purge any kernels and their headers except 5.15.x-x-generic and 5.19.x-x-generic and -hwe that came from the *Ubuntu repositories (…-oracle, …-intel…, -nvidia, …-lowlatency, … etc. - they don't belong to a standard Kubuntu system except you have a very good reason and hopefully know exactly what you are doing).

    sudo apt autoremove --purge && sudo apt autoclean afterwards to be sure (and read and understand the output before entering "y"!).
    Then reboot.
    Last edited by Schwarzer Kater; Jun 30, 2023, 04:33 PM.
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    Comment


      #3
      Similar issue here. Now it started installing 5.19.0-1010-nvidia-lowlatency.
      I was running 5.15.0.-76 or 6x and this is the first time when it needed to perform restart to finish upgrading and to run upgrade command after restart on that new kernel.

      Fortunately it is booting and running but not everything works.

      Currently, I dont see any related issue for ubuntu on askubuntu, so maybe update is still too fresh...
      Last edited by dejjanku; Jun 30, 2023, 06:40 PM.

      Comment


        #4


        Originally posted by Schwarzer Kater View Post
        Why and from where did you install all those kernels?!?​
        Thank you for your reply.

        All of these updates were released through the Discover and they keep showing up as updates (I don't know if there is a way to cancel them so that they are not shown every time there are updates).

        Originally posted by Schwarzer Kater View Post
        apt search linux | grep -E "^linux" | grep -i install
        I get no output with that command, only with:

        apt search linux | grep -E "^linux"

        and it is a very very long list.

        What I have installed is:


        uname -r
        5.15.0-76-generic


        dpkg --get-selections | grep linux-image

        linux-image-5.15.0-75-generic install
        linux-image-5.15.0-76-generic install
        linux-image-5.19.0-46-generic install
        linux-image-generic install

        dpkg --get-selections | grep linux-headers

        linux-headers-5.15.0-75 install
        linux-headers-5.15.0-75-generic install
        linux-headers-5.15.0-76 install
        linux-headers-5.15.0-76-generic install
        linux-headers-5.19.0-46-generic install
        linux-headers-generic install


        When I try to boot with the kernel linux-image-5.19.0-46-generic (which it does automatically) it gets stuck after showing in the console:

        --- loading console scheme​


        And I have to reboot again and enter the boot GUI to choose which kernel to boot with.
        I don't know, if besides deleting the kernel that doesn't allow me to boot, there is some way to leave it but select somewhere to automatically boot with one of the installed ones that do allow me to boot, such as linux-image-5.15.0-76-generic, which is the one I'm using.​



        Originally posted by Schwarzer Kater View Post
        sudo apt purge any kernels and their headers except 5.15.x-x-generic and 5.19.x-x-generic and -hwe that came from the *Ubuntu repositories (…-oracle, …-intel…, -nvidia, …-lowlatency, … etc. - they don't belong to a standard Kubuntu system except you have a very good reason and hopefully know exactly what you are doing).

        sudo apt autoremove --purge && sudo apt autoclean afterwards to be sure (and read and understand the output before entering "y"!).
        Then reboot.
        I hope I have clarified the problem a little more.

        Comment


          #5
          If none of the "wrong" kernels actually is installed a simple sudo update-grub should correct your GRUB boot menu (in theory)…
          You could also sudo apt purge linux-image-5.19.0-46-generic && sudo apt autoremove --purge and sudo apt install --install-recommends linux-generic-hwe-22.04 afterwards ande see if this lets you boot from the official 5.19.x kernel then.

          But if Discover still wants to install all these "wrong" kernel there has to be a reason for it.
          Did you install something other than from the *Ubuntu repositories - from third-party PPAs, .run- or .deb-files? Like Nvidia drivers, VirtualBox, etc… ?

          What is in your /etc/apt/sources.list and in your /etc/apt/sources.list.d/ ?
          Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
          Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

          get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
          install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

          Comment


            #6
            Originally posted by Schwarzer Kater View Post

            But if Discover still wants to install all these "wrong" kernel there has to be a reason for it.
            Did you install something other than from the *Ubuntu repositories - from third-party PPAs, .run- or .deb-files? Like Nvidia drivers, VirtualBox, etc… ?

            What is in your /etc/apt/sources.list and in your /etc/apt/sources.list.d/ ?

            /etc/apt/sources.list

            # deb cdrom:[Kubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jam>

            # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
            # newer versions of the distribution.
            deb http://es.archive.ubuntu.com/ubuntu/ jammy main restricted
            # deb-src http://es.archive.ubuntu.com/ubuntu/ jammy main restricted

            ## Major bug fix updates produced after the final release of the
            ## distribution.
            deb http://es.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
            # deb-src http://es.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
            ...

            deb http://es.archive.ubuntu.com/ubuntu/ jammy multiverse
            # deb-src http://es.archive.ubuntu.com/ubuntu/ jammy multiverse
            deb http://es.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
            # deb-src http://es.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

            ...

            ## or updates from the Ubuntu security team.
            deb http://es.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe mul>
            # deb-src http://es.archive.ubuntu.com/ubuntu/ jammy-backports main restricted univer>

            deb http://security.ubuntu.com/ubuntu jammy-security main restricted
            # deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
            deb http://security.ubuntu.com/ubuntu jammy-security universe
            # deb-src http://security.ubuntu.com/ubuntu jammy-security universe
            deb http://security.ubuntu.com/ubuntu jammy-security multiverse
            # deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

            ...



            /etc/apt/sources.list.d$ ll
            total 24
            drwxr-xr-x 2 root root 4096 ene 5 19:29 ./
            drwxr-xr-x 8 root root 4096 dic 6 2022 ../
            -rw-r--r-- 1 root root 106 dic 8 2022 archive_uri-https_download_sublimetext_com_-j
            ammy.list
            -rw-r--r-- 1 root root 190 dic 8 2022 google-chrome.list
            -rw-r--r-- 1 root root 125 dic 8 2022 virtualbox.list
            -rw-r--r-- 1 root root 203 ene 5 19:29 vscode.list


            But I have not had any problems until yesterday with the installation of these updates.

            Originally posted by Schwarzer Kater View Post
            If none of the "wrong" kernels actually is installed a simple sudo update-grub should correct your GRUB boot menu (in theory)…
            You could also sudo apt purge linux-image-5.19.0-46-generic && sudo apt autoremove --purge and sudo apt install --install-recommends linux-generic-hwe-22.04 afterwards ande see if this lets you boot from the official 5.19.x kernel then.​


            dpkg --get-selections | grep linux-image
            linux-image-5.15.0-75-generic install
            linux-image-5.15.0-76-generic install
            linux-image-5.19.0-46-generic install
            linux-image-generic install
            linux-image-generic-hwe-22.04 install
            linux-image-unsigned-5.19.0-46-generic deinstall

            dpkg --get-selections | grep linux-headers
            ​linux-headers-5.15.0-75 install
            linux-headers-5.15.0-75-generic install
            linux-headers-5.15.0-76 install
            linux-headers-5.15.0-76-generic install
            linux-headers-5.19.0-46-generic install
            linux-headers-generic install
            linux-headers-generic-hwe-22.04 install



            But when it tries to boot with the new kernel it gets stuck again and I have to reboot and boot with an old kernel.

            The bios "errors" are always displayed when the system boots up.
            I think I'll have to uninstall it again and go back to working with the linux-image-5.15.0-76-generic kernel as before.

            Click image for larger version

Name:	pic.jpg
Views:	1008
Size:	138.2 KB
ID:	671889
            Last edited by Hendrixx; Jul 01, 2023, 06:14 AM.

            Comment


              #7
              ACPI errors are "quite common" due to hardware manufacturers not following standards, actually having errors in their firmware or a regression in the Linux kernel - if everything works concerning ACPI it is common practice to simply ignore them. Sometimes a UEFI/BIOS update or a kernel update can correct them.

              Your /etc/apt/sources.list looks good.

              You have additional repositories in your /etc/apt/sources.list.d/ , though.
              This would be something to look into.
              Also look into dependencies that pull in the …-nvidia, …-oracle, -…etc. kernels - like a VirtualBox installed directly from Oracle and not from the *Ubuntu repositories or a manually installed Nvidia (beta) driver for example…
              Last edited by Schwarzer Kater; Jul 01, 2023, 07:28 AM.
              Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
              Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

              get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
              install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

              Comment


                #8
                Originally posted by Schwarzer Kater View Post

                You have additional repositories in your /etc/apt/sources.list.d/ , though.
                This would be something to look into.
                Also look into dependencies that pull in the …-nvidia, …-oracle, -…etc. kernels - like a VirtualBox installed directly from Oracle and not from the *Ubuntu repositories or a manually installed Nvidia (beta) driver for example…
                Thanks again for your help.

                I proceeded to uninstall the version of Virtualbox I had installed (7.0) and reinstalled it from the Ubuntu repositories (6.1)


                dpkg --get-selections | grep -i virtualbox
                virtualbox install
                virtualbox-dkms install
                virtualbox-qt install


                /etc/apt/sources.list.d$ ll
                total 20
                drwxr-xr-x 2 root root 4096 jul 1 16:57 ./
                drwxr-xr-x 8 root root 4096 dic 6 2022 ../
                -rw-r--r-- 1 root root 106 dic 8 2022 archive_uri-https_download_sublimetext_com_-j
                ammy.list
                -rw-r--r-- 1 root root 190 dic 8 2022 google-chrome.list
                -rw-r--r-- 1 root root 203 ene 5 19:29 vscode.list



                Afterwards, I tried booting with the new kernel but got the same response; reboot and back to the old one.
                I think I have Nvidia installed from the repositories but It is possible that there are dependencies there that should not be there and that is why it asks me every time I start that I have updates.


                dpkg --get-selections | grep -i nvidia
                libnvidia-cfg1-470:amd64 install
                libnvidia-common-470 install
                libnvidia-compute-470:amd64 install
                libnvidia-compute-470:i386 install
                libnvidia-decode-470:amd64 install
                libnvidia-decode-470:i386 install
                libnvidia-egl-wayland1:amd64 install
                libnvidia-encode-470:amd64 install
                libnvidia-encode-470:i386 install
                libnvidia-extra-470:amd64 install
                libnvidia-fbc1-470:amd64 install
                libnvidia-fbc1-470:i386 install
                libnvidia-gl-470:amd64 install
                libnvidia-gl-470:i386 install
                libnvidia-ifr1-470:amd64 install
                libnvidia-ifr1-470:i386 install
                linux-modules-5.15.0-1028-nvidia deinstall
                linux-modules-nvidia-470-5.15.0-56-generic deinstall
                linux-modules-nvidia-470-5.15.0-57-generic deinstall
                linux-modules-nvidia-470-5.15.0-58-generic deinstall
                linux-modules-nvidia-470-5.15.0-60-generic deinstall
                linux-modules-nvidia-470-5.15.0-67-generic deinstall
                linux-modules-nvidia-470-5.15.0-69-generic deinstall
                linux-modules-nvidia-470-5.15.0-70-generic deinstall
                linux-modules-nvidia-470-5.15.0-71-generic deinstall
                linux-modules-nvidia-470-5.15.0-72-generic deinstall
                linux-modules-nvidia-470-5.15.0-73-generic deinstall
                linux-modules-nvidia-470-5.15.0-75-generic deinstall
                linux-modules-nvidia-470-5.15.0-76-generic install
                linux-modules-nvidia-470-generic install
                linux-objects-nvidia-470-5.15.0-1028-nvidia deinstall
                linux-objects-nvidia-470-5.15.0-1031-intel-iotg deinstall
                linux-objects-nvidia-470-5.15.0-1038-oracle deinstall
                linux-objects-nvidia-470-5.15.0-56-generic deinstall
                linux-objects-nvidia-470-5.15.0-57-generic deinstall
                linux-objects-nvidia-470-5.15.0-58-generic deinstall
                linux-objects-nvidia-470-5.15.0-60-generic deinstall
                linux-objects-nvidia-470-5.15.0-67-generic deinstall
                linux-objects-nvidia-470-5.15.0-69-generic deinstall
                linux-objects-nvidia-470-5.15.0-70-generic deinstall
                linux-objects-nvidia-470-5.15.0-71-generic deinstall
                linux-objects-nvidia-470-5.15.0-72-generic deinstall
                linux-objects-nvidia-470-5.15.0-73-generic deinstall
                linux-objects-nvidia-470-5.15.0-75-generic deinstall
                linux-objects-nvidia-470-5.15.0-76-generic install
                linux-objects-nvidia-470-5.15.0-76-lowlatency deinstall
                linux-objects-nvidia-470-5.17.0-1033-oem deinstall
                linux-objects-nvidia-470-5.19.0-1026-oracle deinstall
                linux-objects-nvidia-470-5.19.0-1028-lowlatency deinstall
                linux-objects-nvidia-470-6.1.0-1015-oem deinstall
                linux-signatures-nvidia-5.15.0-76-generic install
                nvidia-compute-utils-470 install
                nvidia-driver-470 install
                nvidia-kernel-common-470 install
                nvidia-kernel-source-470 install
                nvidia-prime install
                nvidia-settings install
                nvidia-utils-470 install
                xserver-xorg-video-nvidia-470 install



                Any suggestions are welcome.

                Comment


                  #9
                  You could
                  sudo apt purge \*nvidia\*
                  sudo apt autoremove --purge && sudo apt autoclean (optional, but I would recommend it - read and understand the output before entering "y", please)
                  sudo ubuntu-drivers install nvidia:470
                  reboot

                  This should remove all the Nvidia stuff (including the kernel packages) and then cleanly reinstall the Nvidia drivers for your graphics card (the 470.x seems to be the one you need) from the *Ubuntu repositories.
                  Last edited by Schwarzer Kater; Jul 01, 2023, 10:27 AM.
                  Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
                  Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

                  get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
                  install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

                  Comment


                    #10
                    Originally posted by Schwarzer Kater View Post
                    You could
                    sudo apt purge \*nvidia\*
                    sudo apt autoremove --purge && sudo apt autoclean (optional, but I would recommend it - read and understand the output before entering "y", please)
                    sudo ubuntu-drivers install nvidia:470
                    reboot

                    This should remove all the Nvidia stuff (including the kernel packages) and then cleanly reinstall the Nvidia drivers for your graphics card (the 470.x seems to be the one you need) from the *Ubuntu repositories.
                    It was so. I had a mess in Nvidia drivers and dependencies.


                    $ uname -r
                    5.19.0-46-generic



                    dpkg --get-selections | grep -i nvidia
                    libnvidia-cfg1-470:amd64 install
                    libnvidia-common-470 install
                    libnvidia-compute-470:amd64 install
                    libnvidia-compute-470:i386 install
                    libnvidia-decode-470:amd64 install
                    libnvidia-decode-470:i386 install
                    libnvidia-egl-wayland1:amd64 install
                    libnvidia-encode-470:amd64 install
                    libnvidia-encode-470:i386 install
                    libnvidia-extra-470:amd64 install
                    libnvidia-fbc1-470:amd64 install
                    libnvidia-fbc1-470:i386 install
                    libnvidia-gl-470:amd64 install
                    libnvidia-gl-470:i386 install
                    libnvidia-ifr1-470:amd64 install
                    libnvidia-ifr1-470:i386 install
                    linux-modules-nvidia-470-5.19.0-46-generic install
                    linux-modules-nvidia-470-generic-hwe-22.04 install
                    linux-objects-nvidia-470-5.19.0-46-generic install
                    linux-signatures-nvidia-5.19.0-46-generic install
                    nvidia-compute-utils-470 install
                    nvidia-driver-470 install
                    nvidia-kernel-common-470 install
                    nvidia-kernel-source-470 install
                    nvidia-prime install
                    nvidia-settings install
                    nvidia-utils-470 install
                    xserver-xorg-video-nvidia-470 install


                    No longer shows the long list of previous updates.
                    I'll write down this method to install the Nvidia drivers the right way next time.

                    Thank you very much.

                    Comment


                      #11
                      So, to which kernel version do you boot now?

                      Comment


                        #12
                        Originally posted by dejjanku View Post
                        So, to which kernel version do you boot now?

                        uname -r
                        5.19.0-46-generic


                        I followed the process as instructed by Schwarzer Kater


                        sudo apt install --install-recommends linux-generic-hwe-22.04

                        Comment

                        Working...
                        X