每当我尝试aptitude install
做某事时,我都会收到此错误:
E: I wasn't able to locate a file for the libxmlrpc-c3 package.
This might mean you need to manually fix this package. (due to missing arch)
Writing extended state information... Done
E: I wasn't able to locate a file for the libxmlrpc-c3 package.
This might mean you need to manually fix this package. (due to missing arch)
E: Internal error: couldn't generate list of packages to download
我aptitude remove
从中删除了该包/var/cache/apt/archive
,但再次尝试时仍然出现同样的错误。
这是来自 dpkg/status 的:
Package: libxmlrpc-c3
Status: deinstall reinstreq half-installed
Priority: optional
Section: libs
Version: 1.06.27-1.1
这是来自lsb_release -a; uname -a; dpkg-architecture; apt-cache policy ttf-mscorefonts-installer
:
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_ARCH_BITS=32
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_ARCH_BITS=32
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu
ttf-mscorefonts-installer:
Installed: (none)
Candidate: 2.7
Version table:
2.7 0
500 http://ftp.cn.debian.org lenny/contrib Packages
我该如何修复这个错误?
答案1
手册dpkg
页有
软件包标志 resist-required 标记为 resist-required 的软件包已损坏,需要重新安装。除非使用选项 --force-remove-reinstreq 强制删除,否则无法删除这些软件包。
所以尝试一下
dpkg --force-remove-reinstreq --remove libxmlrpc-c3
或者,如果您也想删除配置文件,则可以使用--purge
而不是,因为不会删除它们。--remove
--remove