如何处理The following packages were automatically installed and are no longer required

时间:2020-01-09 10:38:00  来源:igfitidea点击:

在Debian或Ubuntu Linux下使用apt-get命令时,都会收到以下消息:

The following packages were automatically installed and are no longer required:
libaccess-bridge-java libjs-mochikit python-cheetah libjs-excanvas
libaccess-bridge-java-jni sabnzbdplus-theme-smpl tzdata-java
ca-certificates-java
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

以下软件包已自动安装,不再需要警告

如何解决此问题?
删除所有不需要的软件包是否安全?
是的,删除所有不需要的软件包以提高系统性能并避免发布安全问题是安全的。

Debian或Ubuntu Linux不再需要这些软件包。
打开终端并使用sudo或su命令以root用户身份登录。
输入以下命令以删除apt-get命令建议的所有此类软件包:

$ sudo apt-get autoremove

或者

# apt-get autoremove

输出示例:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  ca-certificates-java libaccess-bridge-java libaccess-bridge-java-jni
  libjs-excanvas libjs-mochikit python-cheetah sabnzbdplus-theme-smpl
  tzdata-java
0 upgraded, 0 newly installed, 8 to remove and 4 not upgraded.
Removing tzdata-java ...
Processing triggers for python-support ...
Processing triggers for man-db ...