Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
1 Answer
Like Parsa Mousavi said, it looks like you don't have administrator privileges. Try running it on the default user you created while installing (if you are not on it already) and use sudo
:
sudo apt update && sudo apt upgrade
I'm guessing you did apt update
instead of sudo apt update
.
If a command outputs Permission Denied
, try adding sudo
before it.
sudo rm /var/lib/apt/lists/lock
, see if that works without error, and then eventually runsudo apt upgrade
and re-try.