apt update error

helio

Member
Nov 17, 2022
52
6
13
Hi, I m having error messages when updating.
Running proxmox 9.2.24

Code:
starting apt-get update
Hit:4 http://download.proxmox.com/debian/pve trixie InRelease
Ign:1 https://www.debian.org trixie InRelease
Ign:2 https://www.debian.org trixie-updates InRelease
Ign:3 https://www.debian.org trixie-security InRelease
Err:5 https://www.debian.org trixie Release
  404  Not Found [IP: 194.177.211.216 443]
Err:6 https://www.debian.org trixie-updates Release
  404  Not Found [IP: 194.177.211.216 443]
Err:7 https://www.debian.org trixie-security Release
  404  Not Found [IP: 194.177.211.216 443]
Reading package lists...
E: The repository 'http://debian.org trixie Release' does not have a Release file.
E: The repository 'http://debian.org trixie-updates Release' does not have a Release file.
E: The repository 'http://debian.org trixie-security Release' does not have a Release file.
TASK ERROR: command 'apt-get update' failed: exit code 100

Is there a way I can correct this ? please
 
Hello @hello.
Your repos have wrong URL in them, its not www.debian.org, it is deb.debian.org

This will show where the errors are: grep -RniE 'www\.debian\.org|debian\.org' /etc/apt/sources.list /etc/apt/sources.list.d/

This is what you should have in that file:
Code:
Types: deb
URIs: http://deb.debian.org/debian/
Suites: trixie trixie-updates
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
URIs: http://security.debian.org/debian-security/
Suites: trixie-security
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Run apt update after

Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hello @hello.
Your repos have wrong URL in them, its not www.debian.org, it is deb.debian.org

This will show where the errors are: grep -RniE 'www\.debian\.org|debian\.org' /etc/apt/sources.list /etc/apt/sources.list.d/

This is what you should have in that file:
Code:
Types: deb
URIs: http://deb.debian.org/debian/
Suites: trixie trixie-updates
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
URIs: http://security.debian.org/debian-security/
Suites: trixie-security
Components: main non-free-firmware
[/QUOTE]

[QUOTE="bbgeek17, post: 874634, member: 105626"]

Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Run apt update after

Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
When running getting this:

Code:
root@proxmox:~# grep -RniE 'www\.debian\.org|debian\.org' /etc/apt/sources.list /etc/apt/sources.list.d/
grep: /etc/apt/sources.list: No such file or directory
/etc/apt/sources.list.d/debian.sources:2:URIs: http://debian.org
/etc/apt/sources.list.d/debian.sources:8:URIs: http://debian.org
root@proxmox:~#

Skall I add ? Thanks

Code:
Types: deb
URIs: http://deb.debian.org/debian/
Suites: trixie trixie-updates
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
URIs: http://security.debian.org/debian-security/
Suites: trixie-security
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
 
/etc/apt/sources.list.d/debian.sources
this file needs fixing. Check its context, in standard installation it should be what I have provided.
You can also save existing file's back - its a good practice:
cp /etc/apt/sources.list.d/debian.sources /tmp/debian.sources.bak




Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
this file needs fixing. Check its context, in standard installation it should be what I have provided.
You can also save existing file's back - its a good practice:
cp /etc/apt/sources.list.d/debian.sources /tmp/debian.sources.bak




Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
But I have the files.
Code:
nano /etc/apt/sources.list.d/debian.sources

This is the content:

Types: deb
URIs: http://debian.org
Suites: trixie trixie-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
URIs: http://debian.org
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Is there another place that I have the wrong sources? Thanks
 
Last edited:
Compare your file with what I provided line by line. Do you see the difference in the URI: line?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
After change still have errors but not as many as before.

Code:
starting apt-get update
Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://deb.debian.org/debian trixie-updates InRelease
Ign:3 http://deb.debian.org/debian trixie-security InRelease
Err:4 http://deb.debian.org/debian trixie-security Release
  404  Not Found [IP: 151.101.130.132 80]
Hit:5 http://download.proxmox.com/debian/pve trixie InRelease
Reading package lists...
E: The repository 'http://deb.debian.org/debian trixie-security Release' does not have a Release file.
TASK ERROR: command 'apt-get update' failed: exit code 100
 
You fixed one issue, but missed the second repository entry.

Your security repository is still pointing to `http://deb.debian.org/debian/`. The Debian security repository uses a different URI.

Change the second URIs: line to:

URIs: http://security.debian.org/debian-security/

Sometimes its better to just remove everything and start from scratch, I mean in terms of file context.

This page is the authoritative source for what should be in your repo files:
https://pve.proxmox.com/wiki/Package_Repositories#_debian_base_repositories


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: helio
You fixed one issue, but missed the second repository entry.

Your security repository is still pointing to `http://deb.debian.org/debian/`. The Debian security repository uses a different URI.

Change the second URIs: line to:

URIs: http://security.debian.org/debian-security/

Sometimes its better to just remove everything and start from scratch, I mean in terms of file context.

This page is the authoritative source for what should be in your repo files:
https://pve.proxmox.com/wiki/Package_Repositories#_debian_base_repositories


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Will buy 2 pairs. THANK YOU