在安装过程中,ubuntu-restricted-extras
通过运行以下命令启动:
sudo apt-get install ubuntu-restricted-extras
我收到以下错误:
Selecting previously unselected package libvo-amrwbenc0:amd64.
Preparing to unpack .../libvo-amrwbenc0_0.1.3-1_amd64.deb ...
Unpacking libvo-amrwbenc0:amd64 (0.1.3-1) ...
dpkg: libavcodec56:amd64: dependency problems, but removing anyway as you requested:
libchromaprint0:amd64 depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11); however:
Package libavcodec56:amd64 is to be removed.
Package libavcodec-extra-56 is not installed.
vlc depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.2); however:
Package libavcodec56:amd64 is to be removed.
Package libavcodec-extra-56 is not installed.
vlc-nox depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.2); however:
Package libavcodec56:amd64 is to be removed.
Package libavcodec-extra-56 is not installed.
libavformat56:amd64 depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.2); however:
Package libavcodec56:amd64 is to be removed.
Package libavcodec-extra-56 is not installed.
这让我有点担心,因为它似乎卸载了一些重要的依赖项。我应该担心这个吗?我需要做些什么吗?我正在运行 Ubuntu GNOME 15.04。
信息更新:
运行时sudo apt-get install -f
输出没有问题,运行时没有输出sudo dpkg --configure -a
。
输出为apt-cache policy libchromaprint0 libavcodec56 libavcodec-extra-56 vlc
:
libchromaprint0:
Installed: 1.2-1
Candidate: 1.2-1
Version table:
*** 1.2-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
libavcodec56:
Installed: (none)
Candidate: 6:11.2-1
Version table:
6:11.2-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
libavcodec-extra-56:
Installed: 6:11.2-1
Candidate: 6:11.2-1
Version table:
*** 6:11.2-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
vlc:
Installed: 2.2.0-1
Candidate: 2.2.0-1
Version table:
*** 2.2.0-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
我尝试再次安装libavcodec56
,但得到的结果如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
libavcodec-extra libavcodec-extra-56
The following NEW packages will be installed
libavcodec56
0 to upgrade, 1 to newly install, 2 to remove and 0 not to upgrade.
Need to get 0 B/3,046 kB of archives.
After this operation, 88.1 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 232524 files and directories currently installed.)
Removing libavcodec-extra (6:11.2-1) ...
dpkg: libavcodec-extra-56:amd64: dependency problems, but removing anyway as you requested:
libchromaprint0:amd64 depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11); however:
Package libavcodec56:amd64 is not installed.
Package libavcodec-extra-56:amd64 is to be removed.
vlc depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.2); however:
Package libavcodec56:amd64 is not installed.
Package libavcodec-extra-56:amd64 is to be removed.
vlc-nox depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.2); however:
Package libavcodec56:amd64 is not installed.
Package libavcodec-extra-56:amd64 is to be removed.
libavformat56:amd64 depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.2); however:
Package libavcodec56:amd64 is not installed.
Package libavcodec-extra-56:amd64 is to be removed.
libopencv-highgui2.4:amd64 depends on libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11~beta1); however:
Package libavcodec56:am
Removing libavcodec-extra-56:amd64 (6:11.2-1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
现在的输出apt-cache policy libchromaprint0 libavcodec56 libavcodec-extra-56 vlc
是:
libchromaprint0:
Installed: 1.2-1
Candidate: 1.2-1
Version table:
*** 1.2-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
libavcodec56:
Installed: 6:11.2-1
Candidate: 6:11.2-1
Version table:
*** 6:11.2-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
libavcodec-extra-56:
Installed: (none)
Candidate: 6:11.2-1
Version table:
6:11.2-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
vlc:
Installed: 2.2.0-1
Candidate: 2.2.0-1
Version table:
*** 2.2.0-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
答案1
解决办法是,删除以打破依赖循环并重新安装您需要的内容。
删除一些软件包:
sudo apt-get remove vlc
sudo apt-get remove libchromaprint0
sudo apt-get remove libavcodec-extra-56 libavcodec-56
现在删除过时的软件包:
sudo apt-get autoremove
重新安装:
sudo apt-get install --reinstall ubuntu-restricted-extra
sudo apt-get install vlc