Context: I'm using pop os 22.04
I have tried installing docker via the shell script download method:
$ sudo curl -sSL https://get.docker.com/ | sh
This failed with the message
# Executing docker install script, commit: b2e29ef7a9a89840d2333637f7d1900a83e7153f
+ sudo -E sh -c apt-get update -qq >/dev/null
E: The repository 'https://download.docker.com/linux/debian bookworm Release' does not have a Release file.
Now when I try to use apt update
i get this error:
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://apt.pop-os.org/proprietary jammy InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:6 https://download.docker.com/linux/debian bookworm InRelease
Err:7 https://download.docker.com/linux/debian bookworm Release
404 Not Found [IP: 108.138.199.73 443]
Hit:8 http://apt.pop-os.org/release jammy InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian bookworm 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
I tried uninstalling it via apt, but it doesn't recognize docker or any of its name variations.
How do I safely remove the files of the incomplete package I have downloaded?