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.

Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements apt-get
Est. reading time N/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


# 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 ...

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • mancdaz Apr 25, 2013 @ 7:28

    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.

  • observer Sep 30, 2014 @ 19:15

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

  • djack Nov 12, 2014 @ 9:33

    “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 Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum