Solving /var/lib/dpkg/lock - open (13: Permission denied) with "are you root?" error [duplicate]

Solution 1:

You forgot the sudo for the second command. sudo apt-get update && sudo apt-get upgrade will work.