xml2-config 与系统上的同一文件不同

xml2-config 与系统上的同一文件不同

我跟着此程序在新系统中恢复以前导出的软件包列表。在这个过程结束时,sudo apt-get dselect-upgrade -y我收到了这条消息:

[cut]lot of output, everything OK[cut]

Errors were encountered while processing:
 /var/cache/apt/archives/libsensors4_1%3a3.3.1-2ubuntu1_i386.deb
 /var/cache/apt/archives/gcc-4.4-base_4.4.7-1ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

完整输出可在paste.ubuntu.com./etc/sources.list内容也可用这里

然后我再次输入sudo apt-get dselect-upgrade -y。这是错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libxslt1-dev:i386 : Depends: libxml2-dev:i386 (>= 2.6.26) but it is not installed
E: Unmet dependencies. Try using -f.

并尝试sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libxml2-dev:i386
The following NEW packages will be installed:
  libxml2-dev:i386
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
5 not fully installed or removed.
Need to get 0 B/761 kB of archives.
After this operation, 2,206 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
(Reading database ... 372874 files and directories currently installed.)
Unpacking libxml2-dev:i386 (from .../libxml2-dev_2.7.8.dfsg-5.1ubuntu4.3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libxml2-dev_2.7.8.dfsg-5.1ubuntu4.3_i386.deb (--unpack):
 './usr/bin/xml2-config' is different from the same file on the system
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libxml2-dev_2.7.8.dfsg-5.1ubuntu4.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

其他人也遇到了类似的问题,我尝试关注这个答案,但无法解决。你能帮助我吗?

答案1

它是已知错误,恐怕。libxml2-dev被标记为可多架构共同安装,但实际上并非如此。

卸载它:apt-get remove libxml2-dev:i386

相关内容