Ubuntu Version:
25.04. Upgraded from 24.10 before that.
Desktop Environment (if applicable):
GNOME
Problem Description:
A few days ago I upgraded from Ubuntu 24.10 to 25.04, but the installation froze 80% of the way through. I left it for 24+ hours, and it was still stuck, so I was forced to reboot. On reboot, it successfully loaded into the GNOME desktop, and it shows I am running 25.04, but the kernel is still on 6.11 instead of 6.14. I ran sudo apt update && sudo apt upgrade, but it throws the error: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. Upon running that command, the terminal freezes after this output:
Sourcing file /etc/default/grub
Sourcing file /etc/default/grub.d/kdump-tools.cfg
Generating grub configuration file ...
Found linux image: vmlinuz-6.11.0-25-generic in rpool/ROOT/ubuntu_iis9yu
Found intitrd image: initrd.img-6.11.0-25-generic in rpool/ROOT/ubuntu-iis9yu
I left it for 24 hours hoping it would proceed, but it never resolves. If I try to open a new terminal window after the command has been run, it stays frozen. The terminal cannot be killed without restarting the computer.
Relevant System Information:
i5-4670k
Gigabyte mobo
16 GB DDR3
SSD
ZFS on root
Screenshots or Error Messages:
What Iβve Tried:
Commands I have tried to fix the issue include sudo apt-get clean, sudo apt install -f, and sudo update-initramfs -v -u. The latter command does work and presents no errors, but running sudo dpkg --configure -a after, the terminal window freezes again.
Yes. It freezes the terminal, as I said in my OP. dpkg --configure -a never finishes and I am forced to restart the computer if I want to use the terminal for anything.
Ok, something new. So after 10 minutes of nothing, some new messages appeared in the tty. I canβt copy and paste it all, but the messages are mostly the same.
[72254. 736505] INFO: task ls:28095 blocked fore more than 122 seconds.
[72254. 736564] Tainted: P W IO 6.11.0-25 generic #25-Ubuntu
[72254. 736601] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[72254. 738506] INFO: task mount.zfs:28097 blocked fore more than 122 seconds.
So itβs something with the kernel andZFS,S which doesnβt surprise me. When upgrading to 25.04, the package manager removed ZSys, because apparently it is deprecated. It handled all the ZFS related things on Ubuntu.
I know all my drives are in good health, so that is not the problem.
EDIT: Just want to add that after an hour, nothing has progressed. Also, going back to the GNOME desktop and opening terminal, it is frozen, so I have to reboot if I want to use the terminal again.
ZFS snapshots could be part of the issue⦠Before and after I updated to 24.10, I remember checking to make sure I had enough space, and I did. When updating to 25.04 I only checked bpool.
bpool has 37 snapshots total, which it did not before upgrading.
Filesystem Type Size Used Avail Use% Mounted on
bpool/BOOT/ubuntu_iis9yu zfs 1.2G 129M 1.1G 12% /boot
NAME USED AVAIL REFER MOUNTPOINT
bpool 814M 977M 96K /boot
bpool/BOOT 811M 977M 96K none
bpool/BOOT/ubuntu_iis9yu 811M 977M 122M /boot
I canβt run inxi but memory seems fine. GNOME System Monitor shows 5.2 GB of 16 GB used with 2.6 in cache on a fresh boot. There are some background services running.
/etc/sysctl.dπ
ββ> kate README.sysctl
Files located in this directory can set kernel parameters using the
sysctl(8) or systemd-sysctl(8) tool which is typically run with a
unit/init file started during the boot sequence.
For details regarding the configuration files refer to
sysctl.d(5) or sysctl.conf(5)
I removed 19 snapshots (94 MB) from bpool and 362 snapshots (3 GB) from rpool, then restarted. Ran dpkg --configure -a again, and it made no progress after another 25 minutes.
Dang might have to wipe this one from a bad Version-Upgrade!
If you have good back-ups, a clean install would be good suggestion. (I know I already feel the grimness)
It happens to the best of us.
Unfortunately, I canβt do a fresh install at this time, as I donβt have a big enough spare drive to off-load all this data. The computer still works, as long as I donβt run the above command or refresh any snaps.
Maybe someone else will have an idea, but it is not looking goodβ¦
Is everything on one drive, really??? Please say itβs not so.
ββ> zpool status
pool: bpool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
ata-WD_Blue_SN570_500GB_22393Z808123-part2 ONLINE 0 0 0
errors: No known data errors
pool: rpool
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
usb-Sabrent_Sabrent_012345678930-0:0-part4 ONLINE 0 0 0
errors: No known data errors
pool: tank
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
sda1 ONLINE 0 0 0
errors: No known data errors
I found this post on GitHub, and it looks like people are having a similar issue with dpkg --configure -a freezing. There doesnβt seem to be a solution yet, and it looks to involve both Ubuntu and ZFS.