unable to install docker using snap; cannot run install hook of "docker" snap
Asked Answered
B

1

6

I was attempting to install docker with snap and the error message is as follows:

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
-----)
Bipack answered 5/11, 2021 at 8:30 Comment(0)
S
8

simply fix the problem by running the commands below

  1. sudo rm -rf /etc/docker
  2. sudo snap refresh
Sylviasylviculture answered 25/11, 2021 at 6:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.