can't use apt-get command with ubuntu core

Saqlain Abbas saqlain.abbas.7 at gmail.com
Tue Dec 4 14:00:10 UTC 2012


I have installed Ubuntu core on VM i followed instruction from

https://wiki.ubuntu.com/Core

I am able to boot and login, but if try apt-get install I get below errors,
my system (virgin ubuntu core) got no packages installed like synaptic
package manager etc

"could not open lock file /var/lib/dpkg/lock -open (13:permission denied)
unable to lock the administration directory (/var/lib/dpkg) , are you root?"

I can't try using "sudo" command as it is not installed on (ubuntu core).
If i try apt-get update command i get below errors

apt-get update

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission
denied)
E: Unable to lock directory /var/lib/apt/lists/
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?

I tried to remove lock file manually but i again get permission denied
error, the user i created "ubuntu" I added it to adm and sudo groups,
"groups" command shows it is added to "ubuntu" "adm" and "sudo" groups. My
other part of question is as user is added to sudo group why i got no
"root" permission?

-- 
Kind Regards,
Saqlain Abbas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20121204/ab4242ae/attachment.html>


More information about the Ubuntu-devel-discuss mailing list