apt update fails, temporary failure resolving 'ftp.debian.org'

Valrich

New Member
Jun 17, 2022
8
1
1
Hello, I get an error when I enter the command 'apt update' as shown below:


Err:1 http://ftp.debian.org/debian buster InRelease
Temporary failure resolving 'ftp.debian.org'
Err:2 http://download.proxmox.com/debian/pve buster InRelease
Temporary failure resolving 'download.proxmox.com'
Err:3 http://security.debian.org/debian-security buster/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:4 http://ftp.debian.org/debian buster-updates InRelease
Temporary failure resolving 'ftp.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.debian.org/debian/dists/buster/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/buster-updates/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/buster/InRelease Temporary failure resolving 'download.proxmox.com'
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.


According to this post, the error comes from a file named /etc/resolv.conf, but I don't know what to edit in there.

How can it be fixed?
Thank you ^^
 
Hi proxmox community. I am currently running into errors running apt-get update && apt-get dist-upgrade in my proxmox shell.

Ign:1 http://ftp.us.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Ign:1 http://ftp.us.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Ign:1 http://ftp.us.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Err:1 http://ftp.us.debian.org/debian bookworm InRelease
Temporary failure resolving 'ftp.us.debian.org'
Err:2 http://security.debian.org bookworm-security InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://download.proxmox.com/debian/pve bookworm InRelease
Temporary failure resolving 'download.proxmox.com'
Err:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Temporary failure resolving 'ftp.us.debian.org'

Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/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.
Reading package lists... Done

Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I am unsure how to fix this exactly. I've followed steps in the documentation and looked over notes provided by this community and apparently I am still running into this error. I am a beginner to this platform, may anyone have any suggestions on what I can do to troubleshoot?
 
Last edited:
Hi proxmox community. I am currently running into errors running apt-get update && apt-get upgrade in my proxmox shell.
Unrelated to your problem, but please never run apt-get upgrade but always apt-get dist-upgrade: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#system_software_updates
Ign:1 http://ftp.us.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Ign:1 http://ftp.us.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Ign:1 http://ftp.us.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Err:1 http://ftp.us.debian.org/debian bookworm InRelease
Temporary failure resolving 'ftp.us.debian.org'
Err:2 http://security.debian.org bookworm-security InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://download.proxmox.com/debian/pve bookworm InRelease
Temporary failure resolving 'download.proxmox.com'
Err:4 http://ftp.us.debian.org/debian bookworm-updates InRelease
Temporary failure resolving 'ftp.us.debian.org'

Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/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.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I am unsure how to fix this exactly. I've followed steps in the documentation and looked over notes providied by this community and apparently I am still runing into this error. I am a beginner to this platform, may anyone have any suggestions on what I can do to troubleshoot?
Check your DNS settings as it might not be specific to Proxmox or Debian. Does ping -w3 google.com work?
 
When I 'ping -w3 google.com' I get the output response of 'ping: google.com: Temporary failure in name resolution'
 
When I 'ping -w3 google.com' I get the output response of 'ping: google.com: Temporary failure in name resolution'
Does your local network connect to the internet at all? Try ping -w3 1.1.1.1. Which DNS server are you using? Do other computers on the local network work fine?
What is the output of ip a and cat /etc/network/interfaces and cat /etc/resolv.conf?
 
Greetings proxmox users. I have recently installed proxmox on an old HP Pavillion laptop and am getting the same issue. I have already tried editing the sources.list file using the no-subscription repositories and changing ftp.debian to archive.debian (one forum mentioned ftp to be outdated). The IP address of my DNS server is correct and all other devices on my network run smoothly. I can ping my proxmox server from other devices on the network, but pinging any device from within the proxmox server (through the web interface) does not seem to work (loopback 127.0.0.1 does work). When running apt-get update, it stays stuck at 0% for a while, trying to connect to the repositories, but then eventually fails with the following output:
"""
Ign:1 http://archive.debian.org/debian bookworm InRelease
Ign:2 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:3 http://security.debian.org/debian-security bookworm-security InRelease
Ign:4 http://archive.debian.org/debian bookworm-updates InRelease
Ign:3 http://security.debian.org/debian-security bookworm-security InRelease
Ign:2 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:1 http://archive.debian.org/debian bookworm InRelease
Ign:2 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:3 http://security.debian.org/debian-security bookworm-security InRelease
Ign:4 http://archive.debian.org/debian bookworm-updates InRelease
Err:3 http://security.debian.org/debian-security bookworm-security InRelease
Temporary failure resolving 'security.debian.org'
Err:2 http://download.proxmox.com/debian/pve bookworm InRelease
Temporary failure resolving 'download.proxmox.com'
Ign:1 http://archive.debian.org/debian bookworm InRelease
Ign:4 http://archive.debian.org/debian bookworm-updates InRelease
Err:1 http://archive.debian.org/debian bookworm InRelease
Temporary failure resolving 'archive.debian.org'
Err:4 http://archive.debian.org/debian bookworm-updates InRelease
Temporary failure resolving 'archive.debian.org'
Reading package lists... Done
W: Failed to fetch http://archive.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'archive.debian.org'
W: Failed to fetch http://archive.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'archive.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bookworm/InRelease Temporary failure resolving 'download.proxmox.com'
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
"""
Is there a solution to this issue? Thank you in advance!
 
Fix your DNS settings/server and/or try another Debian mirror. Lots of threads about this already: https://forum.proxmox.com/search/66...t=post&c[child_nodes]=1&c[nodes][0]=16&o=date
I changed my DNS server IP, and this seemed to have worked. Except it didn't. Running apt-get update now just stays stck at 0% forever. There is no error message anymore, it just stays there indefinitely like this:
"""
Ign:1 http://ftp.be.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Get:4 http://ftp.be.debian.org/debian bookworm-updates InRelease [52.1 kB]
Ign:3 http://download.proxmox.com/debian/pve bookworm InRelease
Get:2 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [138 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [82.2 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [82.2 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [82.2 kB]
Get:3 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Get:9 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages [233 kB]
0% [working]
"""
I don't understand why this is not working.

SOLVED: Changed DNS server to 192.168.1.1, which I assume is built-in into my router. The previous configuration had issues with resolving the download.proxmox domain name.
 
Last edited:
  • Like
Reactions: Kingneutron
I'm having similar issues. I'm not able to ping any domains. I am able to ping IP addresses just fine. i had to put enterprise.proxmox.com security.debian.org in /etc/hosts in order to update the box. I was able to do it like that, but I can't google.com or anything else. I added 8.8.8.8 and 1.1.1.1 in the dns settings, still nothing. It almost seems like the resolver is not working at all. One thing I had done recently is change the IP of the mail gateway, but I didn't do anything strange, just moved from one IP to another.
 
I'm having similar issues. I'm not able to ping any domains. I am able to ping IP addresses just fine. i had to put enterprise.proxmox.com security.debian.org in /etc/hosts in order to update the box. I was able to do it like that, but I can't google.com or anything else. I added 8.8.8.8 and 1.1.1.1 in the dns settings, still nothing. It almost seems like the resolver is not working at all. One thing I had done recently is change the IP of the mail gateway, but I didn't do anything strange, just moved from one IP to another.
So I reverted back to the old IP address and all was good again. Very strange. I'm running proxmox on a hyper-v server. I wonder if there are any settings that I missed, or if the host some how blocked the dns requests? Very strange.
 

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!