每次通过 apt-get 安装时都会出现有关不再需要的软件包的消息

每次通过 apt-get 安装时都会出现有关不再需要的软件包的消息

我运行了此命令sudo apt-get install tor-browser并得到了此输出。我应该如上所述应用自动删除吗?

 sudo apt-get install tor-browser
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-22
      linux-headers-4.4.0-22-generic linux-image-4.4.0-21-generic
      linux-image-4.4.0-22-generic linux-image-extra-4.4.0-21-generic
      linux-image-extra-4.4.0-22-generic linux-signed-image-4.4.0-21-generic
      linux-signed-image-4.4.0-22-generic
    Use 'sudo apt autoremove' to remove them.
    The following NEW packages will be installed:
      tor-browser
    0 upgraded, 1 newly installed, 0 to remove and 44 not upgraded.
    Need to get 69.5 MB of archives.
    After this operation, 69.5 MB of additional disk space will be used.
    Get:1 http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial/main amd64 tor-browser amd64 6.0.2-1~webupd8~0 [69.5 MB]

答案1

在之前的 apt 操作中,您的 Linux 内核及其相关内容已更新,旧内核不再需要。这就是 apt 系统建议您删除旧内核的原因。完成 tor-browser 安装后,您可以按照建议使用“sudo apt autoremove”命令删除它们。

相关内容