我在 Ubuntu 20.04 上安装了 Bluemail。然后我尝试使用软件应用程序安装一个名为“信息中心”的应用程序,并收到“安装软件包时出错:已安装的 bluemail 软件包安装后脚本子进程返回错误退出状态 1”。
当我运行“sudo apt-get install -f”时,我得到:
sudo apt-get 安装 -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bluemail (1.1.14-536) ...
Installing curl...
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 18429 (apt-get)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Unable to install curl!
dpkg: error processing package bluemail (--configure):
installed bluemail package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
bluemail
E: Sub-process /usr/bin/dpkg returned an error code (1).
Bluemail 已安装并正常运行,我已重新启动,因此我不确定为什么此错误仍然存在。有人可以告诉我如何清除它吗?
答案1
由于您的安装以状态 1 终止,表示出现错误,因此安装过程未完成。我无法从您提供的信息中找出原因。
锁定文件/var/lib/dpkg/lock-frontend
告诉 Ubuntu 图形安装程序当前正在运行。该文件是在安装时创建的,以防止其他程序影响计算机的状态。通常,当软件成功完成时会删除该文件,但由于出现错误,该文件未被删除,apt-get 认为仍有图形安装过程正在运行。通过卸载 Bluemail,锁定文件被清除,您的问题也得到了解决。