Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Oct 02, 2023, 02:27 AM

Title: Apt upgrade hanging
Post by: mahesh on Oct 02, 2023, 02:27 AM
Hi all,

I currently have an ubuntu 20.04 system which I am trying to patch, it looks like previously the system was patched and it never finished. I am new to the company and have inherited the problem. I thought it might of been a corrupt kernel patch so I tried to remove it however its doing the same thing on the latest kernel.

Current kernel level is

5.4.0-42-generic

Below is the last entry in the apt history log

Start-Date: 2021-10-21 13:23:08
Commandline: apt remove linux-image-5.4.0-66-generic
Requested-By: id125984 (1001)
Install: linux-image-5.4.0-89-generic:amd64 (5.4.0-89.100, automatic), linux-modules-extra-5.4.0-89-generic:amd64 (5.4.0-89.100, automatic), linux-headers-5.4.0-89-generic:am
d64 (5.4.0-89.100, automatic), linux-modules-5.4.0-89-generic:amd64 (5.4.0-89.100, automatic), linux-headers-5.4.0-89:amd64 (5.4.0-89.100, automatic), linux-image-unsigned-5.
4.0-66-generic:amd64 (5.4.0-66.74, automatic)
Upgrade: linux-headers-generic:amd64 (5.4.0.66.69, 5.4.0.89.93), linux-image-generic:amd64 (5.4.0.66.69, 5.4.0.89.93), linux-generic:amd64 (5.4.0.66.69, 5.4.0.89.93)
Remove: linux-image-5.4.0-66-generic:amd64 (5.4.0-66.74), linux-modules-extra-5.4.0-66-generic:amd64 (5.4.0-66.74)

dpkg output

dpkg --list | egrep '^iF'
iF linux-image-5.4.0-89-generic 5.4.0-89.100 amd64 Signed kernel image generic

Processes

00:00:00 /usr/bin/dpkg --status-fd 41 --configure --pending
root 540510 540461 0 Oct21 ? 00:00:00 /bin/sh /var/lib/dpkg/info/linux-image-5.4.0-89-generic.postinst triggered linux-update-5.4.0-89-generic
root 540511 540510 0 Oct21 ? 00:00:00 sh /usr/lib/linux/triggers/5.4.0-89-generic
root 540512 540511 0 Oct21 ? 00:00:00 run-parts --report --exit-on-error --arg=5.4.0-89-generic --arg=/boot/vmlinuz-5.4.0-89-generic /etc/kernel/postinst.d
root 540564 540512 0 Oct21 ? 00:00:00 /bin/sh -e /etc/kernel/postinst.d/initramfs-tools 5.4.0-89-generic /boot/vmlinuz-5.4.0-89-generic
root 540566 540564 0 Oct21 ? 00:00:00 /bin/sh /usr/sbin/update-initramfs -c -k 5.4.0-89-generic -b /boot
root 540568 540566 0 Oct21 ? 00:00:00 /bin/sh /usr/sbin/mkinitramfs -o /boot/initrd.img-5.4.0-89-generic.new 5.4.0-89-generic
root 549330 540568 0 Oct21 ? 00:00:00 /bin/sh /usr/share/initramfs-tools/hooks/mdadm
root 549445 549330 0 Oct21 ? 00:00:00 /bin/sh /usr/share/mdadm/mkconf
root 549451 549445 0 Oct21 ? 00:00:00 /sbin/mdadm --examine --scan --config=partitions

Would be eternally helpful if someone can assist, thanks in advance