Error: The repository 'http://download.docker.com/linux/ubuntu bookworm Release' does not have a Release file

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version |
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=25
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version | bookworm
  • Kernel version |Linux DietPi 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux
  • Architecture | amd64
  • SBC model | Native PC (x86_64)

Steps to reproduce

Run sudo apt-get -y -eany update

Expected behaviour

Update

Actual behaviour

dietpi@DietPi:~$ sudo apt-get -y -eany update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:5 http://deb.debian.org/debian bookworm-backports InRelease
Ign:3 https://download.docker.com/linux/ubuntu bookworm InRelease
Err:6 https://download.docker.com/linux/ubuntu bookworm Release
  404  Not Found [IP: 18.239.236.29 443]
Reading package lists... Done
E: The repository 'http://download.docker.com/linux/ubuntu 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.

Extra details

Hi everyone, first post here.
I installed DietPi on an old laptop and am running in the error above when I try to install any package. Fresh install, nothing custom.
As you can see in the URLs above I have already followed some advice from https://dietpi.com/forum/t/update-not-working-ca-issues-no-release-file/5788 to update sources.list file to download sources in http, as my machine is old and has probably issues with HTTPS certificates.
Unfortunately docker.com does not seem to let me do that trick.

Any help would be greatly appreciated!

What have you done??? Did you install Docker manually? Because that is a completely wrong configuration of the source file. DietPi is based on Debian, not Ubuntu. Also Bookworm is a Debian version and not Ubuntu. You need to remove this source file completely and use our dietpi-software installer if you want to install Docker. This is an E2E automation and should avoid such manual issues.

Thanks for your reply :slight_smile:

I had installed Ubuntu server previously on this machine then installed DietPi over it, so there should not be any traces of it right? Can DietPi get installed without wiping the main HDD?

I did not install Docker myself, no.
The first time I got the message was through the installer.

Do you know how I could remove this source file please?

Installer exact message:

 APT update                                                                                                           │
        │  - Command: apt-get -y -eany update                                                                                  │
        │  - Exit code: 100                                                                                                    │
        │  - DietPi version: v8.25.1 (MichaIng/master) | HW_MODEL: 21 | HW_ARCH: 10 | DISTRO: 7                                │
        │  - Error log:                                                                                                        │
        │ Hit:2 http://deb.debian.org/debian bookworm InRelease                                                                │
        │ Hit:3 http://deb.debian.org/debian bookworm-updates InRelease                                                        │
        │ Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease                                              │
        │ Hit:5 http://deb.debian.org/debian bookworm-backports InRelease                                                      │
        │ Ign:1 https://download.docker.com/linux/ubuntu bookworm InRelease                                                    │
        │ Err:6 https://download.docker.com/linux/ubuntu bookworm Release                                                      │
        │   404  Not Found [IP: 18.239.236.29 443]                                                                             │
        │ Reading package lists...                                                                                             │
        │ E: The repository 'http://download.docker.com/linux/ubuntu bookworm Release' does not have a Release file.

you can’t continue using this installation of DietPi. We don’t support Ubuntu. You need to use a Debian image. How did you install Ubuntu before? Same you could do with Debian while using the Debian netinst.

Thank you.
I’m confused as I was sure I had wiped the hard drive clean.

I will re-install DietPi, format the hard drive and try again :slight_smile:

if you are going to wipe the whole drive, you should use our direct imaged for Native PC and not the conversion script. Or is there some other OS running next to DietPi?

I used the image for native PC on a USB stick. I’m reinstalling it while writing this.

No other os should be running (only one partition was shown at the beginning of the install).

Update: it’s now working!

I think I know what must have happened: during install the wifi connection dropped a few times which led to some failure during installation. I may have overlooked this and moved on.

Thanks for your help Joulinar!

However, this should not have added an Ubuntu Docker source file to your system. :wink:

I know I’m confused about that as well! :smiley:
When I did the second re-install I followed the exact same steps…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.