Announcement

Collapse
No announcement yet.

Where is this information coming from?

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

    Where is this information coming from?

    KDE neon 5.22 fully updated.

    Running kernel version 5.8.0-63-generic (64-bit).

    dpkg --list shows a 5.4 kernel as being installed. That can't be, as that kernel version isn't available to be installed, or at least, it isn't installable now.
    Code:
    [FONT=monospace][COLOR=#000000]dpkg --list | grep linux-image      [/COLOR]
    ii  [COLOR=#ff5454][B]linux-image[/B][/COLOR][COLOR=#000000]-5.4.0-80-generic                  5.4.0-80.90                                    amd64        Signed kernel image ge[/COLOR]
    neric 
    ii  [COLOR=#ff5454][B]linux-image[/B][/COLOR][COLOR=#000000]-5.8.0-63-generic                  5.8.0-63.71~20.04.1                            amd64        Signed kernel image ge[/COLOR]
    neric 
    ii  [COLOR=#ff5454][B]linux-image[/B][/COLOR][COLOR=#000000]-generic                           5.4.0.80.84                                    amd64        Generic Linux kernel i[/COLOR]
    mage 
    ii  [COLOR=#ff5454][B]linux-image[/B][/COLOR][COLOR=#000000]-generic-hwe-20.04                 5.8.0.63.71~20.04.45                           amd64        Generic Linux kernel i[/COLOR]
    mage 
    ii  [COLOR=#ff5454][B]linux-image[/B][/COLOR][COLOR=#000000]-unsigned-5.8.0-59-generic         5.8.0-59.66~20.04.1                            amd64        Linux kernel image for[/COLOR]
     version 5.8.0 on 64 bit x86 SMP 
    [COLOR=#000000]locate linux-image-5.4.0-80-generic [/COLOR]
    [/FONT]
    The locatedb doesn't find any matching file:
    Code:
    [FONT=monospace][COLOR=#000000]locate linux-image-5.4.0-80-generic[/COLOR]
    [/FONT]
    Where is dpkg getting the information about this "not" installed kernel?

    Added:

    Okay, seems that /var/lib/dpkg/status is the file contributing to this issue.
    Code:
    [FONT=monospace][COLOR=#000000]grep linux-image-5.4 /var/lib/dpkg/status [/COLOR]
    Package: [COLOR=#ff5454][B]linux-image-5.4[/B][/COLOR][COLOR=#000000].0-80-generic [/COLOR]
    Depends: [COLOR=#ff5454][B]linux-image-5.4[/B][/COLOR][COLOR=#000000].0-80-generic, linux-modules-extra-5.4.0-80-generic, linux-firmware, intel-microcode, amd64-microcode [/COLOR]
    Depends: [COLOR=#ff5454][B]linux-image-5.4[/B][/COLOR][COLOR=#000000].0-80-generic | linux-image-unsigned-5.4.0-80-generic, crda | wireless-crda[/COLOR]
    [/FONT]
    Why wasn't this file (status) updated when the 5.4 kernel was removed (it had been installed at some point)? Can it be updated now? If so, how?
    Last edited by Snowhog; Jul 20, 2021, 02:47 PM.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    #2
    Looks like you found a bug ...
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      That can't be, as that kernel version isn't available to be installed, or at least, it isn't installable now.
      That is not true.

      To downgrade from HWE/OEM to GA kernel:

      Code:
      sudo apt install --install-recommends linux-generic
      Is this a new install, or fairly recent? Neon did not enable the HWE until June 18.

      Comment


        #4
        It was installed from the 20210311 dated iso, downloaded on March 16, 2021.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Then yes, you would still have the original 5.4 kernel from the initial install. That is not removed when a new major kernel is added, same as happens on any LTS.

          Comment


            #6
            Thank you.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              So at one point I did have that 5.4 kernel installed, but it isn't installed now, and doesn't exist at all on my system; it, or any of its components. So, why does the status file still contain information about it? It shouldn't, yes?
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Are you looking at the full data from /var/lib/dpkg/status ?
                The file has info about the packages you have, as well as those that have been removed, purged, etc.

                Are you sure you don't still have the 5.4 kernels/headers/etc? They would still be there unless you expressly uninstalled them yourself.


                Here are the lines in
                /var/lib/dpkg/status I have, for reference.
                Note the status lines:

                Code:
                Package: linux-image-5.4.0-74-generic
                Status: deinstall ok config-files
                Priority: optional
                Section: kernel
                Installed-Size: 11520
                Maintainer: Canonical Kernel Team <kernel-team@lists.ubuntu.com>
                Architecture: amd64
                Source: linux-signed
                Version: 5.4.0-74.83
                Config-Version: 5.4.0-74.83
                Provides: aufs-dkms, fuse-module, ivtv-modules, kvm-api-4, linux-image, redhat-cluster-modules, spl-dkms, spl-modules, virtualbox-guest-dkms, virtualbox-guest-modules, zfs-dkms, zfs-modules
                Depends: kmod, linux-base (>= 4.5ubuntu1~16.04.1), linux-modules-5.4.0-74-generic
                Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo, initramfs-tools | linux-initramfs-tool
                Suggests: fdutils, linux-doc | linux-source-5.4.0, linux-tools, linux-headers-5.4.0-74-generic
                Conflicts: linux-image-unsigned-5.4.0-74-generic
                Description: Signed kernel image generic
                 A kernel image for generic.  This version of it is signed with
                 Canonical's UEFI/Opal signing key.
                Built-Using: linux (= 5.4.0-74.83)
                
                Package: linux-image-5.4.0-77-generic
                Status: deinstall ok config-files
                Priority: optional
                Section: kernel
                Installed-Size: 11524
                Maintainer: Canonical Kernel Team <kernel-team@lists.ubuntu.com>
                Architecture: amd64
                Source: linux-signed
                Version: 5.4.0-77.86
                Config-Version: 5.4.0-77.86
                Provides: aufs-dkms, fuse-module, ivtv-modules, kvm-api-4, linux-image, redhat-cluster-modules, spl-dkms, spl-modules, virtualbox-guest-dkms, virtualbox-guest-modules, zfs-dkms, zfs-modules
                Depends: kmod, linux-base (>= 4.5ubuntu1~16.04.1), linux-modules-5.4.0-77-generic
                Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo, initramfs-tools | linux-initramfs-tool
                Suggests: fdutils, linux-doc | linux-source-5.4.0, linux-tools, linux-headers-5.4.0-77-generic
                Conflicts: linux-image-unsigned-5.4.0-77-generic
                Description: Signed kernel image generic
                 A kernel image for generic.  This version of it is signed with
                 Canonical's UEFI/Opal signing key.
                Built-Using: linux (= 5.4.0-77.86)
                
                Package: linux-image-5.4.0-80-generic
                Status: install ok installed
                Priority: optional
                Section: kernel
                Installed-Size: 11524
                Maintainer: Canonical Kernel Team <kernel-team@lists.ubuntu.com>
                Architecture: amd64
                Source: linux-signed
                Version: 5.4.0-80.90
                Provides: aufs-dkms, fuse-module, ivtv-modules, kvm-api-4, linux-image, redhat-cluster-modules, spl-dkms, spl-modules, virtualbox-guest-dkms, virtualbox-guest-modules, zfs-dkms, zfs-modules
                Depends: kmod, linux-base (>= 4.5ubuntu1~16.04.1), linux-modules-5.4.0-80-generic
                Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo, initramfs-tools | linux-initramfs-tool
                Suggests: fdutils, linux-doc | linux-source-5.4.0, linux-tools, linux-headers-5.4.0-80-generic
                Conflicts: linux-image-unsigned-5.4.0-80-generic
                Description: Signed kernel image generic
                 A kernel image for generic.  This version of it is signed with
                 Canonical's UEFI/Opal signing key.
                Built-Using: linux (= 5.4.0-80.90)


                Taking the first package linux-image-5.4.0-74-generic

                Code:
                [FONT=monospace][COLOR=#000000]$ apt policy linux-image-5.4.0-74-generic [/COLOR]
                linux-image-5.4.0-74-generic: 
                  Installed: (none) 
                  Candidate: 5.4.0-74.83 
                  Version table: 
                     5.4.0-74.83 500 
                        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages 
                        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages 
                        100 /var/lib/dpkg/status[/FONT][B][FONT=monospace]
                [/FONT][/B]
                and then for the current 5.4 kernel version:
                Code:
                $ apt policy linux-image-5.4.0-80-generic
                linux-image-5.4.0-80-generic:
                  Installed: 5.4.0-80.90
                  Candidate: 5.4.0-80.90
                  Version table:
                 *** 5.4.0-80.90 500
                        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
                        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
                        100 /var/lib/dpkg/status

                And then
                Code:
                $ apt search  linux-image | grep installed
                
                
                linux-image-5.11.0-22-generic/focal-security,focal-updates,now 5.11.0-22.23~20.04.1 amd64 [installed,automatic]
                linux-image-5.11.0-25-generic/focal-security,focal-updates,now 5.11.0-25.27~20.04.1 amd64 [installed,automatic]
                linux-image-5.4.0-80-generic/focal-security,focal-updates,now 5.4.0-80.90 amd64 [installed,automatic]
                linux-image-5.8.0-63-generic/focal-security,focal-updates,now 5.8.0-63.71~20.04.1 amd64 [installed,automatic]
                linux-image-generic/focal-security,focal-updates,now 5.4.0.80.84 amd64 [installed,automatic]
                linux-image-generic-hwe-20.04/focal-security,focal-updates,now 5.8.0.63.71~20.04.45 amd64 [installed,automatic]
                linux-image-generic-hwe-20.04-edge/focal-security,focal-updates,now 5.11.0.25.27~20.04.9 amd64 [installed]
                Please don't mind the mess I decided to jump ahead of the line and grab the 5.11 kernel early via linux-image-generic-hwe-20.04-edge

                OR,
                Code:
                $ apt search 5.4.0 | grep installed
                
                
                linux-headers-5.4.0-80/focal-security,focal-security,focal-updates,focal-updates,now 5.4.0-80.90 all [installed,automatic]
                linux-headers-5.4.0-80-generic/focal-security,focal-updates,now 5.4.0-80.90 amd64 [installed,automatic]
                linux-image-5.4.0-80-generic/focal-security,focal-updates,now 5.4.0-80.90 amd64 [installed,automatic]
                linux-modules-5.4.0-80-generic/focal-security,focal-updates,now 5.4.0-80.90 amd64 [installed,automatic]
                linux-modules-extra-5.4.0-80-generic/focal-security,focal-updates,now 5.4.0-80.90 amd64 [installed,automatic]
                Last edited by claydoh; Jul 21, 2021, 10:14 AM.

                Comment


                  #9
                  Would kubicle's advice be relevant?
                  Kubuntu 20.04

                  Comment

                  Working...
                  X