我尝试使用 apt-get 卸载程序,但仍然可以使用它

我尝试使用 apt-get 卸载程序,但仍然可以使用它

我尝试通过 Lubuntu 15 中的终端卸载 emacs,但它仍然存在。

我使用的代码:

sudo apt-get remove --purge emacs

一个名为 scid 的国际象棋程序以前就发生过这种情况。

基本上,在我删除 emacs 之后,它会显示:

sudo apt-get remove --purge emacs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  emacs24 emacs24-bin-common emacs24-common emacs24-common-non-dfsg libm17n-0
  libotf0 m17n-db vim-runtime
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  emacs*
0 to upgrade, 0 to newly install, 1 to remove and 195 not to upgrade.
After this operation, 25.6 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 125495 files and directories currently installed.)
Removing emacs (46.1) ...

然后当我写

emacs <Enter>

emacs 再次打开,好像什么都没发生过一样。

后续删除结果显示:

sudo apt-get remove --purge emacs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'emacs' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  emacs24 emacs24-bin-common emacs24-common emacs24-common-non-dfsg libm17n-0
  libotf0 m17n-db vim-runtime
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 195 not to upgrade.

有没有办法删除这个程序?我是通过 sudo apt-get install emacs 安装的,所以它不在我的软件中心。

答案1

emacs是一个元包,这意味着它是一个不包含任何内容的包,只依赖于一个更具体命名的包,在本例中是emacs24。尝试(因为您已经删除了元包):

sudo apt-get autoremove

因为该emacs24包仍然安装,所以您仍然可以使用 emacs,因为emacs24它实际上包含可执行文件。

相关内容