apt-get update not working.

SelwynO

New Member
Sep 4, 2022
14
1
3
root@dell:/etc/apt/sources.list.d# apt update
After running the above command (Bullseye) the following message is displayed-:
-----------------------------------------------------------------------------------------------------------------------------------------------------
Hit:1 http://ftp.debian.org/debian bullseye InRelease
Hit:2 http://ftp.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org bullseye-security InRelease
Hit:4 http://download.proxmox.com/debian/pve bullseye InRelease
Ign:5 http://download.proxmox.com/debian/pbs/dists bullseye InRelease
Err:6 http://download.proxmox.com/debian/pbs/dists bullseye Release
404 Not Found [IP: 51.79.228.122 80]
Reading package lists... Done
E: The repository 'http://download.proxmox.com/debian/pbs/dists bullseye 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.
root@dell:/etc/apt/sources.list.d#
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Content of sources.list below-:
----------------------------------------------------------------------------------------------------------------------------------------------------------------
deb http://ftp.debian.org/debian bullseye main contrib

deb http://ftp.debian.org/debian bullseye-updates main contrib

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

#deb [arch=amd64]
deb http://download.proxmox.com/debian/pbs/dists bullseye pbs-no-subscription

deb http://download.proxmox.com/debian/pbs/dists bullseye release

# security updates
deb http://security.debian.org bullseye-security main contrib
-----------------------------------------------------------------------------------------------------------------------------------------------------------

I am stuck and would greatly appreciate assistance.
 
Hey there,

I have a similar issue for a couple of days, after installing a Pi-Hole LXC.

What shall I do?


Code:
starting apt-get update
Ign:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:2 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:3 http://ftp.debian.org/debian bookworm InRelease
Ign:4 http://ftp.debian.org/debian bookworm-updates InRelease
Ign:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://ftp.debian.org/debian bookworm InRelease
Ign:2 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:4 http://ftp.debian.org/debian bookworm-updates InRelease
Ign:2 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:3 http://ftp.debian.org/debian bookworm InRelease
Err:1 http://security.debian.org/debian-security bookworm-security InRelease
  Temporary failure resolving 'security.debian.org'
Ign:4 http://ftp.debian.org/debian bookworm-updates InRelease
Err:2 http://download.proxmox.com/debian/pve bookworm InRelease
  Temporary failure resolving 'download.proxmox.com'
Err:3 http://ftp.debian.org/debian bookworm InRelease
  Temporary failure resolving 'ftp.debian.org'
Err:4 http://ftp.debian.org/debian bookworm-updates InRelease
  Temporary failure resolving 'ftp.debian.org'
Reading package lists...
W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bookworm/InRelease  Temporary failure resolving 'download.proxmox.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
TASK OK
 
Okay, sounds reasonable.

I use Adguard DNS Server as primary and dnsforge as secondary:

AdGuard DNS will not block ads, trackers, or any other DNS requests.
IPv4: 94.140.14.140 IPv6: 2a10:50c0::1:ff

DNSforge
IPv4: 176.9.93.198
IPv6: 2a01:4f8:151:34aa::198

Do you have any suggestions for an alternative DNS Server?
 
Okay, sounds reasonable.

I use Adguard DNS Server as primary and dnsforge as secondary:

AdGuard DNS will not block ads, trackers, or any other DNS requests.
IPv4: 94.140.14.140 IPv6: 2a10:50c0::1:ff

DNSforge
IPv4: 176.9.93.198
IPv6: 2a01:4f8:151:34aa::198

Do you have any suggestions for an alternative DNS Server?
The DNS server at 176.9.93.198 can resolve ftp.debian.org just fine. The problem must be at your end. Are you sure Proxmox uses and can reach this server?

EDIT: What is the output of dig @176.9.93.198 ftp.debian.org?
 
  • Like
Reactions: MisterPP
Awesome. You put me on the the right track. :)

The output is:
Code:
; <<>> DiG 9.18.19-1~deb12u1-Debian <<>> @176.9.93.198 ftp.debian.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24847
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;ftp.debian.org.                        IN      A

;; ANSWER SECTION:
ftp.debian.org.         300     IN      CNAME   debian.map.fastlydns.net.
debian.map.fastlydns.net. 300   IN      A       146.75.122.132

;; Query time: 24 msec
;; SERVER: 176.9.93.198#53(176.9.93.198) (UDP)
;; WHEN: Wed Oct 25 20:44:53 CEST 2023
;; MSG SIZE  rcvd: 97

But the key to success was to edit the /etc/resolv.conf
The IP adress of the pihole LXC didn't match in the .conf. After editing everything works fine for me:
Code:
()
starting apt-get update
Hit:1 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
Reading package lists...
TASK OK
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!