apt remove 命令不会删除“不再需要的依赖项”

apt remove 命令不会删除“不再需要的依赖项”

尝试运行该命令时apt upgrade。它显示不再需要的包列表。

xyz@abc ~ # apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  android-libunwind crda guile-2.2-libs libdav1d5 libdav1d5:i386
  libdns-export1110 libgit2-1.1 libgsasl7 libicu67:i386 libirs-export161
  libisc-export1105 libisccfg-export163 libjim0.79 libjs-highlight.js
  libjs-is-typedarray libjs-typedarray-to-buffer libjs-uglify libllvm13:i386
  libmailutils8 libnode72 libopts25 libpython3.9 libpython3.9-dev
  libssl1.1:i386 libtexlua53 lsp-plugins-jack node-array-union node-array-uniq
  node-execa node-is-typedarray node-merge-stream node-mimic-fn
  node-stealthy-require node-strip-eof node-typedarray-to-buffer ntp
  ntpsec-ntpdig pigz python3-ldb python3-talloc python3.9-dev ruby-uglifier
  sntp
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  android-libboringssl android-libsparse cron-daemon-common dh-dkms
  gir1.2-ayatanaappindicator3-0.1 isympy-commo

但当我尝试使用 删除它们时apt autoremove,它并没有删除任何东西。

xyz@abc ~ # apt autoremove    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1558 not upgraded.

我试图了解为什么会发生这种情况。理想情况下,如果软件包没有依赖关系,则apt autoremove应该删除这些软件包。

相关内容