Hello,
To solve this issue when trying to apt-get your Ubuntu Linux use these commands:
Option 1:
ps aux | grep apt
sudo kill processId
Option 2:
sudo rm /var/lib/apt/lists/lock
Maybe it is also needed to:sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
Regards,
Rubén