I have the same problem on several older Ubuntu test systems. Finally found this notice when searching the URL with the 404 error https://apt.dockerproject.org/
Notice: Shutting down dockerproject.org APT and YUM repos 2020-03-31
Docker will be shutting down the deprecated APT and YUM repositories hosted at "dockerproject.org" and "dockerproject.com" on the 31st of March 2020.
We noticed that this project is referencing one of these repositories, and recommend updating to use the "download.docker.com" repository to prevent disruption.
More info: https://www.docker.com/blog/changes-dockerproject-org-apt-yum-repositories/
My fix was to edit either /etc/apt/sources.list.d/docker.list or /etc/apt/sources.list and comment out the old line and add a new the new line. For my raspberry pi I used [arch=armhf] instead of [arch=amd64], hope this helps.
sudo vi /etc/apt/sources.list.d/docker.list
make this change
# deb https://apt.dockerproject.org/repo ubuntu-trusty main
deb [arch=amd64] https://download.docker.com/linux/ubuntu trusty stable
Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-trusty/main/binary-amd64/Packages Could not resolve host: apt.dockerproject.org
error, for me (forsudo apt-get update
). Thanks. I did need to runy-ppa-manager
to fix one subsequent issue. – Azral