[Seek Help] dpkg: 处理软件包 linux-i*-desktop (--configure)时出错
Tofloor
poster avatar
奢青
deepin
2021-05-12 22:46
Author

zhu@zhu-PC:~$ sudo apt autoremove
请输入密码
[sudo] zhu 的密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 linux-image-5.4.70-amd64-desktop (5.4.70-amd64-desktop-2) ...
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/rtbth/3.9.3/source/dkms.conf does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
update-initramfs: Generating /boot/initrd.img-5.4.70-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.
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-5.10.18-amd64-desktop
Found initrd image: /boot/initrd.img-5.10.18-amd64-desktop
Found linux image: /boot/vmlinuz-5.4.70-amd64-desktop
Found initrd image: /boot/initrd.img-5.4.70-amd64-desktop
Found linux image: /boot/vmlinuz-5.4.50-amd64-desktop
Found initrd image: /boot/initrd.img-5.4.50-amd64-desktop
Found Windows 10 on /dev/sdb2
Found Ubuntu 18.04.3 LTS (18.04) on /dev/sdb6
done
dpkg: 处理软件包 linux-image-5.4.70-amd64-desktop (--configure)时出错:
 已安装 linux-image-5.4.70-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 linux-image-5.10.18-amd64-desktop (5.10.18-amd64-desktop-1) ...
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/rtbth/3.9.3/source/dkms.conf does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
update-initramfs: Generating /boot/initrd.img-5.10.18-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.
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-5.10.18-amd64-desktop
Found initrd image: /boot/initrd.img-5.10.18-amd64-desktop
Found linux image: /boot/vmlinuz-5.4.70-amd64-desktop
Found initrd image: /boot/initrd.img-5.4.70-amd64-desktop
Found linux image: /boot/vmlinuz-5.4.50-amd64-desktop
Found initrd image: /boot/initrd.img-5.4.50-amd64-desktop
Found Windows 10 on /dev/sdb2
Found Ubuntu 18.04.3 LTS (18.04) on /dev/sdb6
done
dpkg: 处理软件包 linux-image-5.10.18-amd64-desktop (--configure)时出错:
 已安装 linux-image-5.10.18-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 linux-image-deepin-amd64 的配置工作不能继续:
 linux-image-deepin-amd64 依赖于 linux-image-5.10.18-amd64-desktop;然而:
  软件包 linux-image-5.10.18-amd64-desktop 尚未配置。

dpkg: 处理软件包 linux-image-deepin-amd64 (--configure)时出错:
 依赖关系问题 - 仍未被配置
在处理时有错误发生:
 linux-image-5.4.70-amd64-desktop
 linux-image-5.10.18-amd64-desktop
 linux-image-deepin-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
zhu@zhu-PC:~$ sudo apt dist-upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
正在计算更新... 完成
下列软件包是自动安装的并且现在不需要了:
  codeblocks-common libcodeblocks0
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被升级:
  org.codeblocks.codeblocks
升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
需要下载 0 B/197 MB 的归档。
解压缩后会消耗 866 kB 的额外空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 389856 个文件和目录。)
准备解压 .../org.codeblocks.codeblocks_20.03_amd64.deb  ...
正在解压 org.codeblocks.codeblocks (20.03) 并覆盖 (16.01+dfsg-2.2) ...
dpkg: 处理归档 /var/cache/apt/archives/org.codeblocks.codeblocks_20.03_amd64.deb (--unpack)时出错:
 正试图覆盖 /usr/share/doc/codeblocks-common/changelog.Debian.gz,它同时被包含于软件包 codeblocks-common 16.01+dfsg-2.1
Sending data...
在处理时有错误发生:
 /var/cache/apt/archives/org.codeblocks.codeblocks_20.03_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
zhu@zhu-PC:~$

________________________________________________________________

请问怎么处理?

Reply Favorite View the author
All Replies
SamLukeYes
deepin
2021-05-12 23:16
#1

又是商店打包乱来?卸载商店里的 codeblocks(包名:org.codeblocks.codeblocks)看看

Reply View the author
lcw0268
deepin
2021-05-13 00:16
#2
It has been deleted!
Ziggy
deepin
2021-05-13 06:32
#3

sudo dpkg --configure -a && sudo apt -f install

Reply View the author
奢青
deepin
2021-05-15 11:19
#4

https://bbs.archlinux.org/viewtopic.php?id=151965

6楼正解

Reply View the author