我相信我的内部磁盘出现故障,但我不完全确定。为了检测到这一点,并在我可以更换它之前,我从外部硬盘驱动器制作了一个永久性活动磁盘。
我测试过它会保留我写入的任何文件,但我注意到我无法安装任何东西。当我尝试安装某些东西时出现此错误:
Do you want to continue? [Y/n] Y
Setting up linux-image-5.0.0-36-generic (5.0.0-36.39~18.04.1) ...
Setting up initramfs-tools (0.130ubuntu3.9) ...
/usr/sbin/update-initramfs: 6: /usr/sbin/update-initramfs: cannot create /cdrom/casper/vmlinuz: Read-only file system
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 2
Processing triggers for linux-image-5.0.0-36-generic (5.0.0-36.39~18.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
/usr/sbin/update-initramfs: 6: /usr/sbin/update-initramfs: cannot create /cdrom/casper/vmlinuz: Read-only file system
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: error processing package linux-image-5.0.0-36-generic (--configure):
installed linux-image-5.0.0-36-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
linux-image-5.0.0-36-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
任何有关如何在永久活动磁盘上安装程序的建议将不胜感激。该磁盘具有 Ubuntu 18.04。
它是否仍在尝试使用我的内部硬盘做任何事情?如果是,那可能也是一个问题,因为它是加密的。
谢谢!
在屏幕副本中缺少前面的行:
Do you want to continue? [Y/n] Y
Setting up linux-image-5.0.0-36-generic (5.0.0-36.39~18.04.1) ...
Setting up initramfs-tools (0.130ubuntu3.9) ...
这让我相信你进入了sudo apt upgrade
。您无法使用永久性 USB 执行此操作。
你只能这样做:
sudo apt update
sudo apt install <package_name>
哪里<package_name>
不是 linux 内核包,例如linux_image
或linux_header
.
问题不是基于您的加密硬盘,因为 Live USB 在手动安装之前不会看到您的硬盘或任何其他驱动器/分区。
此外,请确保在系统设置中关闭自动升级。不时使用:
apt list --upgradable
只有选择那些包sudo apt upgrade <package_name>
的时候都没有涉及到initramfs
,grub
,linux_image
或linux_header
。可能还有其他不应升级的软件包。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句