首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Ubuntu18.04.2LTS上安装管理单元

无法在Ubuntu18.04.2LTS上安装管理单元
EN

Ask Ubuntu用户
提问于 2019-05-19 09:35:26
回答 1查看 12K关注 0票数 3

我的机器上的管理单元不工作,我尝试使用sudo apt install --reinstall snapd重新安装。

我得到了以下错误。

代码语言:javascript
复制
Unpacking snapd (2.38+18.04) over (2.38+18.04) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Setting up snapd (2.38+18.04) ...
md5sum: /etc/apparmor.d/usr.lib.snapd.snap-confine: No such file or directory
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.
Job for snapd.service failed because the control process exited with error code.
See "systemctl status snapd.service" and "journalctl -xe" for details.
Job for snapd.seeded.service failed because the control process exited with error code.
See "systemctl status snapd.seeded.service" and "journalctl -xe" for details.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...

我重新启动了机器,并尝试了这个,但没有运气。我怎么才能解决这个问题?

更新:

  1. 根据输出,我运行命令systemctl status snapd.servicejournalctl -xe。下面是他们的产出。
代码语言:javascript
复制
mithilesh@linux:~$ systemctl status snapd.service
● snapd.service - Snappy daemon
   Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: en
   Active: failed (Result: exit-code) since Sun 2019-05-19 16:55:24 IST; 5h 43mi
  Process: 833 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
 Main PID: 833 (code=exited, status=1/FAILURE)

Warning: Journal has been rotated since unit was started. Log output is incomple
代码语言:javascript
复制
mithilesh@linux:~$ journalctl -xe
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
-- Unit UNIT has finished starting up.
-- 
-- The start-up result is RESULT.
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Activating 
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Activating 
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Activating 
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Activating 
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Successfull
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Successfull
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Successfull
May 19 22:36:35 linux nautilus[4154]: g_key_file_load_from_file: assertion 'file
May 19 22:36:35 linux nautilus[4154]: Could not establish a connection to Tracke
May 19 22:36:35 linux nautilus[4154]: g_queue_pop_head: assertion 'queue != NULL
May 19 22:36:35 linux nautilus[4154]: g_queue_pop_head: assertion 'queue != NULL
May 19 22:36:35 linux nautilus[4154]: g_queue_foreach: assertion 'queue != NULL'
May 19 22:36:35 linux nautilus[4154]: g_queue_free: assertion 'queue != NULL' fa
May 19 22:36:35 linux nautilus[4154]: g_queue_foreach: assertion 'queue != NULL'
May 19 22:36:35 linux nautilus[4154]: g_queue_free: assertion 'queue != NULL' fa
May 19 22:36:35 linux nautilus[4154]: g_queue_pop_head: assertion 'queue != NULL
May 19 22:36:35 linux dbus-daemon[2408]: [session uid=1000 pid=2408] Successfull
May 19 22:36:36 linux gnome-calendar[4156]: source_credentials_required_cb: Fail
May 19 22:36:37 linux nautilus[4154]: g_queue_foreach: assertion 'queue != NULL'
May 19 22:36:37 linux nautilus[4154]: g_queue_free: assertion 'queue != NULL' fa
  1. 基于这些注释,下面是运行snap listsnap versionsnap warnings的输出
代码语言:javascript
复制
mithilesh@linux:~$ snap list
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: connection refused
mithilesh@linux:~$ snap version
snap    2.38+18.04
snapd   unavailable
series  -
mithilesh@linux:~$ snap warnings
error: cannot communicate with server: Get http://localhost/v2/warnings: dial unix /run/snapd.socket: connect: connection refused
  1. 运行sudo apt autocleansudo apt autoremove没有通过任何错误。但是对于sudo apt updategoogle-chorme应用程序会返回警告。
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-05-21 17:37:53

输出有点奇怪。

我可以建议从零开始,通过清除snapd包并用下面的命令重新安装它:

代码语言:javascript
复制
sudo apt-get purge snapd
sudo apt-get install snapd
票数 6
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1144467

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档