从 13.04 升级到 13.10 失败且依赖项损坏

从 13.04 升级到 13.10 失败且依赖项损坏

我尝试将我的 Ubuntu 13.04 升级到 13.10,但升级 latex 包失败,错误来自 [此处] (从 13.04 升级至 13.10 停止) 并冷静下来尝试回滚。但是计算机声称处于 13.10。

当我尝试运行时,apt-get install我得到:

    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:
 libboost-chrono1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-date-time1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-filesystem1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-graph-parallel1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-graph1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-iostreams1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-locale1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-math1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-mpi1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-program-options1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-python1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-random1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-regex1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-serialization1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-signals1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-system1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-test1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-thread1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-timer1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
 libboost-wave1.49-dev : Depends: libboost1.49-dev (= 1.49.0-4) but 1.49.0-3.2ubuntu1 is installed
E: Unmet dependencies. Try using -f.

当我尝试时,apt-get -f install出现错误:

The following extra packages will be installed:
  libboost1.49-dev
Suggested packages:
  libboost1.49-doc xsltproc docbook-xsl fop
The following packages will be upgraded:
  libboost1.49-dev
1 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
40 not fully installed or removed.
Need to get 0 B/9,208 kB of archives.
After this operation, 36.9 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 598837 files and directories currently installed.)
Preparing to replace libboost1.49-dev 1.49.0-3.2ubuntu1 (using .../libboost1.49-dev_1.49.0-4_amd64.deb) ...
Unpacking replacement libboost1.49-dev ...
dpkg: error processing /var/cache/apt/archives/libboost1.49-dev_1.49.0-4_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/bcp', which is also in package libboost1.53-tools-dev 1.53.0-6+exp3ubuntu8
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libboost1.49-dev_1.49.0-4_amd64

我考虑过删除重新下载的提升功能,但不想让我的系统变得更奇怪和更不稳定。

关于如何最好地解决此问题以及升级失败可能导致的任何其他问题,您有什么建议吗?

答案1

问题是libboost1.49-dev从其他存储库安装的版本与libboost1.49-dev从主存储库新安装的版本相竞争。

因此,首先您需要删除礼物libboost1.49-dev

sudo dpkg --purge libboost1.49-dev

然后清理 apt-cache

sudo apt-get clean

然后运行sudo apt-get -f install

相关内容