为什么我用 apt-get remove 去卸载一个程序,结果它却会带来新的东西需要我安装?

2020-11-01 08:41:34 +08:00
 Newyorkcity
root@VM-133-145-debian:~/download# apt-get remove erlang-base


Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  erlang-base-hipe erlang-syntax-tools libsctp1 libuv1
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  erlang-base-hipe
Suggested packages:
  erlang-tools erlang erlang-manpages erlang-doc
Recommended packages:
  erlang-crypto
The following packages will be REMOVED:
  erlang-base erlang-crypto
The following NEW packages will be installed:
  erlang-base-hipe
0 upgraded, 1 newly installed, 2 to remove and 71 not upgraded.
Need to get 9,891 kB of archives.
After this operation, 2,628 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

如何让它单纯地被卸载?谢谢

1705 次点击
所在节点    问与答
3 条回复
mwftts
2020-11-01 08:58:23 +08:00
Use 'apt autoremove' to remove them.
Showfom
2020-11-01 09:12:15 +08:00
apt purge erlang-base 试试呢
msg7086
2020-11-01 09:59:12 +08:00
因为你有其他的软件依赖这个包。如果你移除了 erlang-base,那么其他的软件就会缺少依赖,所以 apt-get remove 会在移除 erlang-base 的时候,被迫寻找他的替代品,结果找到了 erlang-base-hipe 。

你可以先找找哪个包依赖 erlang-base,把那个包一起卸掉。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/720621

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX