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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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
Using sudo dpkg --clear-avail doesn't work for me. – wsw Oct 30 '15 at 14:17

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.