我运行时遇到错误apt-get upgrade
。我似乎安装了一个具有未满足的依赖项的软件包。
uname -a
输出:
Linux kbu 3.19.0-56-generic #62~14.04.1-Ubuntu SMP Fri Mar 11 11:03:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
这是以下的输出apt-get upgrade
:
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libefl-bin : Depends: libefl (= 201604022131-32022~ubuntu14.04.1) but 201603242131-31876~ubuntu14.04.1 is installed
E: Unmet dependencies. Try using -f.
这是运行的输出apt-get -f install
:
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following extra packages will be installed:
libefl
The following packages will be upgraded:
libefl
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 3,032 kB of archives.
After this operation, 3,278 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu/ trusty/main libefl amd64 201604022131-32022~ubuntu14.04.1 [3,032 kB]
Fetched 2,873 kB in 14s (193 kB/s)
(Reading database ... 217178 files and directories currently installed.)
Preparing to unpack .../libefl_201604022131-32022~ubuntu14.04.1_amd64.deb ...
Unpacking libefl (201604022131-32022~ubuntu14.04.1) over (201603242131-31876~ubuntu14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libefl_201604022131-32022~ubuntu14.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libelementary.so.1.17.99', which is also in package libelementary 201603242216-12490~ubuntu14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libefl_201604022131-32022~ubuntu14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
...以及输出apt-cache showpkg libefl
:
Package: libefl
Versions:
201604022131-32022~ubuntu14.04.1 (/var/lib/apt/lists/ppa.launchpad.net_enlightenment-git_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/ppa.launchpad.net_enlightenment-git_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages
MD5: c3762b13d2835617f77263b388ba31ad
Description Language: en
File: /var/lib/apt/lists/ppa.launchpad.net_enlightenment-git_ppa_ubuntu_dists_trusty_main_i18n_Translation-en
MD5: c3762b13d2835617f77263b388ba31ad
201603242131-31876~ubuntu14.04.1 (/var/lib/dpkg/status)
Description Language:
File: /var/lib/dpkg/status
MD5: cc1a6fd5b0ea2294658de3cd7b486a53
Reverse Depends:
libefl:i386,libefl
e20,libefl
libefl-dbg,libefl 201604022131-32022~ubuntu14.04.1
libefl-dev,libefl 201604022131-32022~ubuntu14.04.1
libefl-bin,libefl 201604022131-32022~ubuntu14.04.1
terminology,libefl
evas-loaders,libefl
emodule-comp-scale,libefl
ecomorph,libefl
emodule-exebuf,libefl
emodule-everything-websearch,libefl
emodule-everything-wallpaper,libefl
emodule-everything-tracker,libefl
emodule-everything-places,libefl
emodule-everything-pidgin,libefl
emodule-everything-mpris,libefl
emodule-everything-aspell,libefl
emodule-engage,libefl
emodule-empris,libefl
emodule-elfe,libefl
libelementary,libefl
libedbus1,libefl
emodule-wlan,libefl
emodule-winselector,libefl
emodule-winlist-ng,libefl
emodule-weather,libefl
emodule-uptime,libefl
emodule-taskbar,libefl
emodule-snow,libefl
emodule-slideshow,libefl
emodule-rain,libefl
emodule-moon,libefl
emodule-mem,libefl
emodule-mail,libefl
emodule-itask,libefl
emodule-flame,libefl
emodule-execwatch,libefl
emodule-diskio,libefl
emodule-deskshow,libefl
emodule-cpu,libefl
emodule-alarm,libefl
ecomorph-core,libefl
libelementary-bin,libefl
e17,libefl
Dependencies:
201604022131-32022~ubuntu14.04.1 - libbulletcollision2.81 (0 (null)) libbulletdynamics2.81 (0 (null)) libbulletsoftbody2.81 (0 (null)) libc6 (2 2.17) libdbus-1-3 (2 1.5.12) libfontconfig1 (2 2.9.0) libfreetype6 (2 2.2.1) libfribidi0 (2 0.19.2) libgcc1 (2 1:4.1.1) libgif4 (2 4.1.4) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libglib2.0-0 (2 2.37.3) libgstreamer-plugins-base1.0-0 (2 1.0.0) libgstreamer1.0-0 (2 1.0.0) libharfbuzz0b (2 0.9.4) libjpeg8 (2 8c) liblinearmath2.81 (0 (null)) libluajit-5.1-2 (0 (null)) libmount1 (2 2.20.1) libpng12-0 (2 1.2.13-4) libpulse0 (2 1:0.99.1) libsndfile1 (2 1.0.20) libssl1.0.0 (2 1.0.0) libstdc++6 (2 4.1.1) libtiff5 (2 4.0.3) libudev1 (2 199) libwebp5 (0 (null)) libx11-6 (2 2:1.2.99.901) libxcomposite1 (2 1:0.3-1) libxcursor1 (4 1.1.2) libxdamage1 (2 1:1.1) libxext6 (0 (null)) libxfixes3 (0 (null)) libxi6 (2 2:1.2.99.4) libxinerama1 (0 (null)) libxrandr2 (2 2:1.2.99.3) libxrender1 (0 (null)) libxss1 (0 (null)) libxtst6 (0 (null)) zlib1g (2 1:1.1.4) libecore-con1 (0 (null)) libecore-con1:i386 (0 (null)) libecore-evas1 (0 (null)) libecore-evas1:i386 (0 (null)) libecore-fb1 (0 (null)) libecore-fb1:i386 (0 (null)) libecore-file1 (0 (null)) libecore-file1:i386 (0 (null)) libecore-imf1 (0 (null)) libecore-imf1:i386 (0 (null)) libecore-ipc1 (0 (null)) libecore-ipc1:i386 (0 (null)) libecore-x1 (0 (null)) libecore-x1:i386 (0 (null)) libecore0 (0 (null)) libecore0:i386 (0 (null)) libecore1 (0 (null)) libecore1:i386 (0 (null)) libedbus2 (0 (null)) libedbus2:i386 (0 (null)) libedje1 (0 (null)) libedje1:i386 (0 (null)) libeet0 (0 (null)) libeet0:i386 (0 (null)) libeet1 (0 (null)) libeet1:i386 (0 (null)) libeeze1 (0 (null)) libeeze1:i386 (0 (null)) libefreet1 (0 (null)) libefreet1:i386 (0 (null)) libeina0 (0 (null)) libeina0:i386 (0 (null)) libeina1 (0 (null)) libeina1:i386 (0 (null)) libeio0 (0 (null)) libeio0:i386 (0 (null)) libembryo0 (0 (null)) libembryo0:i386 (0 (null)) libemotion1 (0 (null)) libemotion1:i386 (0 (null)) libevas0 (0 (null)) libevas0:i386 (0 (null)) libevas1 (0 (null)) libevas1:i386 (0 (null)) libefl:i386 (0 (null))
201603242131-31876~ubuntu14.04.1 - libbulletcollision2.81 (0 (null)) libbulletdynamics2.81 (0 (null)) libbulletsoftbody2.81 (0 (null)) libc6 (2 2.17) libdbus-1-3 (2 1.5.12) libfontconfig1 (2 2.9.0) libfreetype6 (2 2.2.1) libfribidi0 (2 0.19.2) libgcc1 (2 1:4.1.1) libgif4 (2 4.1.4) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libglib2.0-0 (2 2.37.3) libgstreamer-plugins-base1.0-0 (2 1.0.0) libgstreamer1.0-0 (2 1.0.0) libharfbuzz0b (2 0.9.4) libjpeg8 (2 8c) liblinearmath2.81 (0 (null)) libluajit-5.1-2 (0 (null)) libmount1 (2 2.20.1) libpng12-0 (2 1.2.13-4) libpulse0 (2 1:0.99.1) libsndfile1 (2 1.0.20) libssl1.0.0 (2 1.0.0) libstdc++6 (2 4.1.1) libtiff5 (2 4.0.3) libudev1 (2 199) libwebp5 (0 (null)) libx11-6 (2 2:1.2.99.901) libxcomposite1 (2 1:0.3-1) libxcursor1 (4 1.1.2) libxdamage1 (2 1:1.1) libxext6 (0 (null)) libxfixes3 (0 (null)) libxi6 (2 2:1.2.99.4) libxinerama1 (0 (null)) libxrandr2 (2 2:1.2.99.3) libxrender1 (0 (null)) libxss1 (0 (null)) libxtst6 (0 (null)) zlib1g (2 1:1.1.4) libecore-con1 (0 (null)) libecore-con1:i386 (0 (null)) libecore-evas1 (0 (null)) libecore-evas1:i386 (0 (null)) libecore-fb1 (0 (null)) libecore-fb1:i386 (0 (null)) libecore-file1 (0 (null)) libecore-file1:i386 (0 (null)) libecore-imf1 (0 (null)) libecore-imf1:i386 (0 (null)) libecore-ipc1 (0 (null)) libecore-ipc1:i386 (0 (null)) libecore-x1 (0 (null)) libecore-x1:i386 (0 (null)) libecore0 (0 (null)) libecore0:i386 (0 (null)) libecore1 (0 (null)) libecore1:i386 (0 (null)) libedbus2 (0 (null)) libedbus2:i386 (0 (null)) libedje1 (0 (null)) libedje1:i386 (0 (null)) libeet0 (0 (null)) libeet0:i386 (0 (null)) libeet1 (0 (null)) libeet1:i386 (0 (null)) libeeze1 (0 (null)) libeeze1:i386 (0 (null)) libefreet1 (0 (null)) libefreet1:i386 (0 (null)) libeina0 (0 (null)) libeina0:i386 (0 (null)) libeina1 (0 (null)) libeina1:i386 (0 (null)) libeio0 (0 (null)) libeio0:i386 (0 (null)) libembryo0 (0 (null)) libembryo0:i386 (0 (null)) libemotion1 (0 (null)) libemotion1:i386 (0 (null)) libevas0 (0 (null)) libevas0:i386 (0 (null)) libevas1 (0 (null)) libevas1:i386 (0 (null)) libefl:i386 (0 (null))
Provides:
201604022131-32022~ubuntu14.04.1 -
201603242131-31876~ubuntu14.04.1 -
Reverse Provides:
我对包管理器的了解apt
非常有限,并且我对更多信息的搜索没有发现任何对处理此问题有用的信息。
我还尝试了一些常见的解决方案来修复未满足的依赖关系(例如apt-get clean
并尝试再次升级)。如果特定的解决方案不明显,那么对其中一些命令的输出含义的更多了解将非常感激。
编辑
输出apt-cache policy libefl-bin libefl
:
libefl-bin:
Installed: 201604022131-32022~ubuntu14.04.1
Candidate: 201604022131-32022~ubuntu14.04.1
Version table:
*** 201604022131-32022~ubuntu14.04.1 0
500 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
libefl:
Installed: 201603242131-31876~ubuntu14.04.1
Candidate: 201604022131-32022~ubuntu14.04.1
Version table:
201604022131-32022~ubuntu14.04.1 0
500 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu/ trusty/main amd64 Packages
*** 201603242131-31876~ubuntu14.04.1 0
100 /var/lib/dpkg/status
的输出sudo apt-get purge libefl
:
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:
libefl-bin : Depends: libefl (= 201604022131-32022~ubuntu14.04.1) but it is not going to be installed
libelementary : Depends: libefl but it is not going to be installed
terminology : Depends: libefl but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
我在你发布后几分钟内就找到了这个帖子。看来这个问题是最近几天才出现的,并且与术语包有关。
我或多或少遵循了这些说明,以便再次正常工作:http://ubuntuforums.org/showthread.php?t=2319182
由于清除了 libefl,我无法完全遵循它们,因此我首先使用 dpkg 删除术语,然后使用 libelementary,并重新安装 libefl。之后,apt又高兴了。
答案2
对我来说,通过工作强制安装dpkg
:
sudo dpkg --force-all -i /var/cache/apt/archives/libefl_201604022131-32022~ubuntu14.04.1_amd64.deb
在那之后:
sudo apt-get -f install
答案3
我的有点不同。我必须做:
sudo dpkg -r libelementary
sudo apt-get purge terminology
sudo apt-get autoremove
重启机器
sudo apt-get install terminology
然后:
sudo dpkg --force-all -i /var/cache/apt/archives/libefl-bin_201604032132-32025~ubuntu14.04.1_amd64.deb
答案4
我有一个类似的问题:
dpkg: dependency problems prevent removal of libefl:
evas-loaders depends on libefl.
dpkg: error processing package libefl (--remove):
dependency problems - not removing
Errors were encountered while processing:
libefl
禁用启蒙 PPA 为我解决了这个问题。