我正在尝试从电脑中删除 virtualbox,但无法删除包。
dpkg 可以看到它:
dpkg -l 'virtualbox*' | grep ^i
in virtualbox-5.0 <none> amd64 (no description available)
但当我尝试删除时:
sudo apt-get remove virtualbox-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'virtualbox-5.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt autoremove --purge virtualbox-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'virtualbox-5.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
我怎样才能删除这个包?
答案1
dpkg -l
显示该包未安装in
。
第一个字符in
表示该包标记为待安装,第二个字符表示该包当前未安装。