Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: Issue with kernel upgrade

  1. #11
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Issue with kernel upgrade

    Quote Originally Posted by daithi_dearg View Post
    Getting following now:

    Code:
    Unpacking linux-modules-extra-5.4.0-66-generic (5.4.0-66.74) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-modules-extra-5.4.0-66-generic_5.4.0-66.74_amd64.deb (--unpack):
     unable to open '/lib/modules/5.4.0-66-generic/kernel/drivers/net/ethernet/3com/3c59x.ko.dpkg-new': Operation not permitted
    Segmentation fault
    At least there's an error message. Let's investigate. Why is that operation not permitted? Redownload the package files to rule out file corruption.
    Code:
    ls -al /lib/modules/5.4.0-66-generic/kernel/drivers/net/ethernet/3com
    sudo apt-get clean
    sudo apt-get update
    sudo apt-get install -f

  2. #12
    Join Date
    Dec 2008
    Beans
    51
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Issue with kernel upgrade

    Still not finding files in the /lib/modules directory.

    Is there a deeper clean I can do or perhaps I could download the kernel files after 66.

    Code:
    david@david-N7x0WU:~$ ls -al /lib/modules/5.4.0-66-generic/kernel/drivers/net/ethernet/3com
    ls: cannot access '/lib/modules/5.4.0-66-generic/kernel/drivers/net/ethernet/3com': No such file or directory
    david@david-N7x0WU:~$ sudo apt-get clean
    [sudo] password for david: 
    
    david@david-N7x0WU:~$ sudo apt-get update
    Hit:1 http://ie.archive.ubuntu.com/ubuntu focal InRelease
    Hit:2 http://ie.archive.ubuntu.com/ubuntu focal-updates InRelease
    Hit:3 http://ie.archive.ubuntu.com/ubuntu focal-backports InRelease        
    Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease           
    Reading package lists... Done                        
    
    david@david-N7x0WU:~$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
      linux-modules-extra-5.4.0-66-generic
    The following NEW packages will be installed:
      linux-modules-extra-5.4.0-66-generic
    0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
    11 not fully installed or removed.
    Need to get 38.6 MB of archives.
    After this operation, 190 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://ie.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-extra-5.4.0-66-generic amd64 5.4.0-66.74 [38.6 MB]
    Fetched 38.6 MB in 7s (5,157 kB/s)                                                                                                                                                                        
    (Reading database ... 350601 files and directories currently installed.)
    Preparing to unpack .../linux-modules-extra-5.4.0-66-generic_5.4.0-66.74_amd64.deb ...
    Unpacking linux-modules-extra-5.4.0-66-generic (5.4.0-66.74) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-modules-extra-5.4.0-66-generic_5.4.0-66.74_amd64.deb (--unpack):
     unable to open '/lib/modules/5.4.0-66-generic/kernel/drivers/media/pci/mantis/mantis.ko.dpkg-new': Operation not permitted
    Segmentation fault (core dumped)
    
    david@david-N7x0WU:~$ ls -al /lib/modules/5.4.0-66-generic/kernel/
    arch/             crypto/           drivers/          fs/               lib/              net/              sound/            virtualbox-guest/ wireguard/        zfs/

  3. #13
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Issue with kernel upgrade

    It's a bit weird that you get an "operation not permitted" error (which is different from the "permission denied" error). I may have found one lead: https://askubuntu.com/questions/8986...aders-4-8-0-45
    Bug report: https://bugs.launchpad.net/ubuntu/+s...g/+bug/1685984
    Last edited by Impavidus; March 1st, 2021 at 07:37 PM. Reason: link to bugreport

  4. #14
    Join Date
    Dec 2008
    Beans
    51
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Issue with kernel upgrade

    I was able to disable my AV and I now see .66 when I go into the grub menu but still have the issue with the Wifi card.

    Commands I did are as follows:
    sudo systemctl stop clamav-freshclam.service
    sudo apt-get install -f (Prompted me to run command below)
    sudo dpkg --configure -a

    Differences in /lib/modules for 42 versus 66 if that helps

    Code:
    david@david-N7x0WU:~$ ls /lib/modules/5.4.0-42-generic/kernel/drivers/net/wireless/intel/
    ipw2x00  iwlegacy  iwlwifi
    david@david-N7x0WU:~$ ls /lib/modules/5.4.0-66-generic/kernel/drivers/net/
    bonding  dummy.ko  ethernet  geneve.ko  ifb.ko  macvlan.ko  mdio.ko  netconsole.ko    ppp   tap.ko   virtio_net.ko  vxlan.ko
    caif     eql.ko    fddi      hyperv     ipvlan  macvtap.ko  mii.ko   net_failover.ko  slip  veth.ko  vmxnet3        xen-netback

  5. #15
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Issue with kernel upgrade

    Have all packages been installed now, as far as the package manager can tell?
    Code:
    dpkg --list 'linux-*' | grep -v '^rc\|^un'
    Which kernel are you now running?
    Code:
    uname -a

  6. #16
    Join Date
    Dec 2008
    Beans
    51
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Issue with kernel upgrade

    Output of command:
    Code:
    david@david-N7x0WU:~$ dpkg --list 'linux-*' | grep -v '^rc\|^un'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture Description
    +++-=============================================-===========================-============-===============================================================
    ii  linux-base                                    4.5ubuntu3.1                all          Linux image base package
    ii  linux-firmware                                1.187.9                     all          Firmware for Linux kernel drivers
    iU  linux-generic                                 5.4.0.66.69                 amd64        Complete Generic Linux kernel and headers
    ii  linux-headers-5.10.12-051012                  5.10.12-051012.202101301330 all          Header files related to Linux kernel version 5.10.12
    ii  linux-headers-5.10.6-051006                   5.10.6-051006.202101091334  all          Header files related to Linux kernel version 5.10.6
    ii  linux-headers-5.10.6-051006-generic           5.10.6-051006.202101091334  amd64        Linux kernel headers for version 5.10.6 on 64 bit x86 SMP
    ii  linux-headers-5.10.6-051006-lowlatency        5.10.6-051006.202101091334  amd64        Linux kernel headers for version 5.10.6 on 64 bit x86 SMP
    ii  linux-headers-5.11.0-051100                   5.11.0-051100.202102142330  all          Header files related to Linux kernel version 5.11.0
    ii  linux-headers-5.11.0-051100-generic           5.11.0-051100.202102142330  amd64        Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-42                        5.4.0-42.46                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-42-generic                5.4.0-42.46                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-45                        5.4.0-45.49                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-45-generic                5.4.0-45.49                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-51                        5.4.0-51.56                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-51-generic                5.4.0-51.56                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-66                        5.4.0-66.74                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-66-generic                5.4.0-66.74                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-headers-generic                         5.4.0.66.69                 amd64        Generic Linux kernel headers
    ii  linux-image-5.4.0-42-generic                  5.4.0-42.46                 amd64        Signed kernel image generic
    ii  linux-image-5.4.0-45-generic                  5.4.0-45.49                 amd64        Signed kernel image generic
    ii  linux-image-5.4.0-51-generic                  5.4.0-51.56                 amd64        Signed kernel image generic
    ii  linux-image-5.4.0-66-generic                  5.4.0-66.74                 amd64        Signed kernel image generic
    iU  linux-image-generic                           5.4.0.66.69                 amd64        Generic Linux kernel image
    ii  linux-libc-dev:amd64                          5.4.0-65.73                 amd64        Linux Kernel Headers for development
    in  linux-modules-5.10.12-051012-generic          <none>                      amd64        (no description available)
    in  linux-modules-5.10.6-051006-generic           <none>                      amd64        (no description available)
    in  linux-modules-5.10.6-051006-lowlatency        <none>                      amd64        (no description available)
    in  linux-modules-5.11.0-051100-generic           <none>                      amd64        (no description available)
    ii  linux-modules-5.4.0-42-generic                5.4.0-42.46                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    ii  linux-modules-5.4.0-45-generic                5.4.0-45.49                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    ii  linux-modules-5.4.0-51-generic                5.4.0-51.56                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    ii  linux-modules-5.4.0-66-generic                5.4.0-66.74                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    in  linux-modules-5.4.65-050465-generic           <none>                      amd64        (no description available)
    in  linux-modules-extra-4.15.0-43-generic         <none>                      amd64        (no description available)
    in  linux-modules-extra-4.15.0-45-generic         <none>                      amd64        (no description available)
    ii  linux-modules-extra-5.4.0-42-generic          5.4.0-42.46                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    in  linux-modules-extra-5.4.0-45-generic          <none>                      amd64        (no description available)
    in  linux-modules-extra-5.4.0-51-generic          <none>                      amd64        (no description available)
    in  linux-modules-extra-5.4.0-52-generic          <none>                      amd64        (no description available)
    iHR linux-modules-extra-5.4.0-66-generic          5.4.0-66.74                 amd64        (no description available)
    ii  linux-sound-base                              1.0.25+dfsg-0ubuntu5        all          base package for ALSA and OSS sound systems
    uname -a points at .66 but the Wifi card doesn't work on this version.

  7. #17
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Issue with kernel upgrade

    Your linux-modules-extra-5.4.0-66-generic still hasn't been properly installed. dpkg --configure -a did something, but not all that had to be done.

    Maybe a few apt-get install -f and dpkg --configure -a will help. Run
    Code:
    sudo apt-get install -f
    If it asks you to run some other commands, run those too, followed by another apt-get install -f. You may have to reinstall linux-modules-extra-5.4.0-66-generic:
    Code:
    sudo apt install --reinstall  linux-modules-extra-5.4.0-66-generic

  8. #18
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Issue with kernel upgrade

    It looks as if there is still a problem with the linux-modules-extra-5.4.0-66-generic package which I think is only partly configured so it may be worth trying firstly to reconfigure that with
    Code:
    sudo dpkg-reconfigure linux-modules-extra-5.4.0-66-generic
    and if that does not work you may need to reinstall that package.

    First you should remove the .deb package from your cache in case it is corrupt with
    Code:
    sudo rm /var/cache/apt/archives/linux-modules-extra-5.4.0-66-generic
    and then reinstall the package with
    Code:
    sudo apt install --reinstall linux-modules-extra-5.4.0-66-generic

  9. #19
    Join Date
    Dec 2008
    Beans
    51
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Issue with kernel upgrade

    Still no joy. Here are the commands I ran:

    Code:
    david@david-N7x0WU:~$ sudo systemctl status clamav-freshclam.service
    [sudo] password for david: 
    ● clamav-freshclam.service - ClamAV virus database updater
         Loaded: loaded (/lib/systemd/system/clamav-freshclam.service; disabled; ve>
         Active: inactive (dead)
           Docs: man:freshclam(1)
                 man:freshclam.conf(5)
                 https://www.clamav.net/documents
    david@david-N7x0WU:~$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
    
    david@david-N7x0WU:~$ sudo dpkg --configure -a
    
    david@david-N7x0WU:~$ sudo apt install --reinstall  linux-modules-extra-5.4.0-66-generic
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      linux-modules-extra-5.4.0-66-generic
    0 upgraded, 1 newly installed, 0 to remove and 27 not upgraded.
    Need to get 0 B/38.6 MB of archives.
    After this operation, 190 MB of additional disk space will be used.
    (Reading database ... 319452 files and directories currently installed.)
    Preparing to unpack .../linux-modules-extra-5.4.0-66-generic_5.4.0-66.74_amd64.d
    eb ...
    Unpacking linux-modules-extra-5.4.0-66-generic (5.4.0-66.74) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-modules-extra-5.4.0
    -66-generic_5.4.0-66.74_amd64.deb (--unpack):
     unable to open '/lib/modules/5.4.0-66-generic/kernel/drivers/net/ethernet/intel
    /ixgb/ixgb.ko.dpkg-new': Operation not permitted
    Errors were encountered while processing:
     /var/cache/apt/archives/linux-modules-extra-5.4.0-66-generic_5.4.0-66.74_amd64.
    deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    david@david-N7x0WU:~$ sudo dpkg-reconfigure linux-modules-extra-5.4.0-66-generic
    /usr/sbin/dpkg-reconfigure: linux-modules-extra-5.4.0-66-generic is not installed
    
    david@david-N7x0WU:~$ sudo rm /var/cache/apt/archives/linux-modules-extra-5.4.0-66-generic
    rm: cannot remove '/var/cache/apt/archives/linux-modules-extra-5.4.0-66-generic': No such file or directory
    
    david@david-N7x0WU:~$ dpkg --list 'linux-*' | grep -v '^rc\|^un'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture Description
    +++-=============================================-===========================-============-===============================================================
    ii  linux-base                                    4.5ubuntu3.1                all          Linux image base package
    ii  linux-firmware                                1.187.9                     all          Firmware for Linux kernel drivers
    ii  linux-headers-5.10.12-051012                  5.10.12-051012.202101301330 all          Header files related to Linux kernel version 5.10.12
    ii  linux-headers-5.10.6-051006                   5.10.6-051006.202101091334  all          Header files related to Linux kernel version 5.10.6
    ii  linux-headers-5.10.6-051006-generic           5.10.6-051006.202101091334  amd64        Linux kernel headers for version 5.10.6 on 64 bit x86 SMP
    ii  linux-headers-5.10.6-051006-lowlatency        5.10.6-051006.202101091334  amd64        Linux kernel headers for version 5.10.6 on 64 bit x86 SMP
    ii  linux-headers-5.11.0-051100                   5.11.0-051100.202102142330  all          Header files related to Linux kernel version 5.11.0
    ii  linux-headers-5.11.0-051100-generic           5.11.0-051100.202102142330  amd64        Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-42                        5.4.0-42.46                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-42-generic                5.4.0-42.46                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-51                        5.4.0-51.56                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-51-generic                5.4.0-51.56                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-headers-5.4.0-66                        5.4.0-66.74                 all          Header files related to Linux kernel version 5.4.0
    ii  linux-headers-5.4.0-66-generic                5.4.0-66.74                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    ii  linux-image-5.4.0-42-generic                  5.4.0-42.46                 amd64        Signed kernel image generic
    ii  linux-image-5.4.0-51-generic                  5.4.0-51.56                 amd64        Signed kernel image generic
    ii  linux-image-5.4.0-66-generic                  5.4.0-66.74                 amd64        Signed kernel image generic
    ii  linux-libc-dev:amd64                          5.4.0-65.73                 amd64        Linux Kernel Headers for development
    in  linux-modules-5.10.12-051012-generic          <none>                      amd64        (no description available)
    in  linux-modules-5.10.6-051006-generic           <none>                      amd64        (no description available)
    in  linux-modules-5.10.6-051006-lowlatency        <none>                      amd64        (no description available)
    in  linux-modules-5.11.0-051100-generic           <none>                      amd64        (no description available)
    ii  linux-modules-5.4.0-42-generic                5.4.0-42.46                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    ii  linux-modules-5.4.0-51-generic                5.4.0-51.56                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    ii  linux-modules-5.4.0-66-generic                5.4.0-66.74                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    in  linux-modules-5.4.65-050465-generic           <none>                      amd64        (no description available)
    in  linux-modules-5.6.14-050614-generic           <none>                      amd64        (no description available)
    in  linux-modules-extra-4.15.0-43-generic         <none>                      amd64        (no description available)
    in  linux-modules-extra-4.15.0-45-generic         <none>                      amd64        (no description available)
    ii  linux-modules-extra-5.4.0-42-generic          5.4.0-42.46                 amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    in  linux-modules-extra-5.4.0-45-generic          <none>                      amd64        (no description available)
    in  linux-modules-extra-5.4.0-51-generic          <none>                      amd64        (no description available)
    in  linux-modules-extra-5.4.0-52-generic          <none>                      amd64        (no description available)
    in  linux-modules-extra-5.4.0-66-generic          <none>                      amd64        (no description available)
    ii  linux-sound-base                              1.0.25+dfsg-0ubuntu5        all          base package for ALSA and OSS sound systems

  10. #20
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Issue with kernel upgrade

    Strange, but let's see if you are running short of either disk or inode space with the two commands
    Code:
    df -h
    df -i

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •