Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Debian bionic Release' does not have a Release file" when using Docker script to install on Ubuntu18 #956

Closed
redeagle84 opened this issue Mar 19, 2020 · 13 comments

Comments

@redeagle84
Copy link

As described in script itself I did:

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

But received:

# Executing docker install script, commit: 442e66405c304fa92af8aadaa1d9b31bf4b0ad94
+ sudo -E sh -c apt-get update -qq >/dev/null
E: The repository 'https://download.docker.com/linux/debian bionic Release' does not have a Release file.

Im doing it over a fresh machine based on ubuntu-18.04.4-live-server-amd64.iso

@SuperSandro2000
Copy link

Your machine is being detected wrong. There is no debian called bionic.
I quickly tested this in a docker container with ubuntu bionic and couldn't reproduce it.

@thaJeztah
Copy link
Member

thaJeztah commented Mar 19, 2020

What distro are you trying to install on? Could you post the output of:

cat /etc/os-release

cat /etc/lsb-release

and

unman -a

@thaJeztah
Copy link
Member

Oh, I see it should be Ubuntu 18.04; could you still post the output of the above to see if there's an issue with those? (those are used by the script to detect which distro and distro version)

@redeagle84
Copy link
Author

redeagle84 commented Mar 20, 2020

@SuperSandro2000 Its not Debian, is Ubuntu-18.04.4-live-server-amd64
@thaJeztah Im sorry for just reply now, I was on long meetings, last days going very crazy.

cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
------------------------------------
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
------------------------------------
unman -a
unman: command not found
------------------------------------

@thaJeztah
Copy link
Member

oh, I see I got hit by auto-correct (unman -a should've been uname -a 😂).

Let me see if I can find why the script picks up debian instead of ubuntu (wondering if it's somehow using the ID_LIKE)

@redeagle84
Copy link
Author

redeagle84 commented Mar 20, 2020

uname -a
Linux ubuntu18x64 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

@thaJeztah , I even did a search for a package named unman on Debian and Ubuntu, my fault, i should realize it 😂

@redeagle84 redeagle84 changed the title Debian bionic Release' does not have a Release file when using Docker script to install "Debian bionic Release' does not have a Release file" when using Docker script to install on Ubuntu18 Mar 21, 2020
@JanneSiren
Copy link

JanneSiren commented Mar 24, 2020

Detection of the distribution (debian v.s. ubuntu) is the key, and that is done in install.sh. But that is as close as it gets to the relation with docker/docker-install#125. In Debian, separate mapping between release version number and code name of the release is needed, that is why changes like docker/docker-install#125 are needed when new releases of Debian comes out. In Ubuntu such mapping is not required, thus similar change is not required with Ubuntu releases.

Due unknown reason your system is incorrectly detected as debian (although it is ubuntu) by install.sh. As it is detected wrongly, it tries to load packages from Debian's repository instead of Ubuntu's repository. And naturally release file of Ubuntu distribution is not found from Debian's repository.

@redeagle84
Copy link
Author

I had wrong timezone, just fixed with soemething like that:

echo "Australia/Adelaide" | sudo tee /etc/timezone
sudo dpkg-reconfigure --frontend noninteractive tzdata

@jrichardsz
Copy link

jrichardsz commented Nov 17, 2020

These steps worked for me:

  • Find a machine with success docker installation and proven use. Preferably same as your hardware
  • view /etc/apt/sources.list content and locate docker entry. In my case was:
    deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
  • We will use this entry in the machine that has the error.
  • Open this file /etc/apt/sources.list in the machine with error and comment or remove previous docker attempts.
  • Add the new entry

After that, continues with installation. In my case:

apt-get update
apt-get -y install docker-ce

Also these helped me to install docker inside docker :D

@Ricocotam
Copy link

I encountered the same issue and @jrichardsz solution works. But there's an easier way than having another machine.

Here was my /etc/apt/sources.list.d/docker.list file :

deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian   bionic stable

I basically just changed debian to ubuntu

Hope this helps

@Greydey
Copy link

Greydey commented Mar 2, 2022

Hi.Is there any way one of you could give me instructions on how to do this? I found the files but I'm new to this and I don't want to screw anything up.

@Greydey
Copy link

Greydey commented Mar 2, 2022

@jrichardsz Could you possibly give me instruction on how to do this in layman's terms. Fairly new to Linux and I'm having this exact issue.

@tirzasrwn
Copy link

tirzasrwn commented Jan 4, 2023

This is so helpful. Thank you.

E: The repository 'https://download.docker.com/linux/debian bookworm Release' does not have a Release file.

My OS info:

NAME="Linux Mint"
VERSION="21.1 (Vera)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.1"
VERSION_ID="21.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=vera
UBUNTU_CODENAME=jammy

I run "get-docker.sh" script from this link https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script and I got the same error. Then I edit /etc/apt/sources.list.d/docker.list to

deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu/ jammy stable

'Cause my version of Linux Mint is based on Ubuntu Jammy. Then I run

sudo apt-get update
sudo apt-get -y install docker-ce

Hope this is help you too. :>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants