尝试从终端安装时收到以下错误:
Selecting previously unselected package dassault-systemes-draftsight.
(Reading database … 211618 files and directories currently installed.)
Unpacking dassault-systemes-draftsight (from …/Downloads/draftSight.deb) …
access control disabled, clients can connect from any host
access control disabled, clients can connect from any host
access control disabled, clients can connect from any host
现在收到系统错误通知,提示安装一半并导致错误。它导致软件中心崩溃,我不知道如何终止问题dpkg
或如何卸载已安装的内容以重新开始。
sudo apt-get remove dassult-systemes-draftsight
[sudo] password for user:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
取得了一些进展:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package dassault-systemes-draftsight needs to be reinstalled, but I can't find an archive for it.
dpkg/Status 显示已安装一半:
Package: dassault-systemes-draftsight
Status: install reinstreq half-installed
Priority: extra
Section: applications
Architecture: i386
Version: 2012.7.347
但是终端说它不在那里:
user:~$ sudo dpkg --force-remove-reinstreq --remove dassult-systemes-draftsight
dpkg: warning: ignoring request to remove dassult-systemes-draftsight which isn't installed
user@computer:~$ sudo dpkg -e DraftSight
dpkg-deb: error: failed to read archive `DraftSight': No such file or directory
答案1
第一次运行 :
sudo rm /var/lib/dpkg/lock
然后:
sudo dpkg -r dassault-systems-fraftsight
无论成功与否,都运行
gksudo gedit /var/lib/dpkg/status
在生成的 Gedit 中,删除以以下内容开头的整个部分:
Package: dassault-systemes-draftsight
保存并关闭。