0

I am unable to install and update many things on Ubuntu 18.04 because the terminal always shows:

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)
karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

0

You need to run update commands apt-get update or apt-get upgrade with superuser a.k.a. root privileges, i.e.

sudo apt-get update
sudo apt-get upgrade
Kulfy
  • 18,154