CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] Install script fails to install Docker

Open audiotecnicality opened this issue 1 year ago • 2 comments

When I run the install script on Linux Mint 22, it fails with the following error:

[ INFO ] Install the necessary dependencies: Docker

  • sh -c 'apt-get update -qq >/dev/null'
  • sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ca-certificates curl >/dev/null'
  • sh -c 'install -m 0755 -d /etc/apt/keyrings'
  • sh -c 'curl -fsSL "https://download.docker.com/linux/debian/gpg" -o /etc/apt/keyrings/docker.asc'
  • sh -c 'chmod a+r /etc/apt/keyrings/docker.asc'
  • sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian trixie stable" > /etc/apt/sources.list.d/docker.list'
  • sh -c 'apt-get update -qq >/dev/null' E: The repository 'https://download.docker.com/linux/debian trixie Release' does not have a Release file.

This is the first time I have experienced a failure in the install script. It usually completes flawlessly.

Upon a bit of investigation, it appears that Docker has not listed a Trixie distro on it's download.docker.com repository. ../ bookworm/ bullseye/ buster/ jessie/ stretch/ wheezy/

When I attempt to fix /etc/apt/sources.list.d/docker.list to anything else that I know works (debian bullseye stable or ubuntu noble stable), I realized the install script (as indicated above) overwrites back to debian trixie.

Please advise! Love CasaOS, I know this will be a minor speed bump :)

audiotecnicality avatar Aug 14 '24 17:08 audiotecnicality

Decided to try and dig deeper. Downloaded the install script and put it in a file instead of piping to Bash.

curl -fsSL https://get.casaos.io > install_casaos

Then realized this script calls another to install Docker, and it's really a Docker install script issue.

curl -fsSL https://get.docker.com | bash

I decided to simply fix and install a compatible version of Docker prior to running the install script, which will just skip the Docker install if it's already there and compatible.

audiotecnicality avatar Aug 14 '24 17:08 audiotecnicality

Can confirm I have the same issue after I reinstalled Linux mint and updated it to the newest version.

Helpful-Neko avatar Aug 29 '24 21:08 Helpful-Neko