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

by on April 24, 2013 · 3 comments· LAST UPDATED April 24, 2013

in , ,

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

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
Requirementsapt-get
Estimated completion timeN/A
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

OR

# 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
  tzdata-java
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 ...
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 3 comments… read them below or add one }

1 mancdaz April 25, 2013 at 7:28 am

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.

Reply

2 observer September 30, 2014 at 7:15 pm

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”?

Reply

3 djack November 12, 2014 at 9:33 am

“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

Reply

Leave a Comment

Tagged as: , ,

Previous Faq:

Next Faq: