sudo apt update && sudo apt full-upgrade
Hit:1 http://ppa.launchpad.net/deluge-team/ppa/ubuntu xenial InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Hit:3 http://es.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://es.archive.ubuntu.com/ubuntu xenial-security InRelease
Hit:5 http://es.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://es.archive.ubuntu.com/ubuntu xenial-proposed InRelease
Hit:7 http://es.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-image-extra-4.4.0-32-generic
The following NEW packages will be installed:
linux-image-4.4.0-34-generic linux-image-4.4.0-35-generic
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 112 MB of archives.
After this operation, 39.4 MB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://es.archive.ubuntu.com/ubuntu xenial-security/main i386 linux-image-4.4.0-34-generic i386 4.4.0-34.53 [17.4 MB]
Get:2 http://es.archive.ubuntu.com/ubuntu xenial-security/main i386 linux-image-extra-4.4.0-34-generic i386 4.4.0-34.53 [38.6 MB]
Get:3 http://es.archive.ubuntu.com/ubuntu xenial-proposed/main i386 linux-image-4.4.0-35-generic i386 4.4.0-35.54 [17.5 MB]
Get:4 http://es.archive.ubuntu.com/ubuntu xenial-proposed/main i386 linux-image-extra-4.4.0-35-generic i386 4.4.0-35.54 [38.6 MB]
Fetched 112 MB in 1min 7s (1,655 kB/s)
(Reading database ... 151084 files and directories currently installed.)
Removing linux-image-extra-4.4.0-32-generic (4.4.0-32.51) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-32-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-32-generic /boot/vmlinuz-4.4.0-32-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-32-generic /boot/vmlinuz-4.4.0-32-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-32-generic
WARNING: missing /lib/modules/4.4.0-32-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-32-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-32-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-32-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-4.4.0-32-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)