Nir*_* T. 15 package-management dependencies phpmyadmin
当我尝试安装系统更新时,skype或phpmyadmin出现此错误:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc6 : Depends: libgcc1 but it is not going to be installed
Depends: tzdata but it is not going to be installed
libc6-dev : Depends: libc-dev-bin (= 2.15-0ubuntu10.3)
Depends: linux-libc-dev but it is not going to be installed
Recommends: gcc but it is not going to be installed or
c-compiler
skype:i386 : Depends: libasound2:i386 (>= 1.0.16) but it is not going to be installed
Depends: libc6:i386 (>= 2.3.6-6~) but it is not going to be installed
Depends: libc6:i386 (>= 2.7) but it is not going to be installed
Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed
Depends: libqt4-dbus:i386 (>= 4:4.5.3) but it is not going to be installed
Depends: libqt4-network:i386 (>= 4:4.8.0) but it is not going to be installed
Depends: libqt4-xml:i386 (>= 4:4.5.3) but it is not going to be installed
Depends: libqtcore4:i386 (>= 4:4.7.0~beta1) but it is not going to be installed
Depends: libqtgui4:i386 (>= 4:4.8.0) but it is not going to be installed
Depends: libqtwebkit4:i386 (>= 2.1.0~2011week13) but it is not going to be installed
Depends: libstdc++6:i386 (>= 4.6) but it is not going to be installed
Depends: libx11-6:i386 but it is not going to be installed
Depends: libxext6:i386 but it is not going to be installed
Depends: libxss1:i386 but it is not going to be installed
Depends: libxv1:i386 but it is not going to be installed
Depends: libssl1.0.0:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
Coa*_*Web 23
-f or --fix-broken
Run Code Online (Sandbox Code Playgroud)
来自man apt-get页面的解释
使固定; 尝试更正具有破坏依赖关系的系统。此选项与 install/remove 一起使用时,可以省略任何包以允许 APT 推断出可能的解决方案。如果指定了包,则这些包必须完全纠正问题。第一次运行 APT 时,有时需要该选项;APT 本身不允许系统上存在损坏的包依赖项。系统的依赖结构可能会损坏到需要手动干预(这通常意味着使用 dselect(1) 或 dpkg --remove 来消除一些有问题的包)。在某些情况下,将此选项与 -m 一起使用可能会产生错误。配置项:APT::Get::Fix-Broken。
我建议尝试以下命令。
sudo dpkg --configure -a
sudo apt-get install -f
Run Code Online (Sandbox Code Playgroud)
对任何提示回答是,让 apt-get 尝试为您解决问题。
编辑:
根据评论尝试以下命令它应该清理您的系统。
sudo sh -c "apt-get update;apt-get dist-upgrade;apt-get autoremove;apt-get autoclean"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
187127 次 |
| 最近记录: |