0

I am getting this error when I run curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - to install node.js

  • apt-get update W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) 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) 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? Error executing command, exiting
karel
  • 110,292
  • 102
  • 269
  • 299
  • 1
    just remove it with type `sudo rm -f /var/lib/apt/lists/lock && sudo rm -f /var/lib/dpkg/lock` and update/upgrade and run your "sudo curl" sir – abu-ahmed al-khatiri Sep 17 '18 at 11:40
  • 1
    Possible duplicate of [Permission denied, are you root?](https://askubuntu.com/questions/223484/permission-denied-are-you-root) – karel Mar 31 '19 at 12:50

0 Answers0