"The following packages were automatically installed and are no longer required:" what to do?

After trying to open and install google earth through the terminal it keeps bringing up this message.

The following packages were automatically installed and are no longer required:
  gir1.2-ubuntuoneui-3.0 language-pack-kde-en kde-l10n-engb
  libubuntuoneui-3.0-1 thunderbird-globalmenu language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.

I am wondering what I can do next?


Solution 1:

Is telling you that those packages that were automatically installed due dependency resolution, are no longer required, as the packages that depend on them has been removed or have other dependencies. You can remove them with a simple:

sudo apt-get autoremove

But you might want to upgrade your other packages too:

sudo apt-get upgrade

Solution 2:

Those packages were installed as requirements to other packages, which you've now removed. The system now thinks they can safely be removed.

You could remove them with:

apt-get autoremove

Or when you uninstall packages, use

apt-get remove --auto-remove <package-name>

If you want to suppress the message and keep those packages installed (perhaps you're now using them), use:

apt-get install <package-name>

or:

apt-mark showauto | xargs apt-get install