cloudfl@cloudflpc:~$ sudo apt install ptpd
[sudo] password for cloudfl:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
cloudfl@cloudflpc:~$ sudo rm /var/cache/apt/archives/lock
cloudfl@cloudflpc:~$ sudo rm /var/lib/dpkg/lock
cloudfl@cloudflpc:~$ sudo dpkg --configure -a
dpkg: error: dpkg frontend is locked by another process
cloudfl@cloudflpc:~$ sudo rm /var/lib/dpkg/lock-frontend
cloudfl@cloudflpc:~$ sudo apt-get update
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://mirror.t-home.mk/ubuntu bionic InRelease [242 kB]
Hit:6 http://mirror.t-home.mk/ubuntu bionic-updates InRelease
Hit:7 http://mirror.t-home.mk/ubuntu bionic-backports InRelease
Hit:8 http://mirror.t-home.mk/ubuntu bionic-security InRelease
Fetched 242 kB in 10s (23.9 kB/s)
Reading package lists... Done
cloudfl@cloudflpc:~$ sudo apt install ptpd
Reading package lists... Done
Building dependency tree