我的Kubuntu 16.04出了点问题,以下命令无法正常工作:
$ snap find test
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/find?q=test: dial unix /run/snapd.socket: connect: no such file or directory
没有找到 /run/snapd.socket
文件,我尝试重新安装 snap 软件包。
有人知道可能出了什么问题吗?
编辑:
$ sudo systemctl status snapd.s*
Failed to list units: No such method 'ListUnitsFiltered'
Failed to expand names: Invalid request descriptor
$ systemctl status snapd.service snapd.socket
Failed to get properties: No such interface ''
$ ls /lib/systemd/system/snap*; echo; systemctl list-unit-files | grep snap; echo; dpkg -L snapd | grep systemd; echo; pgrep -a snap
/lib/systemd/system/snapd.frameworks-pre.target /lib/systemd/system/snapd.refresh.service /lib/systemd/system/snapd.service
/lib/systemd/system/snapd.frameworks.target /lib/systemd/system/snapd.refresh.timer /lib/systemd/system/snapd.socket
snapd.refresh.service static
snapd.service enabled
snapd.socket enabled
snapd.frameworks-pre.target static
snapd.frameworks.target static
snapd.refresh.timer enabled
/lib/systemd
/lib/systemd/system
/lib/systemd/system/snapd.service
/lib/systemd/system/snapd.frameworks.target
/lib/systemd/system/snapd.socket
/lib/systemd/system/snapd.frameworks-pre.target
/lib/systemd/system/snapd.refresh.timer
/lib/systemd/system/snapd.refresh.service
snappy-autopilot.timer
和snappy-autopilot.service
,但你有snapd.refresh.timer
和snapd.refresh.service
。让我升级到与你相同的2.0.8版本来进行验证检查。 - user.dz