0

I am receiving this error while trying to update in terminal

$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-generic-hwe-18.04 : Depends: linux-image-5.4.0-58-generic but it is not installed
 linux-modules-extra-5.4.0-58-generic : Depends: linux-image-5.4.0-58-generic but it is not installed or
                                                 linux-image-unsigned-5.4.0-58-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Then when running Sudo apt -- fix-broken install i get this error

Unpacking linux-image-5.4.0-58-generic (5.4.0-58.64~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.4.0-58-generic_5.4.0-58.64~18.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-5.4.0-58-generic' to '/boot/vmlinuz-5.4.0-58-generic.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-5.4.0-58-generic_5.4.0-58.64~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How do I increase my boot disc space?

1
  • Boot to a live instance (USB) and use gparted to move and resize partitions. Remember that you have to 'grow' the partitions after making them larger. The easiest and safest way to do this is with a live instance on USB/DVD. Be sure to backup your important data before doing so.
    – KGIII
    Dec 15 '20 at 3:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.