I have tried to resolve the following issue in Ubuntu, but so far have only been able to resolve the issue by rebooting my Linux box.
I was running the sudo apt update
command and soon realized that I had no internet for some reason. So I pressed the Ctrl + Z keys to stop the process. When I was sure the internet was back online, I attempted to restart the sudo apt update
command and encountered the following error:
root@myubuntu-OS:/home/root# apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Other than restarting the system, is there a way to clean up my mess and run this process again?