Ubuntu Support Template
Ubuntu Version:
Example: 24.04
Desktop Environment (if applicable):
WSL2
Problem Description:
I am have a WSL2 installation of Ubuntu 24.04 that I am trying to update with
sudo apt update
But I receives errors that say it cannot resolve the urls.
Relevant System Information:
Windows 10, no pending updates
Screenshots or Error Messages:
tstewart@DESKTOP-TFRJ1CN:~/interlisp/medley$ sudo apt update
[sudo] password for tstewart:
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Err:2 http://archive.ubuntu.com/ubuntu noble InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
49 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
What I’ve Tried:
I thought there might be a network problem. So I tried to ping archive.ubuntu.com in both Windows and Ubuntu. In both cases I was able to ping. This is the output from Ubuntu.
tstewart@DESKTOP-TFRJ1CN:~/interlisp/medley$ ping -c 4 archive.ubuntu.com
PING archive.ubuntu.com (91.189.92.22) 56(84) bytes of data.
64 bytes from ubuntu-archive-mirror-1.ps7.canonical.com (91.189.92.22): icmp_seq=1 ttl=50 time=119 ms
64 bytes from ubuntu-archive-mirror-1.ps7.canonical.com (91.189.92.22): icmp_seq=2 ttl=50 time=118 ms
64 bytes from ubuntu-archive-mirror-1.ps7.canonical.com (91.189.92.22): icmp_seq=3 ttl=50 time=117 ms
64 bytes from ubuntu-archive-mirror-1.ps7.canonical.com (91.189.92.22): icmp_seq=4 ttl=50 time=117 ms
--- archive.ubuntu.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
I also tried curl to see what was returned.
tstewart@DESKTOP-TFRJ1CN:~$ curl http://archive.ubuntu.com/ubuntu/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /ubuntu</title>
</head>
<body>
<h1>Index of /ubuntu</h1>
<table>
<tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th></tr>
<tr><th colspan="4"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/">Parent Directory</a></td><td> </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[ ]"></td><td><a href="Archive-Update-in-Progress-ubuntu-prod-archive-servers-2">Archive-Update-in-Progress-ubuntu-prod-archive-servers-2</a></td><td align="right">2026-02-02 11:48 </td><td align="right"> 1 </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="dists/">dists/</a></td><td align="right">2025-10-09 16:00 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="indices/">indices/</a></td><td align="right">2026-02-02 11:34 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/compressed.gif" alt="[ ]"></td><td><a href="ls-lR.gz">ls-lR.gz</a></td><td align="right">2026-02-02 11:39 </td><td align="right"> 34M</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="pool/">pool/</a></td><td align="right">2010-02-27 06:30 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="project/">project/</a></td><td align="right">2024-11-24 21:31 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="ubuntu/">ubuntu/</a></td><td align="right">2026-02-02 11:48 </td><td align="right"> - </td></tr>
<tr><th colspan="4"><hr></th></tr>
</table>
<address>Apache/2.4.52 (Ubuntu) Server at archive.ubuntu.com Port 80</address>
</body></html>
tstewart@DESKTOP-TFRJ1CN:~$ curl http://archive.ubuntu.com/ubuntu/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /ubuntu</title>
</head>
<body>
<h1>Index of /ubuntu</h1>
<table>
<tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th></tr>
<tr><th colspan="4"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/">Parent Directory</a></td><td> </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="dists/">dists/</a></td><td align="right">2025-10-09 16:00 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="indices/">indices/</a></td><td align="right">2026-02-02 11:34 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/compressed.gif" alt="[ ]"></td><td><a href="ls-lR.gz">ls-lR.gz</a></td><td align="right">2026-02-02 11:39 </td><td align="right"> 34M</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="pool/">pool/</a></td><td align="right">2010-02-27 06:30 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="project/">project/</a></td><td align="right">2024-11-24 21:31 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="ubuntu/">ubuntu/</a></td><td align="right">2026-02-02 11:56 </td><td align="right"> - </td></tr>
<tr><th colspan="4"><hr></th></tr>
</table>
<address>Apache/2.4.58 (Ubuntu) Server at archive.ubuntu.com Port 80</address>
</body></html>
Before Posting:
I found this similar question, but they were just asked to try to ping it and I did that. And there was no resolution.