dpkg: 错误处理

dpkg: 错误处理
# dpkg -i /var/cache/apt/archives/pve-firmware_1.0-14_all.deb
(Reading database ... 39867 files and directories currently installed.)
Unpacking pve-firmware (from .../pve-firmware_1.0-14_all.deb) ...
dpkg: error processing /var/cache/apt/archives/pve-firmware_1.0-14_all.deb (--install):
 trying to overwrite '/lib/firmware/RTL8192SU/rtl8192sfw.bin', which is also in package firmware-realtek 0.28+squeeze1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/pve-firmware_1.0-14_all.deb

Debian 6 (amd64) 安装干净。如何深入调查问题?

解决了通过删除软件包 firmware-realtek。

答案1

你的问题很模糊,但问题在于此:

dpkg: error processing /var/cache/apt/archives/pve-firmware_1.0-14_all.deb (--install):
 trying to overwrite '/lib/firmware/RTL8192SU/rtl8192sfw.bin', which is also in package firmware-realtek 0.28+squeeze1

这意味着该文件/lib/firmware/RTL8192SU/rtl8192sfw.bin是这些包的一部分:

  • pve-firmware_1.0-14_all
  • firmware-realtek 0.28+squeeze1

如果你不需要替代方案,只需将其删除:

apt-get remove firmware-realtek 0.28+squeeze1

当你尝试这样做时要小心:APT 想要删除的任何其他内容,以防它是一组像 GNOME 或更糟糕的重要项目。

否则,您可以强制包使用以下命令覆盖该文件:

apt-get -o Dpkg::Options::="--force-overwrite" install pve-firmware_1.0-14_all

请注意将要覆盖文件,如果你依赖软件包firmware-realtek 0.28+squeeze1正常工作且完整,则可能不会。你的“新”文件版本可能较旧或较新,并且可能会产生不良反应;仅在以下情况下执行最后一条命令:知道你在做什么。

相关内容