我是 Ubuntu 新手——我使用 ubuntu 14.04 LTS。我尝试使用 ubuntu 视频播放器播放一些视频,需要安装一些插件,但出现了以下错误:
Package dependencies cannot be resolved
This error could be caused by required additional software packages
which are missing or not installable. Furthermore there could be a
conflict between software packages which are not allowed to be
installed at the same time.
更多详细信息如下:
The following packages have unmet dependencies:
gstreamer1.0-libav: Depends: libavcodec-extra-54 (>= 6:9.13) but
6:9.18-0ubuntu0.14.04.1 is to be installed
Depends: libavformat54 (>= 6:9.1-1) but 6:9.18-0ubuntu0.14.04.1 is to be installed
Depends: libavutil52 (>= 6:9.1-1) but 6:9.18-0ubuntu0.14.04.1 is to be installed
Depends: libc6 (>= 2.14) but 2.19-0ubuntu6.6 is to be installed
Depends: libglib2.0-0 (>= 2.37.3) but 2.40.2-0ubuntu1 is to be installed
我也尝试安装 VLC 播放器,但再次出现包依赖性错误。
更多详细信息如下:
The following packages have unmet dependencies:
vlc: Depends: vlc-nox (= 2.1.6-0ubuntu14.04.1) but
2.1.6-0ubuntu14.04.1 is to be installed
Depends: libc6 (>= 2.15) but 2.19-0ubuntu6.6 is to be installed
Depends: libfreetype6 (>= 2.2.1) but 2.5.2-1ubuntu2.4 is to be installed
Depends: libgcc1 (>= 1:4.1.1) but 1:5.1.0-0ubuntu11~14.04.1 is to be installed
Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed
Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed
Depends: libstdc++6 (>= 4.6) but 5.1.0-0ubuntu11~14.04.1 is to be installed
Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-1ubuntu1 is to be installed
我尝试了很多网上公布的解决方案,但都没有用
我该如何解决这些错误?
更新:以下是etc/apt/sources.list.d
google-chrome.列表 google-chrome.列表.保存
ubuntu-toolchain-r-test-trusty.list
ubuntu-toolchain-r-test-trusty.list.save
webupd8team-sublime-text-2-trusty.list
webupd8team-sublime-text-2-trusty.list.save
抱歉我的语言不好,英语不是我的母语。
答案1
尝试运行以下命令:
sudo apt-get update && sudo apt-get install -f
这将更新你的 repo 缓存,然后修复大多数依赖问题。
如果仍然失败,请尝试运行以下命令,然后立即运行上述命令。
sudo apt-get update && sudo apt-get dist-upgrade
这将更新您的所有软件并确保您运行的是最新版本的 Ubuntu。