我该如何解决 VLC 的依赖“vlc-nox”?

我该如何解决 VLC 的依赖“vlc-nox”?

我已经安装了 Ubuntu (Ubuntu 2.6.38-11-generic-pae #50-Ubuntu SMP, i686 Athlon i386 GNU/Linux)。我是 Linux 新手。

我正在尝试使用命令行安装 VLC 媒体播放器:

% sudo apt-get update
% sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

第一个命令执行没有问题。然后我尝试运行第二行,得到以下输出:

Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies:  mozilla-plugin-vlc : Depends: vlc-nox (= 1.1.9-1ubuntu1.3) but it is not going to be installed  vlc : Depends: vlc-nox (= 1.1.9-1ubuntu1.3) but it is not going to be installed
       Depends: libavcodec52 (>= 4:0.6-1~) but it is not going to be installed or
                libavcodec-extra-52 (>= 4:0.6-1~) but it is not going to be installed
       Depends: libqtgui4 (>= 4:4.5.3) but it is not going to be installed
       Depends: libva-x11-1 but it is not installable
       Depends: libva1 but it is not installable
       Depends: libxcb-keysyms1 (>= 0.3.6) but it is not installable
       Depends: libxcb-randr0 (>= 1.1) but it is not installable
       Depends: libxcb-xv0 (>= 1.2) but it is not installable
       Recommends: vlc-plugin-notify (= 1.1.9-1ubuntu1.3) but it is not going to be installed  vlc-plugin-pulse : Depends: vlc-nox (=
1.1.9-1ubuntu1.3) but it is not going to be installed E: Broken packages

我该如何解决这个问题?

之后我也尝试安装GNOME 媒体播放器来自 Ubuntu 软件中心。它返回以下错误消息:

The following packages have unmet dependencies:

gnome-media-player: Depends: libatkmm-1.6-1 (>= 2.22.0) but 2.22.5-0ubuntu1 is to be installed
                    Depends: libc6 (>= 2.4) but 2.13-0ubuntu13 is to be installed
                    Depends: libdbus-1-3 (>= 1.0.2) but 1.4.6-1ubuntu6.1 is to be installed
                    Depends: libdbus-glib-1-2 (>= 0.78) but 0.92-0ubuntu1 is to be installed
                    Depends: libgcc1 (>= 1:4.1.1) but 1:4.5.2-8ubuntu4 is to be installed
                    Depends: libgconf2-4 (>= 2.31.1) but 2.32.2-0ubuntu2 is to be installed
                    Depends: libglib2.0-0 (>= 2.12.0) but 2.28.6-0ubuntu1 is to be installed
                    Depends: libglibmm-2.4-1c2a (>= 2.27.3) but 2.28.0-1 is to be installed
                    Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.0) but 0.10.32-1ubuntu5 is to be installed
                    Depends: libgstreamer0.10-0 (>= 0.10.7) but 0.10.32-3ubuntu3.1 is to be installed
                    Depends: libgtk2.0-0 (>= 2.12.0) but 2.24.4-0ubuntu2 is to be installed
                    Depends: libgtkmm-2.4-1c2a (>= 1:2.22.0) but 1:2.24.0-0ubuntu1 is to be installed
                    Depends: libsigc++-2.0-0c2a (>= 2.0.2) but 2.2.4.2-1ubuntu1 is to be installed
                    Depends: libstdc++6 (>= 4.5) but 4.5.2-8ubuntu4 is to be installed
                    Depends: libunique-1.0-0 (>= 1.0.0) but 1.1.6-1.1ubuntu2 is to be installed
                    Depends: libvlc5 (>= 1.1.0) but 1.1.9-1ubuntu1.3 is to be installed
                    Depends: libxine1 (>= 1.1.8-1) but it is not going to be installed

答案1

那里的日志告诉您缺少一堆依赖项。您可以选择缓慢的方式,单独安装每个依赖项或用空格分隔。但是,我正在运行 ubuntu 11.04(最新稳定版本),没有遇到同样的问题。唯一的区别可能是我在新安装后遇到了(如下)。

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential

在此处输入图片描述

当我去安装 vlc 时

sudo apt-get install vlc

它告诉我需要安装依赖项。我输入 Y 来安装它们。该过程正常进行并安装。

答案2

有些软件包(例如gstreamer)不在标准存储库中。您需要启用从 multiverse 和 universe 存储库下载。

软件源窗口

更多信息:https://help.ubuntu.com/community/Repositories/Ubuntu

答案3

对我而言(Ubuntu 11.10),答案很简单,只需运行:

 sudo apt-get -f install

答案4

我也遇到了同样的问题。为了解决这个问题,我做了

打开软件中心。

从编辑点击软件源

在 Ubuntu 软件选项卡下,启用除源代码之外的所有存储库,然后单击从中下载

从下载下拉菜单中选择其他

现在点击选择最佳服务器

一旦 Ubuntu 为你选择了最佳服务器,点击选择服务器

现在单击其他软件选项卡。

如果找到 VLC,请删除所有条目。然后单击“关闭”。

按 ALT + CTRL + T 组合键打开终端并运行以下命令

sudo apt-get clean
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

升级后重新启动系统。

重启后再次尝试安装 VLC。运行以下命令

sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install vlc

来源 : - http://computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-install-vlc-in-ubuntu.html

相关内容