“试图覆盖‘/usr/bin/cvlc’,它也在 vlc-nox 2.2.1-5+b1 包中”

“试图覆盖‘/usr/bin/cvlc’,它也在 vlc-nox 2.2.1-5+b1 包中”

我有一个 KL2016 并将其安装在 virtualbox 上,安装后问题就开始了

apt-get install && apt-get upgrade && apt-get dist-upgrade

这是我得到的错误

The following additional packages will be installed:
  vlc-bin
The following NEW packages will be installed:
  vlc-bin
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
3 not fully installed or removed.
Need to get 157 kB of archives.
After this operation, 382 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.xxxx.fr/kali/kali kali-rolling/main amd64 vlc-bin amd64 2.2.6-2 [157 kB]
Fetched 157 kB in 0s (167 kB/s) 
(Reading database ... 340385 files and directories currently installed.)
Preparing to unpack .../vlc-bin_2.2.6-2_amd64.deb ...
Unpacking vlc-bin (2.2.6-2) ...
dpkg: error processing archive /var/cache/apt/archives/vlc-bin_2.2.6-2_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/cvlc', which is also in package vlc-nox 2.2.1-5+b1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/vlc-bin_2.2.6-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

在相同的场景下遇到了相同的问题。

我必须清除提到的软件包,在本例中为:vlc-nox。

sudo dpkg -P vlc-nox

然后再次运行安装。

sudo apt-get install -f

之后应该可以工作。

相关内容