Ubuntu 22.04 の linux-image-5.15.0-53-generic へのアップグレードが ZFS により失敗する

Ubuntu 22.04 の linux-image-5.15.0-53-generic へのアップグレードが ZFS により失敗する

22.04 (System 76) ラップトップで最新のカーネル イメージにアップグレードしようとすると、ZFS ボリュームと思われるボリュームを tmp からアンマウントするときにエラーが発生します。

$  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)

マウントポイント:

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

問題があれば、暗号化は有効になっています。

現時点では、私のラップトップは正常に再起動し、他の問題はありません。最新のイメージにアップグレードするだけです。

amdgpu の警告は誤解を招くものなので無視してよいと思います。

答え1

基本的にあなたと同じエラー メッセージが表示されました。インストールで失敗した部分は、 をapt upgrade介してプロセス外で複製することもできますsudo update-grub

最近インストールした Sophos アンチウイルスに関連している可能性があると推測し、 で無効にしましたsudo systemctl stop sophos-spl.service。その後、 がsudo update-grub成功しました。古いカーネル イメージなどを手動で削除する他のコマンドを試していたのでsudo apt-get dist-upgradesudo apt --fix-broken installを実行してシステムを正常な状態に戻しました。

関連情報