Ubuntu: Failing to remove installed package, apt-get says not installed



Question:

apt list says I have samba

I don't believe I have a need for Samba. I'd like to remove it. But apt-get remove says not installed

$ 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.  

Is it possible that it is included not in its own right, but because something else depends on it?


Solution:1

Your apt list command does not indicate that samba is installed, just that it is available. Try

apt list --installed samba

or

apt-cache policy samba


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »