Unable to update/install new packages: "rmdir: failed to remove '/var/lock': Device or resource busy"

Hi all.

I'm unable to update the system/install new packages. the following error message appears during installation:

Setting up base-files (11ubuntu5.5+zorin1) ...
rmdir: failed to remove '/var/lock': Device or resource busy
dpkg: error processing package base-files (--configure):
installed base-files package post-installation script subprocess returned error
exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Have tried different entries (sudo apt clean && sudo apt autoremove; sudo apt --fix-broken install; sudo rm -rf /var/lock/*) - nothing helps.

Zorin 16.1 64 bit.

Thank you in advance.

Or, shut down any open terminal installs or Gnome Software or Synaptic that is running.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.