我尝试使用软件中心安装 vlc,然后弹出一个提示
此错误可能是由于缺少或无法安装所需的附加软件包而导致的。此外,还可能是不允许同时安装的软件包之间存在冲突。
从细节来看:
The following packages have unmet dependencies:
vlc: Depends: vlc-nox (= 2.2.0~pre2+git20141011+r57575+24+12~ubuntu14.10.1) but 2.2.0~pre2+git20141011+r57575+24+12~ubuntu14.10.1 is to be installed
Depends: libavcodec-extra-56 (>= 6:11) but 6:11-1 is to be installed
Depends: libavutil54 (>= 6:11~beta1) but 6:11-1 is to be installed
Depends: libc6 (>= 2.16) but 2.19-10ubuntu2.1 is to be installed
Depends: libegl1-x11 but it is a virtual package
Depends: libfreetype6 (>= 2.2.1) but 2.5.2-2ubuntu1 is to be installed
Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-16ubuntu6 is to be installed
Depends: libgles1 but it is a virtual package
Depends: libgles2 but it is a virtual package
Depends: libpulse0 (>= 1:1.0) but 1:4.0-0ubuntu22 is to be installed
Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.6+git49-gbc62005+dfsg-1ubuntu1 is to be installed
Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.6+git49-gbc62005+dfsg-1ubuntu1 is to be installed
Depends: libstdc++6 (>= 4.9) but 4.9.1-16ubuntu6 is to be installed
Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-1ubuntu1 is to be installed
我尝试使用命令,但发生了同样的事情。有什么建议吗?
答案1
因此,我找到了这个问题的答案 这里。 谢谢。
答案2
测试此过程:
打开终端,
按Ctrl++AltT
运行:
sudo -i
nano /etc/apt/sources.list
在打开的文件中,删除内容并粘贴以下内容:
deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu utopic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
# deb-src http://security.ubuntu.com/ubuntu utopic-security universe
deb http://security.ubuntu.com/ubuntu utopic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse
deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner
deb http://extras.ubuntu.com/ubuntu utopic main
# deb-src http://extras.ubuntu.com/ubuntu utopic main
deb http://us.archive.ubuntu.com/ubuntu/ utopic-proposed universe multiverse restricted main
Ctrl+ O,保存文件。Ctrl+ X,关闭 nano。
继续在终端中运行:
sudo -i
apt-get update
apt-get dist-upgrade
apt-get install vlc
apt-get autoremove
apt-get -f install
dpkg --configure -a
apt-get clean