quinta-feira, 26 de maio de 2022

How to Solved Problem - "Could not get lock /var/lib/dpkg/lock-frontend"

 

if you execute apt-get upgrade and received this message:

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. IWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5507 (apt)


this kb is for you






For solve first:

sudo rm -rf /var/lib/apt/lists/lock

sudo rm /var/lib/dpkg/lock

sudo rm /var/cache/apt/archives/lock


after that, execute: (those command bellow, could you return some errors, don't worry)

sudo apt-get update

sudo dpkg –configure -a


sudo apt-get -f install



then for finish execute:


sudo rm /var/lib/dpkg/lock-frontend 

sudo dpkg --configure -a

sudo apt update

Nenhum comentário:

Postar um comentário