【问题标题】:Dependencies problems in downloading and installing packages in Ubuntu 12.04LTS and held broken packages在 Ubuntu 12.04LTS 中下载和安装软件包的依赖关系问题和损坏的软件包
【发布时间】:2014-08-18 06:46:39
【问题描述】:

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

错误1.无法解析包依赖。

在从 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 版本,如果是这样,请提及。

谢谢

【问题讨论】:

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


    【解决方案1】:

    我认为这对你有帮助

    首先需要降级并通过以下方式完成:创建“首选项”文件:

    sudo vi /etc/apt/preferences
    

    并插入以下行:

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

    Pin-Priority 必须大于 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
    

    现在安装你喜欢的包

    【讨论】:

      【解决方案2】:

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

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多