Odin docker no release file

Discussion in 'Software & Applications' started by Heidi Negrete, Nov 30, 2021.

  1. Heidi Negrete

    Heidi Negrete Thread Starter
    Expand Collapse
    New Member

    Nov 30, 2021
    Likes Received:
    I was trying to install docker.
    I tried sudo apt-get install docker-ce docker-ce-cli containerd.io
    but there is no installation candidate available.
    I don't remember exactly what I did next (maybe just apt install docker-ce?) but the terminal recommended:
    sudo apt install docker.io

    I did that and docker is now running properly but now when I run apt update I get the following errors:

    E: The repository 'https://download.docker.com/linux/ubuntu odin 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.

    docker works but
    a. how do I get rid of this message every time I run apt update
    b. how should I update to newer versions in the future?

    Expand Collapse
    New Member

    Oct 31, 2022
    Likes Received:
    The problem occurred from template that came from docker.com Linux install page.
    You have many choice to fix it. But if you understand the root cause. you will find the way you fix from your environment.

    The shell try to help you by told you that not have 'https://download.docker.com/linux/ubuntu' the release of this ubuntu in that page. Actually that page was ok. but the name of release was not correct.

    >>>> When you run this command <<<<<
    echo \
    "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    >>>>> <<<<<<<

    all of this command will link with gpg and combind with list in docker.list
    but you have to understand was it the template. if you use the linux distro that come from ubuntu you have to fix the release name of it by yourself.

    the lsb_release -cs will pull os name and push the "stable" follow it.
    in my case, I used jolnir.

    So. my docker.list file was

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

    and that it the problem. Because lsb_release pull release from os.
    in your case it pull Odin and push it in docker.list

    you will found the file docker in /etc/apt/sources.list.d/docker.list
    Fixed it.

    use nano to fixed it by command

    1.sudo nano /etc/apt/sources.list.d/docker.list

    when nano open
    2. replace jornir or your release by focal

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

    and save it.

    That all.

Share This Page