Unable to Install Java 6 JRE on Ubuntu 11.04
I'm a new Ubuntu user wanting to install Java; tried commands below:
Method 1
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Method 2
sudo add-apt-repository ppa:ferramrober
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
source: http://
Installation was unsuccessful; received error messages:
The following packages have unmet dependencies:
sun-java6-jre : Depends: sun-java6-bin (>= 6.26-1natty1) but it is not going to be installed or
sun-java6-plugin : Depends: sun-java6-bin (>= 6.26-1natty1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
computer@
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu sun-java6 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- marcobra (Marco Braida)
- Solved:
- Last query:
- Last reply: