我无法更新Kubuntu 18.10的最新消息。我有20个包,当我从GUI升级时: PackageKit Deamon崩溃了
从终端: sudo apt-get update && sudo apt-get -y,我得到:
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?我没有运气就试过了:https://itsfoss.com/could-not-get-lock-error/comment-page-5/
我得到的第二天:
E: dpkg被中断了,您必须手动运行'sudo配置-a‘来纠正问题。
运行: sudo配置-a
Setting up snapd (2.37.1+18.10) ...
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.systemctl状态snapd.service
● snapd.service - Snappy daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
Active: deactivating (stop-sigterm) (Result: timeout)
Main PID: 22246 (snapd)
Tasks: 12 (limit: 4915)
Memory: 268.4M
CGroup: /system.slice/snapd.service
├─22246 /usr/lib/snapd/snapd
├─22319 apparmor_parser --replace --write-cache -O no
└─22320 apparmor_parser --replace --write-cache -O no
Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation 日志-xe
-- Subject: Unit snapd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit snapd.service has finished shutting down.
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...我跑不了:sudo dpkg --configure -a我得到了:dpkg: error: dpkg frontend is locked by another process
lsof /var/lib/dpkg/lock 一切都死了。
我想我必须重新安装一个新的锁,我不知道怎么做?
sudo touch /var/lib/dpkg/lock不起作用。
发布于 2019-02-13 20:58:55
我进入终端作为根通过恢复模式下按住shift在启动和重新启动。sudo dpkg --configure -a从结束后开始工作。
https://askubuntu.com/questions/1117778
复制相似问题