Hi.
Here is long story, how to fix it on Linuxmint 22.
First running of script does not fix my problem, output:
Setting up apt-transport-https (2.8.3) …
ERROR: Failed to install prerequisites
ERROR: Failed to set up Docker repository
ERROR: Docker installation/configuration failed
Attempting to start Docker…
…
Second running of script also does not fix it, output:
Adding Docker’s official GPG key…
curl: (22) The requested URL returned error: 404
Download failed, retrying in 5 seconds… (1/3)
curl: (22) The requested URL returned error: 404
Download failed, retrying in 5 seconds… (2/3)
curl: (22) The requested URL returned error: 404
Download failed, retrying in 5 seconds… (3/3)
Standard download failed. Trying with HTTP/1.1…
curl: (22) The requested URL returned error: 404
ERROR: Failed to download Docker GPG key (timeout or connection error)
Please check your internet connection and try again.
ERROR: Failed to set up Docker repository
ERROR: Docker installation/configuration failed
I try to setup override.conf mentioned here in topic by Malagoni, but it does not help me (yes, system was rebooted; and override.conf disappeared).
Problem is that I am using linuxmint 22, which does not have folder here:
So I replace $OS in this part of script:
“https://download.docker.com/linux/$OS/gpg”
(line 938)
to word “ubuntu”:
“https://download.docker.com/linux/ubuntu/gpg”
And third running of script was also not success:
Updating package lists with Docker repository (timeout: 300s)…
Err:8 ``https://download.docker.com/linux/linuxmint`` wilma Release
404 Not Found [IP: 65.9.95.34 443]
So I found on line 964 again $OS:
“deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] ``https://download.docker.com/linux/$OS
${VERSION_CODENAME} stable” |
so change manually to this:
“deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu` ```` ${UBUNTU_CODENAME} stable” | `
because VERSION_CODENAME is wilma, but UBUNTU_CODENAME is noble- and this string we need 
Next run of script freeze here:
Unpacking docker-compose-plugin (5.0.0-1~ubuntu.24.04~noble) over (5.0.0-1~debian.13~trixie) …
Setting up docker-buildx-plugin (0.30.1-1~ubuntu.24.04~noble) …
Setting up ``containerd.io`` (1.7.28-1~ubuntu.24.04~noble) …
/usr/sbin/policy-rc.d returned 101, not running ‘restart containerd.service’
Setting up docker-compose-plugin (5.0.0-1~ubuntu.24.04~noble) …
Setting up docker-ce-cli (5:28.5.2-1~ubuntu.24.04~noble) …
Setting up docker-ce (5:28.5.2-1~ubuntu.24.04~noble) …
invoke-rc.d: policy-rc.d denied execution of restart.
/usr/sbin/policy-rc.d returned 101, not running ‘restart docker.service docker.socket’
Processing triggers for man-db (2.12.0-4build2) ..
I open terminal next tab, run systemctl start docker. After that start services in this order (IMPORTANT!):
"casaos-gateway.service"
"casaos-message-bus.service"
"casaos-user-service.service"
"casaos-local-storage.service"
"casaos-app-management.service"
"casaos.service"
Almost all docker apps was started ok, just two was gray. I wait a second, but UI of casaOS crashed, self-resrtarted. And now seems stable. All apps are running.
I am not sure, if it is correct, but now I am on docker v28.5.2 and it works!
My HUGE thx for this script!
First tab of my Terminal was in this state:
⚠ apt-get returned an error, verifying package installation…
(starting services...)
So no magic here. That explains why the web UI restarted itself.