- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8k
Closed
Labels
Description
File: engine/install/debian.md
Hi,
I followed the instructions how to add download.docker.com/linux/debian as debian repo but I cannot get it to work.
The error is when running apt update:
Get:3 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB]
Err:3 https://download.docker.com/linux/debian bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
I did setup the repo as below:
$ sudo mkdir -p /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
I checked that the key was there and it has the correct format.
Then I did:
$ echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
This results in the following file:
$ cat /etc/apt/sources.list.d/docker.list
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian   bullseye stable
I also tried adding read perms to key but that did not change the error:
$ sudo chmod a+r /etc/apt/keyrings/docker.gpg
I also tried to import the particular key id manually but then I got:
$ gpg --keyring /etc/apt/trusted.gpg --recv-keys 7EA0A9C3F273FCD8 
gpg: key 8D81803C0EBFCD88: "Docker Release (CE deb) <docker@docker.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1