Problem in installing jdk
I have tried many solutions given over the internet but still getting this error.
$ apt-get install sun-java6-jdk sun-java6-jre 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? |
sudo apt-get install sun-java6-jdk sun-java6-jre
|
again same problem!
|
Just make sure of two things.
1) You're running the command as root or with sudo. 2) You don't have any other package management software open such as synaptic or the software center. Only one instance of apt/aptitude can run at a time, and synaptic locks it just by being open. The software center will lock it if it's installing something. |
@dudeman41465
I did run the command using sudo and also restarted my system quite a bit time so I guess there are no other packages of synaptic or software center running? right? |
Quote:
Linkage |
thank you, it's done!! :)
|
Quote:
|
All times are GMT -5. The time now is 01:12 AM. |