[Kernel/Drive] 升级20.7后无法安装软件,有报错
Tofloor
poster avatar
185******90
deepin
2022-09-04 01:00
Author

每次安装时总提示,不是道什么原因:

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 initramfs-tools (0.137.35-1+dde) ...
update-initramfs: deferring update (trigger activated)
正在设置 linux-image-5.15.45-amd64-desktop (5.15.45-amd64-desktop-1) ...
update-initramfs: Generating /boot/initrd.img-5.15.45-amd64-desktop
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
nor crypto modules. If that's on purpose, you may want to uninstall the
'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
integration and avoid this warning.
setupcon is missing. Please install the 'console-setup' package.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
I: The initramfs will attempt to resume from /dev/sda7
I: (UUID=2b323fad-0baf-4f9c-a8d4-07606bad94da)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.
pigz: abort: write error on (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-5.15.45-amd64-desktop with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
fix systemd/logind config
正在生成 grub 配置文件 ...
找到主题:/boot/grub/themes/deepin-fallback/theme.txt
Found background image: /boot/grub/themes/deepin-fallback/background.jpg
找到 Linux 镜像:/boot/vmlinuz-5.15.45-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.45-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.10.101-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.10.101-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.3.0-42-generic
找到 initrd 镜像:/boot/initrd.img-5.3.0-42-generic
找到 initrd 镜像:/boot/deepin-ab-recovery/initrd.img-5.10.101-amd64-desktop
Found image: /boot/vmlinuz-5.15.45-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.45-amd64-desktop
Skipped Deepin 20.6 (20.6) on /dev/sda3 by user request.
Adding boot menu entry for EFI firmware configuration
完成
dpkg: 处理软件包 linux-image-5.15.45-amd64-desktop (--configure)时出错:
已安装 linux-image-5.15.45-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 linux-image-deepin-amd64 的配置工作不能继续:
linux-image-deepin-amd64 依赖于 linux-image-5.15.45-amd64-desktop;然而:
软件包 linux-image-5.15.45-amd64-desktop 尚未配置。

dpkg: 处理软件包 linux-image-deepin-amd64 (--configure)时出错:
依赖关系问题 - 仍未被配置
正在处理用于 initramfs-tools (0.137.35-1+dde) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-5.15.45-amd64-desktop
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
nor crypto modules. If that's on purpose, you may want to uninstall the
'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
integration and avoid this warning.
setupcon is missing. Please install the 'console-setup' package.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
I: The initramfs will attempt to resume from /dev/sda7
I: (UUID=2b323fad-0baf-4f9c-a8d4-07606bad94da)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.
/usr/sbin/update-initramfs: 185: /usr/sbin/update-initramfs: cannot create /var/lib/initramfs-tools/5.15.45-amd64-desktop: Directory nonexistent
dpkg: 处理软件包 initramfs-tools (--configure)时出错:
已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态 2
在处理时有错误发生:
linux-image-5.15.45-amd64-desktop
linux-image-deepin-amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply Favorite View the author
All Replies
uos008
deepin
2022-09-04 01:37
#1

试试:

sudo apt install linux-image-5.15.45-amd64-desktop linux-headers-5.15.45-amd64-desktop

sudo update-initramfs -u

Reply View the author
185******90
deepin
2022-09-04 18:15
#2
uos008

试试:

sudo apt install linux-image-5.15.45-amd64-desktop linux-headers-5.15.45-amd64-desktop

sudo update-initramfs -u

试过了,没用的,还是一样的反应,这几个包是已经装有了的,是配置出错了

Reply View the author