`dpkg --configure -a` 挂起

ywa*_*wat 9 configure dpkg

我使用的是 Ubuntu 16.04。

当我更新时,我收到以下消息

$ sudo apt-get update
....
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
Run Code Online (Sandbox Code Playgroud)

根据错误消息,我尝试

$ sudo dpkg --configure -a
setting up snapd (2.14.2~16.04) ...
Run Code Online (Sandbox Code Playgroud)

然后它永远挂起。有谁知道我该如何解决这个问题?谢谢。

Pat*_*ikJ 4

这是一个已确认的错误。

\n\n

https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1621336

\n\n

列出了解决方法:

\n\n

https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1621336/comments/4

\n\n

添加 Axel K\xc3\xa4mpfe 的解决方法,因为链接似乎已损坏:

\n\n
    \n
  1. 使用“sudo -i”启动 rootshell
  2. \n
  3. 跑步echo "bash -c \'service snapd.boot-ok start\'" | at now + 4 min
  4. \n
  5. 然后运行apt install snapd(如果它争论取消的 dpkg 进程,请使用dpkg --configure -a。然后等待至少 4 分钟。然后挂起应该消失。
  6. \n
\n\n

祝你好运!:)

\n\n

/帕特里克

\n