Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

I tried to upgrade my Linux Ubuntu Server OS with apt-get upgrade but it shows only the following error

 

Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

 

What might be the reason for this?

codenovae's picture

Hey dude you do not have root right!

Hey dude, you have probably forgotten something. You need to be logged in with root rights. Just type

sudo su

After this it should work

Vote the answer: 
5
Average: 5 (1 vote)