I installed Chrome via dpkg by downloading the deb file and installing it. I later uninstalled and removed it.

However I'm now seeing this:

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

The documentation on the -W option reads as follows [emphasis mine]:

The default output format gives one line per matching package, each line having the name ... and installed version of the package, separated by a tab.

The output of dpkg-query indicates to me that google-chrome is not installed, but why then is it showing up at all? If I run the same command for a nonexistent package, it provides different output:

$ dpkg-query -W blahblah
dpkg-query: no packages found matching blahblah

Here is the output of apt-cache policy google-chrome:

$ apt-cache policy google-chrome
  Installed: (none)
  Candidate: (none)
  Version table:

Attempting to uninstall via dpkg --purge yields:

$ sudo dpkg --purge google-chrome
dpkg: warning: ignoring request to remove google-chrome which isn't installed

How can I completely uninstall google-chrome such that dpkg doesn't know about it?

  • Could you confirm it's not available for reinstall by doing apt-cache policy google-chrome? – derobert Sep 25 '15 at 20:32
  • @derobert Updated question with that info. – Cory Klein Sep 25 '15 at 20:35
  • How exactly did you uninstall google-chrome? Dpkg currently isn't sure whether you want it installed or not (that's what the initial u means). What does awk -vRS= '/^Package: google-chrome\n/ {print FILENAME; print; print ""}' /var/lib/dpkg/available /var/lib/dpkg/status say? – Gilles Sep 25 '15 at 23:08
  • I think there should be some package-dependency of google-chrome which recommends google-chrome. What cat /var/lib/dpkg/status | grep google-chrome outputs? Have you tried sudo apt-get autoremove? – Pandya Sep 28 '15 at 16:27
  • Perhaps dpkg --clear-avail could help you remove the information about google-chrome on your computer. – Thomas Weinbrenner Oct 13 '15 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.