Waiting for dpkg lock: /var/lib/dpkg/lock-frontend held by unattended-upgr process

Wating for cache lock: could not get lock /var/lib/dpkg-frontend. it is held by process 1744 (unattended-upgr)

sudo systemctl stop unattended-upgrades
sudo nano /etc/apt/apt.conf.d/10periodic
add this Apt::Periodic::Unattended-Upgrade::AllowUnattended "1";
sudo systemctl restart unattended-upgrades
sudo rm /var/lib/dpkg/lock-frontend

now try to install again make packages

sudo apt install make -y

Last updated