The error occured because I had the deb https://apt.dockerproject.org/repo debian-jessie main
declaration in the /etc/apt/sources.list.d/docker.list
file.
The dockerproject.org
repository has been shut down since 2020-03-31:
- docker.com/blog/changes-dockerproject-org-apt-yum-repositories
-
stackoverflow.com/a/61144661
So I deleted the/etc/apt/sources.list.d/docker.list
file and added the right repository:
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"