I have installed Ubuntu core on VM i followed instruction from<div><br></div><div><a href="https://wiki.ubuntu.com/Core">https://wiki.ubuntu.com/Core</a></div><div><br></div><div>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</div>
<div><br></div><div>"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?"</div><div><br></div><div>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<br clear="all">
<div><br></div><div><div>apt-get update</div><div><br></div><div>E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)</div><div>E: Unable to lock directory /var/lib/apt/lists/</div><div>E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)</div>
<div>E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?</div></div></div><div><br></div><div>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?</div>
<div><div><br></div>-- <br>Kind Regards,<div>Saqlain Abbas.</div><br>
</div>