【Linux】Ubuntu apt 安装故障 Could not get lock /var/lib/dpkg/lock-frontend


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?
Setting up libssl1.0.0:amd64 (1.0.2n-1ubuntu5.13) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package libssl1.0.0:amd64 (--configure):
 installed libssl1.0.0:amd64 package post-installation script subprocess returned error exit status 1


rm -f /var/{lib/apt/lists/lock,cache/apt/archives/lock,lib/dpkg/lock*}
dpkg --configure -a
apt install -y libssl1.0.0