PDA

View Full Version : [ubuntu] cannot lock /etc/group; try again later.



sandy0594
April 12th, 2011, 09:06 PM
When i was trying to install Oracle in Ubuntu 10.10..i am getting the below errors,can someone kindly let me know what's the cause of these errors




sandy@ubuntu:~$ apt-get install gcc libaio1 libc6 libstdc++5 make lesstif2 lesstif2-dev rpm
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?
sandy@ubuntu:~$ groupadd oinstall
groupadd: cannot lock /etc/group; try again later.

oldos2er
April 13th, 2011, 02:14 AM
Try
sudo apt-get install gcc libaio1 libc6 libstdc++5 make lesstif2 lesstif2-dev rpm

When installing packages you need to use sudo to give yourself temporary admin privileges. https://help.ubuntu.com/community/RootSudo