I'm trying to do some updates to my friend's server (Ubuntu 16.04) and am encountering this:
The recommended 'apt-get -f install' yields the following:
I can't complete the update process since /boot is full because he never removed the old, unused kernels. The problem now is that I can't clear any space because 'sudo apt-get autoremove' gives me this:
which brings me full circle back to the previous issue with 'apt-get -f install'. Is there a way to safely make some space in /boot? I don't know what would happen if I manually deleted the old kernels. Any suggestions?
EDIT: Also, I wasn't sure which category to post in since this is not a Kubuntu problem.
Code:
[tsnowcrash@QuickBox]:(102.8Mb)~$ sudo apt-get update && sudo apt-get upgrade sudo: unable to resolve host QuickBox Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Hit:3 http://archive.canonical.com/ubuntu xenial InRelease Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:5 http://shell.ninthgate.se/packages/debian jessie InRelease Hit:6 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Fetched 306 kB in 0s (508 kB/s) Reading package lists... Done sudo: unable to resolve host QuickBox Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-extra-4.4.0-97-generic : Depends: linux-image-4.4.0-97-generic but it is not installed linux-image-generic : Depends: linux-image-4.4.0-97-generic but it is not installed E: Unmet dependencies. Try using -f. [tsnowcrash@QuickBox]:(102.8Mb)~$
Code:
[tsnowcrash@QuickBox]:(102.8Mb)~$ sudo apt-get -f install sudo: unable to resolve host QuickBox Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: linux-headers-4.4.0-77 linux-headers-4.4.0-77-generic linux-headers-4.4.0-78 linux-headers-4.4.0-78-generic linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-image-4.4.0-77-generic linux-image-4.4.0-78-generic linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-77-generic linux-image-extra-4.4.0-78-generic linux-image-extra-4.4.0-79-generic linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-91-generic linux-image-extra-4.4.0-92-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: linux-image-4.4.0-97-generic Suggested packages: fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools The following NEW packages will be installed: linux-image-4.4.0-97-generic 0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded. 16 not fully installed or removed. Need to get 0 B/21.9 MB of archives. After this operation, 67.0 MB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 434144 files and directories currently installed.) Preparing to unpack .../linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb ... Done. Unpacking linux-image-4.4.0-97-generic (4.4.0-97.120) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb (--unpack): cannot copy extracted data for './boot/vmlinuz-4.4.0-97-generic' to '/boot/vmlinuz-4.4.0-97-generic.dpkg-new': failed to write (No space left on device) dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) [tsnowcrash@QuickBox]:(102.8Mb)~$
Code:
[tsnowcrash@QuickBox]:(102.8Mb)~$ sudo apt-get autoremove sudo: unable to resolve host QuickBox Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-extra-4.4.0-97-generic : Depends: linux-image-4.4.0-97-generic but it is not installed linux-image-generic : Depends: linux-image-4.4.0-97-generic but it is not installed E: Unmet dependencies. Try using -f. [tsnowcrash@QuickBox]:(102.8Mb)~$
EDIT: Also, I wasn't sure which category to post in since this is not a Kubuntu problem.
Comment