Failed to fetch archive.ubuntu.com...

RigPah

New Member
Sep 20, 2024
16
0
1
Trying to install Ubuntu on a new VM but the installation fails to fetch the files. Tried us.archive.ubuntu.com and a bunch of other country specific urls - same error msg. They work in a browser. Tried different DNS settings. Also tried deleting the VM a few times and start over. Spent a few days searching the net but found nothing that worked. Have done it before with no problems.
 
Last edited:
From your post we can not help. There is no question at all ;-)

Please start by giving us some more information, like the copy-n-pasted output of some commands, run on a PVE host (either via SSH or via "Datacenter --> <one Node> --> Shell", both ways allow copy-n-paste):

PVE System information:
  • pveversion -v

Basic network information:
  • ip address show # currently active IP addresses on one NODE
  • ip route show # currently active routing table on one NODE
  • ip link show # currently active links on one NODE
  • cat /etc/network/interfaces # configuration of the network and/or ifquery -a for comparison from one NODE
  • cat /etc/resolv.conf # DNS resolver settings
  • ping -c 1 -W 1 9.9.9.9 # a simple "ping" to verify outgoing routing
  • host quad9.net # a simple DNS lookup to verify reachable DNS servers

Problematic VM:
  • export VMID=<the_ID_of_the_VM>; qm config --current true ${VMID} # the configuration of that VM

And from inside that VM, Basic network information:
  • ip address show # currently active IP addresses
  • ip route show # currently active routing table
  • cat /etc/network/interfaces # Debian et all
  • head -n -0 /etc/netplan/* # Ubuntu



Those are examples. You may add/edit commands and options if you can enrich the information given. Oh, and please put each command in a separate [CODE]...[/CODE]-block for better readability.
 
Go to your storage for ISO's, select "ISO Images", select "Download from URL", put in eg. just tested url's
https://releases.ubuntu.com/noble/ubuntu-24.04.1-desktop-amd64.iso or
https://releases.ubuntu.com/noble/ubuntu-24.04.1-live-server-amd64.iso
Create new vm select your downloaded image as src, select your vm values ... done.
That is exactly what I have done. Many times. It worked a week ago. Three days ago it didn't anymore. Still get a looot of "Failed to fetch archive.ubuntu.com..."
 
The links are going directly to canonical and are release.ubuntu.com instead of archive...
 
From your post we can not help. There is no question at all ;-)

Please start by giving us some more information, like the copy-n-pasted output of some commands, run on a PVE host (either via SSH or via "Datacenter --> <one Node> --> Shell", both ways allow copy-n-paste):

PVE System information:
  • pveversion -v

Basic network information:
  • ip address show # currently active IP addresses on one NODE
  • ip route show # currently active routing table on one NODE
  • ip link show # currently active links on one NODE
  • cat /etc/network/interfaces # configuration of the network and/or ifquery -a for comparison from one NODE
  • cat /etc/resolv.conf # DNS resolver settings
  • ping -c 1 -W 1 9.9.9.9 # a simple "ping" to verify outgoing routing
  • host quad9.net # a simple DNS lookup to verify reachable DNS servers

Problematic VM:
  • export VMID=<the_ID_of_the_VM>; qm config --current true ${VMID} # the configuration of that VM

And from inside that VM, Basic network information:
  • ip address show # currently active IP addresses
  • ip route show # currently active routing table
  • cat /etc/network/interfaces # Debian et all
  • head -n -0 /etc/netplan/* # Ubuntu



Those are examples. You may add/edit commands and options if you can enrich the information given. Oh, and please put each command in a separate [CODE]...[/CODE]-block for better readability.

Code:
 pveversion -v
proxmox-ve: 8.3.0 (running kernel: 6.8.12-5-pve)
pve-manager: 8.3.2 (running version: 8.3.2/3e76eec21c4a14a7)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-5
proxmox-kernel-6.8.12-5-pve-signed: 6.8.12-5
proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4
ceph-fuse: 17.2.7-pve3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx11
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.2.0
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.10
libpve-cluster-perl: 8.0.10
libpve-common-perl: 8.2.9
libpve-guest-common-perl: 5.1.6
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.10.0
libpve-rs-perl: 0.9.1
libpve-storage-perl: 8.3.3
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.5.0-1
proxmox-backup-client: 3.3.2-1
proxmox-backup-file-restore: 3.3.2-2
proxmox-firewall: 0.6.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.3.1
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.3
pve-cluster: 8.0.10
pve-container: 5.2.3
pve-docs: 8.3.1
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.1.0
pve-firmware: 3.14-2
pve-ha-manager: 4.0.6
pve-i18n: 3.3.2
pve-qemu-kvm: 9.0.2-4
pve-xtermjs: 5.3.0-3
qemu-server: 8.3.3
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1

Code:
ping -c 1 -w 1 9.9.9.9
PING 9.9.9.9 (9.9.9.9) 56(84) bytes of data.
64 bytes from 9.9.9.9: icmp_seq=1 ttl=56 time=13.7 ms

Code:
host quad0.net
Host quad0.net not found: 5(REFUSED)

Code:
 ip route show
default via 10.0.0.1 dev vmbr0 proto kernel onlink
10.0.0.0/24 dev vmbr0 proto kernel scope link src 10.0.0.10

Code:
cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.0.0.10/24
        gateway 10.0.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

source /etc/network/interfaces.d/*

can't get anything from the VM as it is stuck in the Ubuntu installation - "Failed to fetch archive.ubuntu.com..."
 
Everything so far looks fine, especially routing does work correctly. Except:
host quad0.net
That should be quad9 ;-)

It was meant to verify a working DNS setup, on my machines I can do:
Code:
$ host quad9.net
quad9.net has address 216.21.3.77
Check that. Report back if it fails. Post the whole command plus the whole output; like above :-)

can't get anything from the VM as it is stuck in the Ubuntu installation - "Failed to fetch archive.ubuntu.com..."
Okay. You did that in the Web Gui, right? (That's basically the recommended and documented way.) Nevertheless I would like to stay on the command line.

@waltar listed a different URL though, not "archive" but "releases". As I do not know the full URL for the first let's stay with the latter:

From #3:
(I chose the "live-server" just because that .iso is smaller.)

Check DNS resolution:
Code:
# host releases.ubuntu.com
releases.ubuntu.com has address 185.125.190.40
releases.ubuntu.com has address 91.189.91.124
...

Now I can fetch that file:
Code:
/tmp$ wget https://releases.ubuntu.com/noble/ubuntu-24.04.1-live-server-amd64.iso 
--2025-01-05 17:39:13--  https://releases.ubuntu.com/noble/ubuntu-24.04.1-live-server-amd64.iso
Auflösen des Hostnamens releases.ubuntu.com (releases.ubuntu.com)… 185.125.190.40, 91.189.91.123, 91.189.91.124, ...
Verbindungsaufbau zu releases.ubuntu.com (releases.ubuntu.com)|185.125.190.40|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 2773874688 (2,6G) [application/x-iso9660-image]
Wird in »ubuntu-24.04.1-live-server-amd64.iso« gespeichert.

ubuntu-24.04.1-live-server-amd64.iso      8%[=====>                                                              ] 213,49M  57,4MB/s    ETA 46s    ^C
(I'd aborted the download on purpose.)

The question for you now is: can you replay my steps and which step fails?

Another note: I did the above in a temporary directory ("/tmp"); the correct default location on a normal PVE is "/var/lib/vz/template/iso". Only if you put the download there the .iso will be seen in the Web Gui.
 
Thanks!

<code>
Code:
host quad9.net
Host quad9.net not found: 5(REFUSED)

Code:
host releases.ubuntu.com
Host releases.ubuntu.com not found: 5(REFUSED)

It looks like I have no access to the outside world.

It doesn't matter how I up/download the Linux iso or what it says in "Mirror address". The errors start flooding here no matter what:

Ubuntu Install.jpg
 
I suspected this earlier on in this thread, but now have visual image confirmation - the OP is inside a VM trying to setup Ubuntu, not at the Proxmox host level of downloading the correct ISO.

Could the OP post the output from the Proxmox host of qm config 102
What ISO is the OP using to create this VM? (Show image of Proxmox GUI, ISO Storage).
 
Code:
qm config 102
boot: order=scsi0;ide2;net0
cores: 1
cpu: x86-64-v2-AES
ide2: local:iso/ubuntu-24.04.1-live-server-amd64.iso,media=cdrom,size=2708862K
memory: 2048
meta: creation-qemu=9.0.2,ctime=1736111284
name: test
net0: virtio=BC:24:11:80:2F:32,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-102-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=0bf9cfbd-d47e-49e6-90e5-0e8e35b13329
sockets: 1
vmgenid: e942bf6b-ce47-4900-86dc-f5dc55cccbe6

All 3 VMs are stuck same place.

Iso.jpg
 
Code:
host quad9.net
Host quad9.net not found: 5(REFUSED)
So these tests you did from the Proxmox host? If you did then your problem is not with the VM but with the host NW config (or your NW itself).

Can you try this from the Proxmox host:
Code:
ping 142.250.75.78
# ctrl+c to end

ping google.com
# ctrl+c to end
 
It is deffo not the VMs as all 3 of them have the same problem. There's a ping in a previous post.

But here is one more:

Code:
ping google.com
PING google.com (142.250.181.206) 56(84) bytes of data.
64 bytes from ham02s21-in-f14.1e100.net (142.250.181.206): icmp_seq=1 ttl=56 time=9.62 ms
64 bytes from ham02s21-in-f14.1e100.net (142.250.181.206): icmp_seq=2 ttl=56 time=8.09 ms
64 bytes from ham02s21-in-f14.1e100.net (142.250.181.206): icmp_seq=3 ttl=56 time=6.16 ms
64 bytes from ham02s21-in-f14.1e100.net (142.250.181.206): icmp_seq=4 ttl=56 time=8.35 ms
64 bytes from ham02s21-in-f14.1e100.net (142.250.181.206): icmp_seq=5 ttl=56 time=7.19 ms
 
If you do not answer question/s accurately & with attention to detail, I will not be able to help you.

But here is one more:
That ping is working & is also using a working DNS.
Is it from the host or is it from a VM?
 

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!