V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Newyorkcity
V2EX  ›  问与答

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

  •  
  •   Newyorkcity · 2020-11-01 08:41:34 +08:00 · 1702 次点击
    这是一个创建于 1484 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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] 
    

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

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

    你可以先找找哪个包依赖 erlang-base,把那个包一起卸掉。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2404 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 15:58 · PVG 23:58 · LAX 07:58 · JFK 10:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.