在Ubuntu 12.04LTS中下载和安装软件包时存在依赖性问题并保留了损坏的软件包

时间:2014-06-27 08:13:58

标签: dependencies package ubuntu-12.04 ubuntu-13.10 installation-package

我是Ubuntu的新手。我在笔记本电脑上安装了12.04 LTS,而且还很好。我想安装wine,VLC,Chromium Browser等软件包。我收到了各种错误消息,例如,

错误1.Package依赖关系无法解决。

从Ubuntu软件中心安装Chromium时,

chromium-browser: Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed Depends: libudev0 (>= 147) but 175-0ubuntu9.5 is to be installed Depends: libx11-6 (>= 2:1.2.99.901) but 2:1.4.99.1-0ubuntu2.2 is to be installed Depends: libxcomposite1 (>= 1:0.3-1) but 1:0.4.3-2build1 is to be installed Depends: libxdamage1 (>= 1:1.1) but 1:1.1.3-2build1 is to be installed Depends: libxi6 (>= 2:1.2.99.4) but 2:1.7.1.901-1ubuntu1~precise1 is to be installed Depends: libxss1 but it is not going to be installed Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu4 is to be installed

安装VLC时,

vlc: Depends: vlc-nox (= 2.0.8-0ubuntu0.12.04.1) but 2.0.8-0ubuntu0.12.04.1 is to be installed
     Depends: libavcodec-extra-53 (>= 4:0.8-1~) but 4:0.8.12ubuntu0.12.04.1 is to be installed
     Depends: libavutil-extra-51 (>= 4:0.8-1~) but 4:0.8.12ubuntu0.12.04.1 is to be installed
     Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.5 is to be installed
     Depends: libfreetype6 (>= 2.2.1) but 2.4.8-1ubuntu2.1 is to be installed
     Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed
     Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.1-0ubuntu4.8 is to be installed
     Depends: libqtgui4 (>= 4:4.7.0~beta1) but 4:4.8.1-0ubuntu4.8 is to be installed
     Depends: libstdc++6 (>= 4.6) but 4.6.3-1ubuntu5 is to be installed
     Depends: libva-x11-1 (> 1.0.15~) but it is not going to be installed
     Depends: libva1 (> 1.0.15~) but it is not going to be installed
     Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is to be installed

同时安装Cheese Camera Booth,

cheese: Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
        Depends: cheese-common (= 3.4.1-0ubuntu2.1) but 3.4.1-0ubuntu2.1 is to be installed

错误2.无法解决问题,您已经破坏了包裹。

我需要安装应用程序和软件包的解决方案,并且还需要解决这个问题。

我试过了,

sudo apt-get remove libapache2-mod-wsgi
sudo apt-get clean
sudo apt-get autoclean

then

sudo apt-get update
sudo apt-get install libapache2-mod-wsgi

错误3:Unable to fetch some archives, may run apt-get update or try with --missing?

运行和执行sudo apt-get update时也会显示此错误 但没用 请帮帮我..或者我应该去删除或更改Ubuntu版本,如果是这样请提及。

由于

2 个答案:

答案 0 :(得分:0)

我认为这应该可以帮到你

首先需要降级并完成以下操作:创建'首选项'文件:

sudo vi /etc/apt/preferences

并插入以下行:

Package: *       
Pin: release a=precise*
Pin-Priority: 2012

引脚优先级必须大于1000。

然后您可以使用以下命令降级违规应用程序:

sudo apt-get dist-upgrade

Then you may install packages that complained about dependencies, like
sudo apt-get install ia32-libs-multiarch, or sudo apt-get install ia32-libs.

最后,您应该删除刚刚创建的文件:

sudo rm /etc/apt/preferences

现在安装您的首选套餐

答案 1 :(得分:-1)

谢谢!问题解决了...... !!

没有什么比编码更重要了。

只需将服务器从印度更改为美国(mirror.us.kernel.org)。问题已解决..现在升级它并根据您的选择安装软件包。