The Following Packages Were Automatically Installed And Are No Longer Required Warning

last updated in Categories , ,

I have the following message whenever I use the apt-get command under Debian or Ubuntu Linux:


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
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

How do I fix this issue? Is it safe to remove all unwanted packages?

Yes, it is safe to remove all unwanted packages to improve the system performance and to avoid security released issues. These packages are no longer needed by the Debian or Ubuntu Linux. Open a terminal and login as a root user using sudo or su command. Type the following command to remove all such packages suggested by the apt-get command :

$ sudo apt-get autoremove


# apt-get autoremove
Sample outputs:

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
0 upgraded, 0 newly installed, 8 to remove and 4 not upgraded.
After this operation, 6,369 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 334576 files and directories currently installed.)
Removing ca-certificates-java ...
Removing libaccess-bridge-java-jni ...
Removing libaccess-bridge-java ...
Removing sabnzbdplus-theme-smpl ...
Removing libjs-excanvas ...
Removing libjs-mochikit ...
Removing python-cheetah ...
Removing tzdata-java ...
Processing triggers for python-support ...
Processing triggers for man-db ...

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.


3 comment

  1. Its worth explaining what this message means.

    Its basically saying that these were packages that were installed automatically as a dependency of some other package that you installed. Now that you’ve removed that package (at some point in the past), these packages are no longer needed on the system.

  2. But Debian gets it wrong sometimes. How tell tell the package manager: “stop outputting that incorrect message and don’t remove that package unless explicitly asked to do so”?

  3. “Yes, it is safe to remove all unwanted packages to improve the system performance and to avoid security released issues”

    > I completely disagree with this. On several occasion this prompted me to remove… things like gnome !

    I have a fairly clean distrib, with just Iceweasel, Icedove, VLC and a very few more packages, yet, if I trust apt, all the following are “not needed” ?!?!?

    gnome-color-manager gnome-dictionary gnome-disk-utility gnome-documents gnome-font-viewer gnome-games
    gnome-games-data gnome-games-extra-data gnome-icon-theme-extras gnome-mag gnome-nettool gnome-orca gnome-packagekit
    gnome-packagekit-data gnome-screenshot gnome-shell-extensions gnome-sudoku gnome-system-log gnome-tweak-tool
    gnome-video-effects gnomine gnotravex gnotski gnuchess gnuchess-book

Leave a Comment