In a recent announcement, Canonical has specified that Ubuntu Partner Archive will no longer contain Sun JDK, the packages (sun-java6-jre, sun-java6-jdk, sun-java6-plugin, sun-java6-source etc) will be removed on 16th of the next month, due to some licensing problem, as the said in announcement –
we no longer have permission to redistribute new
Java packages as Oracle has retired the “Operating System Distributor License for Java”
Although, it will be remain installed on the systems but no security updates will be provided in future so the ubuntu users who are dependent on Sun JDK or any of this component are recommend to migrate to OpenJDK or Oracle JDK if you get any problem with open JDK in some applications.
Migrating from Sun JDK to Open JDk
Uninstall Sun JDK and its components
sudo apt-get purge sun-java*
Then install OpenJDK 7/6
sudo-apt-get install openjdk-6*
If you want to install only few selected package such as openjdk-6-jre then type
sudo apt-get install openjdk-6-jre
Clear Package Cache
By Default Ubuntu’s APT doesn’t delete any package files because of the reason that it might be used in futures,although which happens rarely due to the new version releases of softwares and applications.So your computer’s space will be wasted by unnecessary packages and files;it increases each time when you install or remove some packages.That’s why it is recommended to remove those unwanted packages and files to make your computer clean and fast.
Cleaning Ubuntu through Synaptic Package Manager
1. Open Synaptic Package Manager(from system->Administration->).
2. Click on Setting->preferences,then click on the Tab named as Files.
3. Next,click on Delete Cached package Files and select the correct options in the above radio button.Yo can also delete history files according to your choice.
Cleaning from Bash Shell or Terminal or Command Line Interface
1. Open terminal or linux shell from Applications->Accessories->Terminal or hit CTRL+ALT+T on Ubuntu 10.04.
2. Type the following command and hit enter.It may ask for the password,enter you login password.
$sudo apt-get clean
Clearing the browsers history
It is very simple to delete from the browsers itself-
Firefox : click on Tools->Clear Recent History or Hit CTRL+SHIFT+DEL.A small window will appear then select “clear everything” from the options and then check the boxes that you want to delete.Now,click OK to finish.
Clean Ubuntu by Using Computer Janitor
Computer Janitor is default application installed on Ubuntu 10.04 to perform cleaning task by removing garbage files and unnecessary applications.So You can also use computer janitor to clean your ubuntu computer by removing unnecessary files and programs.It is installed by default.You can access it from System->Administration->Computer Janitor.