[Fixed]-Linux, piping together apt-get update and apt-get upgrade


In this case you just have to remove the lock:

sudo rm /var/lib/dpkg/lock

and then try to execute the command

Let me know if its helps if not then follow the following:

sudo su
sudo rm /var/lib/dpkg/lock
apt-get update

and then execute the command
update and upgrade command on single line and if its works then go for api

πŸ‘€Mr IIS


It means another process is already running an apt-get command.
Close your other terminal windows, and perhaps any GUI’s you have open that use apt-get.


Leave a comment