Ubuntu 22.04-Upgrade auf linux-image-5.15.0-53-generic schlägt aufgrund von ZFS fehl

Ubuntu 22.04-Upgrade auf linux-image-5.15.0-53-generic schlägt aufgrund von ZFS fehl

Wenn ich versuche, auf meinem Laptop 22.04 (System 76) auf das neueste Kernel-Image zu aktualisieren, erhalte ich beim Unmounten eines Volumes von tmp, bei dem es sich anscheinend um ein ZFS-Volume handelt, eine Fehlermeldung:

$  sudo apt upgrade
[sudo] password for rotten:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libflashrom1 libftdi1-2 linux-headers-5.15.0-48
  linux-headers-5.15.0-48-generic linux-image-5.15.0-48-generic
  linux-modules-5.15.0-48-generic linux-modules-extra-5.15.0-48-generic
  python3-charset-normalizer python3-defusedxml python3-pygments
  python3-requests-toolbelt
Use 'sudo apt autoremove' to remove them.
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-5.15.0-53-generic (5.15.0-53.59) ...
Processing triggers for linux-image-5.15.0-53-generic (5.15.0-53.59) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.15.0-53-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-53-generic
W: Possible missing firmware /lib/firmware/amdgpu/yellow_carp_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vangogh_gpu_info.bin for module amdgpu..........................................................................W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_rlc.bin for module amdgpu........................................................................W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_sdma1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: vmlinuz-5.15.0-53-generic in rpool/ROOT/ubuntu_4nnk71
Found initrd image: initrd.img-5.15.0-53-generic in rpool/ROOT/ubuntu_4nnk71
Found linux image: vmlinuz-5.15.0-52-generic in rpool/ROOT/ubuntu_4nnk71
Found initrd image: initrd.img-5.15.0-52-generic in rpool/ROOT/ubuntu_4nnk71
Found linux image: vmlinuz-5.15.0-48-generic in rpool/ROOT/ubuntu_4nnk71
Found initrd image: initrd.img-5.15.0-48-generic in rpool/ROOT/ubuntu_4nnk71
umount: /tmp/zfsmnt.IHNzvH: target is busy.
umount: /tmp/zfsmnt.IHNzvH: target is busy.
rmdir: failed to remove '/tmp/zfsmnt.IHNzvH': Device or resource busy
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.15.0-53-generic (--configure):
 installed linux-image-5.15.0-53-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.15.0-53-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Der Einhängepunkt:

$  mount | grep zfsmnt.IHNzvH
rpool/ROOT/ubuntu_4nnk71 on /tmp/zfsmnt.IHNzvH type zfs (rw,noatime,xattr,posixacl)

Ich habe die Verschlüsselung aktiviert, falls das wichtig ist.

Im Moment startet mein Laptop sauber neu und hat keine weiteren Probleme. Ich stecke nur beim Upgrade auf das neueste Image fest.

Ich denke, die amdgpu-Warnungen sind ein Ablenkungsmanöver und können ignoriert werden.

Antwort1

Ich hatte im Wesentlichen die gleiche Fehlermeldung wie Sie. Der Teil der Installation, der abstürzte, konnte auch außerhalb des apt upgradeProzesses repliziert werden über sudo update-grub.

Wir gingen davon aus, dass es mit dem kürzlich installierten Sophos-Antivirus zusammenhängen könnte, und deaktivierten ihn daher über sudo systemctl stop sophos-spl.service. Danach sudo update-grubfunktionierte es. Da wir andere Befehle ausprobiert hatten, um das alte Kernel-Image usw. manuell zu entfernen, taten wir dies nun sudo apt-get dist-upgradeund sudo apt --fix-broken installdas System funktionierte wieder einwandfrei.

verwandte Informationen