I just installed Debian 9.3.0 and I tried to run command
sudo apt-get update but this error came up :
sudo: command not found
so I turned to superuser and run command
apt-get update in superuser mode and that worked fine but after that this error is appearing after every command which I'm trying to do in terminal :
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I searched for this and I figured out that I have to command
sudo kill -9 <process id> but I can't install sudo cause after I'm commanding
apt install -y sudo I'm getting this error:
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?
does anyone know how can I fix this?