在ubuntu 14.04上安装vlc时无法满足依赖性

时间:2014-11-16 12:52:27

标签: ubuntu installation vlc ubuntu-14.04 libavcodec

花了大约4小时现在仍然无法弄清楚这里有什么问题。

这是终端转储:

machine@machine:~$ sudo apt-get install 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:
 vlc : Depends: vlc-nox (= 3.0.0~~git20141116+r58673+31~ubuntu14.04.1) but it is not going to be installed
       Depends: libavcodec55 (>= 6:9.1-1) but it is not installable or
                libavcodec-extra-55 (>= 6:10~~git20131218.b3189af~ubuntu14.04.1) but it is not installable
       Depends: libavutil53 (>= 6:9.1-1) but it is not installable
       Recommends: vlc-plugin-notify (= 3.0.0~~git20141116+r58673+31~ubuntu14.04.1) but it is not going to be installed
       Recommends: vlc-plugin-samba (= 3.0.0~~git20141116+r58673+31~ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
machine@machine:~$ sudo apt-get install libavcodec55
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libavcodec55 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libavcodec55' has no installation candidate
machine@machine:~$ sudo apt-get install libavutil53
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libavutil53 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libavutil53' has no installation candidate
machine@machine:~$ 

我正在使用ubuntu 14.04(可信赖的),我几乎尝试了所有内容,但无法解决这些依赖关系

问题是对于不可用的库显示了依赖关系。请帮助解决这个问题。谢谢!

PS:我的askubuntu帐户不适用于某些后端帐户不匹配,这就是为什么我问SO

这是一个NightMare:\

5 个答案:

答案 0 :(得分:10)

显然安装了一些第三方PPA,我在终端使用以下命令解决了这个问题:

删除第三方PPA

sudo rm /etc/apt/sources.list.d/mc3man-trusty-media-trusty*

然后删除为VLC添加的PPA(,如果有的话

sudo rm /etc/apt/sources.list.d/videolan-master-daily*

更新

sudo apt-get update

安装VLC:

sudo apt-get install vlc

参考:Link


然后我偶然发现了另一个问题,VLCSub(VLC字幕下载器的内置实用程序)在这个版本的VLC中无效,所以我删除了上面所有安装的东西:

sudo apt-get purge vlc

然后为VLCSub兼容的VLC运行这些命令(这已过时,请参阅下面的编辑) <击>

<击>

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

<击>

参考:Link


编辑(2015年7月7日更新)

所以,djcj/vlc-stable注定要失败,这是我在14.04的最新ubuntu安装中的更新方式:

版本2.2.1

sudo apt-get remove vlc vlc-plugin-*  #remove any vlc data /  plugin

sudo add-apt-repository ppa:mc3man/trusty-media

sudo apt-get update

sudo apt-get install vlc vlc-plugin-*

参考:Link

..... 不要忘记添加VLSub以获得愉快的字幕下载体验:)

答案 1 :(得分:7)

我正在使用 ppa:djcj / vlc-stable ,但似乎已经消失了。最后几个软件更新抱怨它无法找到文件。

我删除了此PPA,并尝试使用Google搜索找到的其他一些PPA,但没有任何效果。我一直得到与上面相同/类似的错误。

我终于尝试了以下命令:

sudo apt-get purge vlc-* # include the hyphen

已成功删除 vlc-data 。之后,我能够使用以下命令安装和运行VLC:

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

希望有所帮助。

答案 2 :(得分:2)

这对我很有用:

sudo apt-get update
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install vlc

答案 3 :(得分:1)

我可以使用以下命令集安装

    sudo apt-get install libglapi-mesa
    sudo apt-get install libgles1-mesa
    sudo apt-get install libgles2-mesa
    sudo apt-get install vlc

答案 4 :(得分:0)

我不是专业人士,但这个错误听起来像是一个我似乎已经出现问题的问题

1)您是否尝试更新apt?

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

2)你可以安装其他套餐吗?

- 尝试查看/重置您的来源列表,然后再次检查之前运行apt-get update

包源列表位于/ etc / apt /中。 / var / lib / apt / lists保存在上一次apt-get更新期间从所有已配置的源检索的已知包的列表。在某些罕见的情况下删除它并没有重大的不利影响可能会有所帮助,但通常apt-get update就足够了。 https://askubuntu.com/questions/436366/i-am-not-able-to-install-any-packages-via-apt-get-why

- 关于: “E:无法纠正问题,你已经破坏了包裹”

请参阅: http://www.linuxquestions.org/questions/linux-desktop-74/unable-to-correct-problems-you-have-held-broken-packages-4175510237/

相关问题