我已经使用卸载了VirtualBox,sudo apt-get remove --purge virtualbox-5.2
并且操作成功。但是,当运行命令时,apt-cache pkgnames virtualbox
它将显示以下结果。
所以我跑了,sudo apt-get remove virtualbox
但它显示了Package 'virtualbox' is not installed, so not removed
。如何重新打包这些软件包?
如何找到要卸载的软件包的名称?
pkgnames [prefix]
This command prints the name of each package APT knows. The
optional argument is a prefix match to filter the name list.
[...]
Note that a package which APT knows of is not necessarily available
to download, installable or installed, e.g. virtual packages are
also listed in the generated list.
如果要查找已安装的软件包,一种方法是使用apt list
:
list (work-in-progress)
list is somewhat similar to dpkg-query --list in that it can
display a list of packages satisfying certain criteria. It supports
glob(7) patterns for matching package names as well as options to
list installed (--installed), upgradeable (--upgradeable) or all
available (--all-versions) versions.
所以:
apt list --installed 'virtualbox*'
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句