i was running "sudo apt upgrade" but it was failed cus the vm turn off, so i tried to run upgrade again and it says i should run "sudo dpkg --configure -a", so i tried it didnt finish till i wait about 30 minutes, is it really that long?
$ sudo dpkg --configure -a
Setting up initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-92-generic
sudo update-initramfs -u -v
separately – Daniel T Feb 02 '24 at 07:15Adding module /lib/modules/5.15.0-92-generic/kernel/drivers/md/raid10.ko
can you help this?
– deeeeeeeeeee Feb 02 '24 at 07:40apt reinstall linux-modules-5.15.0-92-generic
, and if that does workapt download linux-modules-5.15.0-92-generic
, thensudo dpkg --force-all -i <name_of_that_new_deb_file>
– Daniel T Feb 02 '24 at 07:51sudo dpkg --force-all -i linux-modules-5.15.0-92-generic_5.15.0-92.102_amd64.deb
– deeeeeeeeeee Feb 02 '24 at 08:00330.39844 MiB
, so it shouldn't be the problem. Are you using RAID? If not, you can try deleting raid10.ko before reinstalling it with that dpkg command. You should also check the disk for errors usingfsck
andbadblocks
(read some answers first to avoid data loss), and your memory with memtest86. Is memory usage or disk usage high (checkhtop
) when it gets stuck? – Daniel T Feb 02 '24 at 08:08fsck
andbadblocks
. That should be what comes to mind first because you said "it was failed cus the vm turn off" – Daniel T Feb 02 '24 at 08:18fsck
output/dev/vda1 is mounted. e2fsck: Cannot continue, aborting.
so is should unmount the
– deeeeeeeeeee Feb 02 '24 at 08:23/dev/vda1
? because its mounted on/ directory
, is it safe tho?Pass completed, 0 bad blocks found. (0/0/0 errors)
@DanielT – deeeeeeeeeee Feb 02 '24 at 08:29sudo dpkg --configure -a
command , does it still has chance to complete? – deeeeeeeeeee Feb 02 '24 at 08:43htop
,top
oriotop
to see if there is any more activity. Also checkdmesg
to see if there are any disk errors being reported. See https://askubuntu.com/a/47974/1004020 to try the /forcefsck option. – Daniel T Feb 02 '24 at 08:49sudo killlall dpkg
, then kill related processes. But this may lead to an unbootable system if you don't remove the old GRUB entry. To do that, you could indpkg --get-selections | grep 5.15.0-92
, and dosudo dpkg --force-all -r <list of package names>
. This should at least lead to a bootable system, butapt
will be broken so you can't install or upgrade until you fix it. – Daniel T Feb 02 '24 at 09:36