Error when enter a command - Permission denied, are you root?
I tried to install gcc and other packages on ubuntu booted from a live usb stick. All I see is the following error
ubuntu@ubuntu:~$ apt-get install gcc 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 think this might be because I have not installed ubuntu on my system, its just booted from a usb stick. If that is really the problem here then could someone please give me a solution to install packages in such a scenario. I cannot install ubuntu on my system as I dont have any free partition and I cannot delete the existing ones as I don't have an external storage device to back up my data. Thank you.