When I run
dpkg -l, I get a list of installed packages, and I'm comparing that to a "model" system that I'm attempting to reproduce. There are several packages appearing in that list, for example
emacs23, that I wish to remove. When I run
apt-get remove emacs23, however, I'm told that the
emacs23 package isn't installed:
# apt-get -y remove emacs23 Reading package lists... Done Building dependency tree Reading state information... Done Package emacs23 is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.
apt-get update did not help:
# dpkg -l emacs23 Desired=Unknown/Install/Remove/Purge/Hold | 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 +++-==============-==============-============================================ rc emacs23 23.3+1-1ubuntu The GNU Emacs editor (with GTK+ user interfa # apt-cache policy emacs23 emacs23: Installed: (none) Candidate: 23.3+1-1ubuntu9.2 Version table: 23.3+1-1ubuntu9.2 0 500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages 100 /var/lib/dpkg/status 23.3+1-1ubuntu9.1 0 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages 23.3+1-1ubuntu9 0 500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages # dpkg -l | grep emacs23 rc emacs23 23.3+1-1ubuntu9.2 The GNU Emacs editor (with GTK+ user interface)
How do I resolve this apparent confusion?