Closed epiccurious closed 8 months ago
Running the script while installing system updates throws an error: E: Could not get lock /var/lib/apt/lists/lock. It is held by process #### (aptd)
E: Could not get lock /var/lib/apt/lists/lock. It is held by process #### (aptd)
Need to handle the exception and exit 1 when the lock exists.
exit 1
https://askubuntu.com/questions/335794/could-not-get-lock-var-lib-apt-lists-lock
Resolved with #45. No longer running apt in the script.
Running the script while installing system updates throws an error:
E: Could not get lock /var/lib/apt/lists/lock. It is held by process #### (aptd)
Need to handle the exception and
exit 1
when the lock exists.