Dpkg

“試圖覆蓋‘/usr/bin/cvlc’,它也在包 vlc-nox 2.2.1-5+b1 中”

  • November 13, 2017

我有一個 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)

在相同的情況下遇到相同的問題。

我不得不清除提到的包,在這種情況下:vlc-nox。

sudo dpkg -P vlc-nox

然後再次執行安裝。

sudo apt-get install -f

之後應該工作。

引用自:https://unix.stackexchange.com/questions/373767