Announcement

Collapse
No announcement yet.

Unable to upgrade to latest kernel

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

    Unable to upgrade to latest kernel

    Hi everyone,

    Updates are available for my Kubuntu 20.04 installation, but I am unable to install the latest kernel.

    The error I'm getting is Package failed to install Error while installing package: cannot copy extracted data for './boot/System.map-5.4.0-60-generic' to '/boot/System.map-5.4.0-60-generic.dpkg-new'

    System info: 5.4.0-59-generic #65-Ubuntu SMP Thu Dec 10 12:01:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linu
    x

    H/W path Device Class Description
    ================================================== ===
    system 81D1 (LENOVO_MT_81D1_BU_idea_FM_ideapad 330-15IGM)
    /0 bus LNVNB161216
    /0/0 memory 64KiB BIOS
    /0/4 processor Intel(R) Celeron(R) N4100 CPU @ 1.10GHz
    /0/4/6 memory 32KiB L1 cache
    /0/4/7 memory 4MiB L2 cache
    /0/5 memory 24KiB L1 cache
    /0/23 memory 4GiB System Memory
    /0/23/0 memory 4GiB SODIMM DDR4 Synchronous 2400 MHz (0.4 ns)
    /0/100 bridge Gemini Lake Host Bridge
    /0/100/0.3 generic Intel Corporation
    /0/100/2 display UHD Graphics 605
    /0/100/e multimedia Intel Corporation
    /0/100/f communication Celeron/Pentium Silver Processor Trusted Execution Engine Interface
    /0/100/12 scsi0 storage Intel Corporation
    /0/100/12/0 /dev/sda disk 500GB TOSHIBA MQ01ABF0
    /0/100/12/0/1 volume 511MiB Windows FAT volume
    /0/100/12/0/2 /dev/sda2 volume 732MiB EXT4 volume
    /0/100/12/0/3 /dev/sda3 volume 464GiB EFI partition
    /0/100/12/1 /dev/cdrom disk DVD-RW DA8AESH
    /0/100/14 bridge Gemini Lake PCI Express Root Port
    /0/100/14/0 enp1s0 network RTL810xE PCI Express Fast Ethernet controller
    /0/100/14.1 bridge Gemini Lake PCI Express Root Port
    /0/100/14.1/0 wlp2s0 network QCA9377 802.11ac Wireless Network Adapter
    /0/100/15 bus Intel Corporation
    /0/100/15/0 usb1 bus xHCI Host Controller
    /0/100/15/0/2 input USB Optical Mouse
    /0/100/15/0/7 multimedia EasyCamera
    /0/100/15/0/8 communication Bluetooth wireless interface
    /0/100/15/1 usb2 bus xHCI Host Controller
    /0/100/17 generic Intel Corporation
    /0/100/17.3 generic Intel Corporation
    /0/100/1f bridge Intel Corporation
    /0/100/1f.1 bus Celeron/Pentium Silver Processor Gaussian Mixture Model
    /0/1 system PnP device PNP0c02
    /0/2 input PnP device PNP0303
    /0/3 system PnP device PNP0c02
    /0/6 system PnP device PNP0b00
    /1 power SR Real Battery
    /2 power OEM Define 5

    Thanks in advance for any help.

    #2
    Your drive is probably full.

    Code:
    [I]Package failed to install Error while installing package: cannot copy  extracted data for './boot/System.map-5.4.0-60-generic' to  '/boot/System.map-5.4.0-60-generic.dpkg-new'[/I]
    This is usually followed by a line stating this, when updating via the command line.

    the command df -h will show how much space your disks have left.

    Comment


      #3
      Thanks for your reply. This is the output of the command.

      Filesystem Size Used Avail Use% Mounted on
      udev 1.8G 0 1.8G 0% /dev
      tmpfs 376M 1.5M 375M 1% /run
      /dev/mapper/vgkubuntu-root 456G 14G 419G 4% /
      tmpfs 1.9G 0 1.9G 0% /dev/shm
      tmpfs 5.0M 4.0K 5.0M 1% /run/lock
      tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
      /dev/sda2 705M 688M 0 100% /boot
      /dev/sda1 511M 7.8M 504M 2% /boot/efi
      tmpfs 376M 12K 376M 1% /run/user/1000

      Last edited by yilovi7876; Jan 09, 2021, 05:00 PM. Reason: formatting

      Comment


        #4
        Code:
        [FONT=monospace]/dev/sda2  705M  688M     0     100% /boot[/FONT]
        Yup, your /boot partition looks full
        Try removing some of your excess kernels:
        Code:
         sudo apt autoremove --purge
        You will see how much space is freed.

        Now, if you have manually installed non-standard kernels (such as those from Ubuntu mainline), you will want to uninstall some of those

        If you still don't have enough room after autoremove, paste the contents of this:

        Code:
        dpkg -l | grep linux-image



        Normally, there is not a separate partition for the /boot dir, so this sort of issue is not common. But when using drive encryption, /boot needs to be outside the encrypted disk, so a separate partition is used.

        Comment


          #5
          Makes sense, as I am using drive encryption. I ran the auto purge but got this error:

          The following packages have unmet dependencies:
          linux-image-generic : Depends: linux-image-5.4.0-60-generic but it is not installed
          linux-modules-extra-5.4.0-60-generic : Depends: linux-image-5.4.0-60-generic but it is not installed or
          linux-image-unsigned-5.4.0-60-generic but it is not installed
          E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

          When I ran apt --fix-broken install, it gave me a disk full error. Is there a way to target the full partition specifically rather than use the more generic auto purge?

          Comment

          Working...
          X