I'm installing Docker in a GCP Compute Engine VM, but I have some obstacles.
This is my first time doing this, can anyone help.
fdtigermaster@fdtigermaster-dev-gcp-test:~$ sudo apt-get update
Hit:1 http://us-central1.gce.archive.ubuntu.com/ubuntu mantic InRelease
Hit:2 http://us-central1.gce.archive.ubuntu.com/ubuntu mantic-updates InRelease
Hit:3 http://us-central1.gce.archive.ubuntu.com/ubuntu mantic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu mantic-security InRelease
Ign:5 https://download.docker.com/linux/debian mantic InRelease
Hit:6 https://download.docker.com/linux/ubuntu mantic InRelease
Err:7 https://download.docker.com/linux/debian mantic Release
404 Not Found [IP: 13.226.22.98 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian mantic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
And I also tried:
sudo sed -i 's/debian/ubuntu/g' /etc/apt/sources.list.d/docker.list
sudo sed -i 's|docker.com/linux/debian|docker.com/linux/ubuntu|g' /etc/apt/sources.list
https://download.docker.com/linux/debian
which is INVALID for a Ubuntu system, being valid only for DEBIAN... Your issue is as per the duplicate; you added an incorrect source; it needs to be removed & the correct source (provided in my prior comment) added in its place. Ubuntu images do not include 3rd party sources which that one is. – guiverc Dec 26 '23 at 06:03