当我尝试在我的 22.04(系统 76)笔记本电脑上升级到最新的内核映像时,我收到一个错误,从 tmp 卸载一个似乎是 ZFS 卷的卷:
$ 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-upgrade
,sudo apt --fix-broken install
系统恢复正常。