软件索引损坏,我该怎么办

软件索引损坏,我该怎么办

我尝试安装 libboost,但失败了。现在我收到错误消息,指出存在未满足的依赖项,我无法执行任何涉及升级或安装软件包的操作。我sudo apt-get -f install按照消息中的建议运行,但收到​​错误消息

root@IM-EPI140:~# 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:
  libboost1.42-dev
Suggested packages:
  libboost1.42-doc libboost-date-time1.42-dev libboost-filesystem1.42-dev
  libboost-graph1.42-dev libboost-iostreams1.42-dev libboost-math1.42-dev
  libboost-program-options1.42-dev libboost-python1.42-dev
  libboost-regex1.42-dev libboost-serialization1.42-dev
  libboost-signals1.42-dev libboost-system1.42-dev libboost-thread1.42-dev
  libboost-wave1.42-dev docbook-xsl fop
The following NEW packages will be installed:
  libboost1.42-dev
0 upgraded, 1 newly installed, 0 to remove and 28 not upgraded.
2 not fully installed or removed.
Need to get 0 B/6,624 kB of archives.
After this operation, 68.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: regarding .../libboost1.42-dev_1.42.0-4ubuntu2_amd64.deb containing libboost1.42-dev:
 libboost1.42-dev conflicts with libboost-dev (<< 1.35.0)
  libboost-dev:i386 (version 1.34.1-15ubuntu3) is present and unpacked but not configured.
dpkg: error processing /var/cache/apt/archives/libboost1.42-dev_1.42.0-4ubuntu2_amd64.deb (--unpack):
 conflicting packages - not installing libboost1.42-dev
Errors were encountered while processing:
 /var/cache/apt/archives/libboost1.42-dev_1.42.0-4ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何解决?

答案1

包管理器在这里说得很清楚:

  • libboost1.42-dev 与 libboost-dev (<< 1.35.0) 冲突 libboost-dev:i386 (版本 1.34.1-15ubuntu3) 存在且已解压但尚未配置。dpkg:错误处理 /var/cache/apt/archives/libboost1.42-dev_1.42.0-4ubuntu2_amd64.deb (--unpack):冲突的软件包 - 未安装 libboost1.42-dev

已安装以前的版本。(1.35.0)我将进入 synaptic 并先卸载该版本,然后重试。

相关内容