Error using sudo
Posted: Sun May 03, 2020 2:51 pm
I have added a user for myself after installing DietPi and thought I had correctly added myself to the sudo group but I have just received this error and would like to clear this up before proceeding.
Any help appreciated,
Code: Select all
jon@Odroid:~$ sudo apt update && apt upgrade -y Ign:1 https://deb.debian.org/debian stretch InRelease Get:2 https://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Get:3 https://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB] Get:4 https://deb.debian.org/debian stretch-backports InRelease [91.8 kB] Hit:5 https://deb.debian.org/debian stretch Release Get:6 http://fuzon.co.uk/meveric all InRelease [19.4 kB] Hit:7 http://fuzon.co.uk/meveric stretch InRelease Get:9 https://oph.mdrjr.net/meveric all InRelease [19.4 kB] Fetched 316 kB in 4s (68.6 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. 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?