Debian

幫助解除安裝virtualbox

  • July 1, 2020

我正在執行 Debian 10 並安裝了 VirtualBox,但現在它不會消失。嘗試執行sudo apt purge virtualbox時,我遇到以下輸出:Virtual packages like 'virtualbox' can't be removed.請有人幫忙!

dpkg -l virtualbox\*輸出:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                           Version                     Architecture Description
+++-==============================-===========================-============-=================================
un  virtualbox                     <none>                      <none>       (no description available)
ii  virtualbox-6.0                 6.0.22-137980~Ubuntu~bionic amd64        Oracle VM VirtualBox
un  virtualbox-guest-additions-iso <none>                      <none>       (no description available)
un  virtualbox-ose                 <none>                      <none>       (no description available)
un  virtualbox-qt                  <none>                      <none>       (no description available)

嘗試sudo apt purge virtualbox-6.0sudo apt purge virtualbox*

利用:

sudo apt purge virtualbox.

(末尾有一個點),它將刪除所有virtualbox*包。

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