2

我试图用 snap 安装 docker,错误信息如下:

l@l-Lenovo-Rescuer-15ISK:~$ sudo snap install docker
error: cannot perform the following tasks:
- Run install hook of "docker" snap if present (run hook "install": 
-----
cannot update snap namespace: cannot create symlink in "/etc/docker": existing file in the way
snap-update-ns failed with code 1
-----)
4

1 回答 1

3

只需运行以下命令即可解决问题

  1. sudo rm -rf /etc/docker
  2. sudo snap refresh
于 2021-11-25T06:06:23.037 回答