pt-get 无法解决 Ubuntu 14.04 上未满足的依赖项 libserf-1-1

pt-get 无法解决 Ubuntu 14.04 上未满足的依赖项 libserf-1-1

在系统告诉我有一些可用更新后,我尝试更新系统时遇到了麻烦......

我首先运行以下命令,没有任何问题:

sudo apt-get update

然后我尝试“升级”,这里是输出:

#:~$ sudo apt-get upgrade
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:
 libserf-dev : Depends: libserf-1-1 (= 1.3.3-1ubuntu0.1) but it is not installed
 libserf1-dbg : Depends: libserf-1-1 (= 1.3.3-1ubuntu0.1) but it is not installed
 libsvn1 : Depends: libserf-1-1 (>= 1.2) but it is not installed
E: Unmet dependencies. Try using -f.

所以我运行了“sudo apt-get -f install”:

#:~$ 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:
  libserf-1-1
The following NEW packages will be installed:
  libserf-1-1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0 B/42.2 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 360153 files and directories currently installed.)
Preparing to unpack .../libserf-1-1_1.3.3-1ubuntu0.1_amd64.deb ...
Unpacking libserf-1-1:amd64 (1.3.3-1ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libserf-1-1_1.3.3-1ubuntu0.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libserf-1.so.1.3.0', which is also in package libserf1:amd64 1.3.2-0.1ubuntu0~ppa4
Errors were encountered while processing:
 /var/cache/apt/archives/libserf-1-1_1.3.3-1ubuntu0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

因此“-f install”并不能解决我的“未满足的依赖关系”问题......

有人知道如何解决这个问题吗?

任何帮助都将非常感激!

多谢 !

答案1

好的!我解决了我的问题!我在 AskUbuntu 上找到了答案:那里

我必须运行以下命令:sudo dpkg -r --force-depends libserf1 然后我就可以毫无问题地运行更新!

相关内容