Newyorkcity
V2EX  ›  问与答

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

  •  
  •   Newyorkcity · Nov 1, 2020 · 2162 views
    This topic created in 2050 days ago, the information mentioned may be changed or developed.
    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 replies    2020-11-01 09:59:12 +08:00
    mwftts
        1
    mwftts  
       Nov 1, 2020 via Android
    Use 'apt autoremove' to remove them.
    Showfom
        2
    Showfom  
    PRO
       Nov 1, 2020
    apt purge erlang-base 试试呢
    msg7086
        3
    msg7086  
       Nov 1, 2020   ❤️ 4
    因为你有其他的软件依赖这个包。如果你移除了 erlang-base,那么其他的软件就会缺少依赖,所以 apt-get remove 会在移除 erlang-base 的时候,被迫寻找他的替代品,结果找到了 erlang-base-hipe 。

    你可以先找找哪个包依赖 erlang-base,把那个包一起卸掉。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2810 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 94ms · UTC 15:21 · PVG 23:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.