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

Qwe*_*ord 4 apt

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

我使用了代码:

sudo apt-get remove --purge emacs
Run Code Online (Sandbox Code Playgroud)

以前在一个名为 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) ...
Run Code Online (Sandbox Code Playgroud)

然后当我写

emacs <Enter>
Run Code Online (Sandbox Code Playgroud)

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.
Run Code Online (Sandbox Code Playgroud)

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

old*_*haa 9

emacs是一个元包,这意味着它是一个不包含任何东西的包,只依赖于一个更具体命名的包,在这种情况下emacs24。尝试(因为您已经删除了元包):

sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)

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

  • +1 用于实际解释 * 为什么 * emacs 未被删除。 (2认同)