apt 列表说我有 samba
我认为我不需要 Samba。我想删除它。但 apt-get remove 说未安装
$ apt list -a samba
Listing... Done
samba/xenial-updates,xenial-security 2:4.3.11+dfsg-0ubuntu0.16.04.8 amd64
samba/xenial 2:4.3.8+dfsg-0ubuntu1 amd64
$ sudo apt-get remove samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'samba' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 19 not to upgrade.
是否有可能它不是因其本身的权利而被包括在内,而是因为其他东西依赖于它?
答案1
您的apt list
命令并不表明 Samba 已安装,只是表明它可用。尝试
apt list --installed samba
或者
apt-cache policy samba