Originally Posted by
Bashing-om
5mall5nail5; welp;
Not totally unexpected result .
we do it the dirty dirty way .
Code:
sudo rm /boot/initrd.img-4.4.0-62-generic
sudo rm /boot/initrd.img-4.4.0-64-generic
sudo rm /boot/initrd.img-4.4.0-66-generic
sudo rm /boot/initrd.img-4.4.0-70-generic
sudo rm /boot/initrd.img-4.4.0-71-generic
sudo rm /boot/initrd.img-4.4.0-72-generic
sudo rm /boot/initrd.img-4.4.0-75-generic
sudo rm /boot/initrd.img-4.4.0-78-generic
now show me :
Code:
sudo apt -f install
sudo dpkg -C
see if we are now ready to start the re-build process and fix the package manager .
there is a way that seems right
but leads to a broken system
Onward:
Code:
~$ sudo rm /boot/initrd.img-4.4.0-62-generic$ sudo rm /boot/initrd.img-4.4.0-64-generic
$ sudo rm /boot/initrd.img-4.4.0-66-generic
$ sudo rm /boot/initrd.img-4.4.0-70-generic
$ sudo rm /boot/initrd.img-4.4.0-71-generic
$ sudo rm /boot/initrd.img-4.4.0-72-generic
$ sudo rm /boot/initrd.img-4.4.0-75-generic
$ sudo rm /boot/initrd.img-4.4.0-78-generic
$ sudo apt -f install
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-87 linux-headers-4.4.0-87-generic linux-image-4.4.0-87-generic linux-image-extra-4.4.0-87-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic linux-image-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
Recommended packages:
thermald
The following NEW packages will be installed:
linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic
The following packages will be upgraded:
linux-generic linux-headers-generic linux-image-generic
3 upgraded, 5 newly installed, 0 to remove and 80 not upgraded.
12 not fully installed or removed.
Need to get 68.5 MB/90.5 MB of archives.
After this operation, 364 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Then
Code:
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-92-generic amd64 4.4.0-92.115 [21.9 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-extra-4.4.0-92-generic amd64 4.4.0-92.115 [35.9 MB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-generic amd64 4.4.0.92.97 [1,790 B]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-generic amd64 4.4.0.92.97 [2,294 B]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-92 all 4.4.0-92.115 [9,876 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-92-generic amd64 4.4.0-92.115 [786 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.92.97 [2,268 B]
Fetched 68.5 MB in 6s (10.4 MB/s)
Selecting previously unselected package linux-image-4.4.0-92-generic.
(Reading database ... 159348 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-92-generic_4.4.0-92.115_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-92-generic (4.4.0-92.115) ...
Selecting previously unselected package linux-image-extra-4.4.0-92-generic.
Preparing to unpack .../linux-image-extra-4.4.0-92-generic_4.4.0-92.115_amd64.deb ...
Unpacking linux-image-extra-4.4.0-92-generic (4.4.0-92.115) ...
Yadda yadda...
Then tons of errors about previous kernels (to be expected?)
Code:
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-64-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
depmod: WARNING: could not open /var/tmp/mkinitramfs_hNgusW/lib/modules/4.4.0-64-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_hNgusW/lib/modules/4.4.0-64-generic/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.4.0-62-generic
WARNING: missing /lib/modules/4.4.0-62-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-62-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
depmod: WARNING: could not open /var/tmp/mkinitramfs_Q6Z8EF/lib/modules/4.4.0-62-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_Q6Z8EF/lib/modules/4.4.0-62-generic/modules.builtin: No such file or directory
Then a whole buncha this
Code:
Setting up linux-image-extra-4.4.0-87-generic (4.4.0-87.110) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-92-generic
Found initrd image: /boot/initrd.img-4.4.0-92-generic
Found linux image: /boot/vmlinuz-4.4.0-87-generic
Found initrd image: /boot/initrd.img-4.4.0-87-generic
Found linux image: /boot/vmlinuz-4.4.0-83-generic
Found initrd image: /boot/initrd.img-4.4.0-83-generic
Found linux image: /boot/vmlinuz-4.4.0-81-generic
Found initrd image: /boot/initrd.img-4.4.0-81-generic
Found linux image: /boot/vmlinuz-4.4.0-79-generic
Found initrd image: /boot/initrd.img-4.4.0-79-generic
done
and then
I don't want to get ahead of myself but...
Code:
$ sudo apt-get upgradeReading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
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-image-4.4.0-81-generic linux-image-4.4.0-83-generic linux-image-extra-4.4.0-81-generic
linux-image-extra-4.4.0-83-generic snap-confine
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
python-tornado salt-common salt-minion
The following packages will be upgraded:
apt apt-transport-https apt-utils base-files bsdutils btrfs-tools cloud-initramfs-copymods cloud-initramfs-dyn-netconf coreutils dnsmasq-base dpkg git git-man grub-common grub-legacy-ec2 grub-pc grub-pc-bin
grub2-common init init-system-helpers iproute2 isc-dhcp-client isc-dhcp-common kmod less libapt-inst2.0 libapt-pkg5.0 libblkid1 libdrm2 libfdisk1 libgd3 libkmod2 liblxc1 libmount1 libpam-systemd libpci3
libsmartcols1 libssl1.0.0 libsystemd0 libudev1 libuuid1 logrotate lxc-common lxcfs lxd lxd-client makedev mdadm mount open-iscsi openssh-client openssh-server openssh-sftp-server openssl overlayroot pciutils
python3-distupgrade python3-software-properties python3-update-manager snap-confine snapd software-properties-common sosreport sudo systemd systemd-sysv ubuntu-core-launcher ubuntu-release-upgrader-core udev
unattended-upgrades update-manager-core update-notifier-common util-linux uuid-runtime vlan wget zlib1g
77 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 42.0 MB of archives.
After this operation, 11.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Looking a lot better...!
Bookmarks