Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

To uninstall a package (Ex: tor) installed from repository one should use

sudo apt-get remove tor

I did this but dpkg -l | grep tor shown something against the package. Next I try

sudo apt-get purge tor

But when I check dpkg -l | grep tor I got,

reza@reza-N43JM:/$ dpkg -l tor    
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
un  tor            <none>         (no description available)

I think when I uninstall any package I should not get anything in dpkg -l list. Is it true? Or apt-get remove or purge does another work but not uninstall?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Note the first two letters of the output of dpkg -l tor which says un

u: Unknown (an unknown state)
n: Not- The package is not currently installed

sometimes dpkg keeps such entries for references. To remove those problematic entries, run in terminal,

sudo dpkg --clear-avail

From man dpkg

          Erase  the  existing  information  about   what   packages   are
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.