RPi5/Ubuntu 24.04 64 server/ sudo apt update errors

107 views
Skip to first unread message

James H Phelan

unread,
Jan 2, 2025, 9:44:08 PM1/2/25
to HomeBrew Robotics Club

Team

This happened before Christmas so gave it a rest til after New Years, but it's still happening:

Raspberry Pi 5

Ubuntu 24.04 64bit Server via RPi Imager.  Tried different SD cards and card adapters.

SSH configured ok and PuTTY access successful.  

Get same error whether with keyboard/terminal, SSH eth0 or wlan0.

ubuntu@Stingray:~$ sudo apt update
[sudo] password for ubuntu:
Ign:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Ign:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Ign:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Ign:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Ign:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Ign:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Err:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
  Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
  Temporary failure resolving 'ports.ubuntu.com'
Err:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
  Temporary failure resolving 'ports.ubuntu.com'
Err:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
  Temporary failure resolving 'ports.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
129 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble-updates/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble-backports/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble-security/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

get similar errors if I try to install anything.

can ping gateway, other computers, and access net from other computers.

Anybody else getting this?

-- 
James H Phelan
"Nihil est sine ratione cur potius sit quam non sit"
Leibniz

Marco Walther

unread,
Jan 2, 2025, 10:48:49 PM1/2/25
to hbrob...@googlegroups.com
On 1/2/25 18:43, 'James H Phelan' via HomeBrew Robotics Club wrote:
> Team
>
> This happened before Christmas so gave it a rest til after New Years,
> but it's still happening:
>
> Raspberry Pi 5
>
> Ubuntu 24.04 64bit Server via RPi Imager.  Tried different SD cards and
> card adapters.

That's `not` at the SD card level. Your system has booted just fine.
It's somewhere at the network configuration level

>
> SSH configured ok and PuTTY access successful.
>
> Get same error whether with keyboard/terminal, SSH eth0 or wlan0.
>
> ubuntu@Stingray:~$ *sudo apt update*
> W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/noble-
> updates/InRelease Temporary failure resolving 'ports.ubuntu.com'
> backports/InRelease Temporary failure resolving 'ports.ubuntu.com'
> security/InRelease Temporary failure resolving 'ports.ubuntu.com'
> W: Some index files failed to download. They have been ignored, or old
> ones used instead.
>
> get similar errors if I try to install anything.
>
> can ping gateway, other computers, and access net from other computers.

You probably `can not` ping www.google.com:-( You messed up your name
resolution somehow.

>
> Anybody else getting this?

Why would they? It's somewhere between your Pi and your access point
(and if you have an dedicated internet gateway).

First Question: Can you send me the output of

egrep -v '^#' /etc/resolv.conf

Second Q:

ping www.google.com

For me, that looks like

=================================================================
ubuntu@ubuntu-2404-pi:~$ egrep -v '^#' /etc/resolv.conf

nameserver 127.0.0.53
options edns0 trust-ad
search .
ubuntu@ubuntu-2404-pi:~$ ping www.google.com
PING www.google.com (2607:f8b0:4005:80e::2004) 56 data bytes
64 bytes from nuq04s39-in-x04.1e100.net (2607:f8b0:4005:80e::2004):
icmp_seq=1 ttl=116 time=22.6 ms
64 bytes from nuq04s39-in-x04.1e100.net (2607:f8b0:4005:80e::2004):
icmp_seq=2 ttl=116 time=17.8 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 17.822/20.234/22.646/2.412 ms
ubuntu@ubuntu-2404-pi:~$
=================================================================

You could try to change the 'nameserver line' to use 8.8.8.8 (a public
google DNS server). That might help in the short term (until a reboot or
DHCP refresh).

-- Marco





>
> --
> James H Phelan
> "Nihil est sine ratione cur potius sit quam non sit"
> Leibniz
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> hbrobotics/1147be3e-5a1d-435d-978b-eb8183568bf6%40hal-pc.org <https://
> groups.google.com/d/msgid/hbrobotics/1147be3e-5a1d-435d-978b-
> eb8183568bf6%40hal-pc.org?utm_medium=email&utm_source=footer>.

Sergei Grichine

unread,
Jan 2, 2025, 11:00:28 PM1/2/25
to hbrob...@googlegroups.com

To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hbrobotics/4a83b529-0790-4183-8563-3a0f9aabfe6c%40gmail.com.


--
Best Regards,
-- Sergei

Marco Walther

unread,
Jan 2, 2025, 11:08:57 PM1/2/25
to hbrob...@googlegroups.com, Sergei Grichine
On 1/2/25 20:00, Sergei Grichine wrote:
> James,
>
> You may want to try this: https://github.com/slgrobotics/robots_bringup/
> blob/main/Docs/Ubuntu-RPi/README.md#optional-better-network-control-
> using-etcnetplan-directly <https://github.com/slgrobotics/
> robots_bringup/blob/main/Docs/Ubuntu-RPi/README.md#optional-better-
> network-control-using-etcnetplan-directly>


The problem is, you can't follow that recipe blindly:-( As long, as you
know, what you're doing, it's a good way to go. But there are values in
there, which have to match the local setup.

-- Marco

>
> On Thu, Jan 2, 2025 at 9:48 PM Marco Walther <marc...@gmail.com
> <mailto:marc...@gmail.com>> wrote:
>
> On 1/2/25 18:43, 'James H Phelan' via HomeBrew Robotics Club wrote:
> > Team
> >
> > This happened before Christmas so gave it a rest til after New
> Years,
> > but it's still happening:
> >
> > Raspberry Pi 5
> >
> > Ubuntu 24.04 64bit Server via RPi Imager.  Tried different SD
> cards and
> > card adapters.
>
> That's `not` at the SD card level. Your system has booted just fine.
> It's somewhere at the network configuration level
>
> >
> > SSH configured ok and PuTTY access successful.
> >
> > Get same error whether with keyboard/terminal, SSH eth0 or wlan0.
> >
> > ubuntu@Stingray:~$ *sudo apt update*
> > [sudo] password for ubuntu:
> > Ign:1 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble InRelease
> > Ign:2 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-updates InRelease
> > Ign:3 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-backports InRelease
> > Ign:4 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-security InRelease
> > Ign:1 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble InRelease
> > Ign:2 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-updates InRelease
> > Ign:3 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-backports InRelease
> > Ign:4 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-security InRelease
> > Ign:1 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble InRelease
> > Ign:2 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-updates InRelease
> > Ign:3 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-backports InRelease
> > Ign:4 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-security InRelease
> > Err:1 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble InRelease
> >    Temporary failure resolving 'ports.ubuntu.com <http://
> ports.ubuntu.com>'
> > Err:2 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-updates InRelease
> >    Temporary failure resolving 'ports.ubuntu.com <http://
> ports.ubuntu.com>'
> > Err:3 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-backports InRelease
> >    Temporary failure resolving 'ports.ubuntu.com <http://
> ports.ubuntu.com>'
> > Err:4 http://ports.ubuntu.com/ubuntu-ports <http://
> ports.ubuntu.com/ubuntu-ports> noble-security InRelease
> >    Temporary failure resolving 'ports.ubuntu.com <http://
> ports.ubuntu.com>'
> > Reading package lists... Done
> > Building dependency tree... Done
> > Reading state information... Done
> > 129 packages can be upgraded. Run 'apt list --upgradable' to see
> them.
> > W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/
> noble/ <http://ports.ubuntu.com/ubuntu-ports/dists/noble/>
> > InRelease Temporary failure resolving 'ports.ubuntu.com <http://
> noble- <http://ports.ubuntu.com/ubuntu-ports/dists/noble->
> > updates/InRelease Temporary failure resolving 'ports.ubuntu.com
> <http://ports.ubuntu.com>'
> noble- <http://ports.ubuntu.com/ubuntu-ports/dists/noble->
> > backports/InRelease Temporary failure resolving 'ports.ubuntu.com
> <http://ports.ubuntu.com>'
> noble- <http://ports.ubuntu.com/ubuntu-ports/dists/noble->
> > security/InRelease Temporary failure resolving 'ports.ubuntu.com
> <http://ports.ubuntu.com>'
> > W: Some index files failed to download. They have been ignored,
> or old
> > ones used instead.
> >
> > get similar errors if I try to install anything.
> >
> > can ping gateway, other computers, and access net from other
> computers.
>
> You probably `can not` ping www.google.com:-( You messed up your name
> resolution somehow.
>
> >
> > Anybody else getting this?
>
> Why would they? It's somewhere between your Pi and your access point
> (and if you have an dedicated internet gateway).
>
> First Question: Can you send me the output of
>
> egrep -v '^#' /etc/resolv.conf
>
> Second Q:
>
> ping www.google.com <http://www.google.com>
>
> For me, that looks like
>
> =================================================================
> ubuntu@ubuntu-2404-pi:~$ egrep -v '^#' /etc/resolv.conf
>
> nameserver 127.0.0.53
> options edns0 trust-ad
> search .
> ubuntu@ubuntu-2404-pi:~$ ping www.google.com <http://www.google.com>
> PING www.google.com <http://www.google.com>
> (2607:f8b0:4005:80e::2004) 56 data bytes
> 64 bytes from nuq04s39-in-x04.1e100.net <http://nuq04s39-in-
> x04.1e100.net> (2607:f8b0:4005:80e::2004):
> icmp_seq=1 ttl=116 time=22.6 ms
> 64 bytes from nuq04s39-in-x04.1e100.net <http://nuq04s39-in-
> x04.1e100.net> (2607:f8b0:4005:80e::2004):
> icmp_seq=2 ttl=116 time=17.8 ms
> ^C
> --- www.google.com <http://www.google.com> ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
> rtt min/avg/max/mdev = 17.822/20.234/22.646/2.412 ms
> ubuntu@ubuntu-2404-pi:~$
> =================================================================
>
> You could try to change the 'nameserver line' to use 8.8.8.8 (a public
> google DNS server). That might help in the short term (until a
> reboot or
> DHCP refresh).
>
> -- Marco
>
>
>
>
>
> >
> > --
> > James H Phelan
> > "Nihil est sine ratione cur potius sit quam non sit"
> > Leibniz
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "HomeBrew Robotics Club" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics%2Bunsu...@googlegroups.com>
> > <mailto:hbrobotics+...@googlegroups.com
> <mailto:hbrobotics%2Bunsu...@googlegroups.com>>.
> > To view this discussion visit https://groups.google.com/d/msgid/
> <https://groups.google.com/d/msgid/>
> > hbrobotics/1147be3e-5a1d-435d-978b-eb8183568bf6%40hal-pc.org
> <http://40hal-pc.org> <https://
> > groups.google.com/d/msgid/hbrobotics/1147be3e-5a1d-435d-978b-
> <http://groups.google.com/d/msgid/hbrobotics/1147be3e-5a1d-435d-978b->
> > eb8183568bf6%40hal-pc.org?utm_medium=email&utm_source=footer
> <http://40hal-pc.org?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics%2Bunsu...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> hbrobotics/4a83b529-0790-4183-8563-3a0f9aabfe6c%40gmail.com
> <https://groups.google.com/d/msgid/
> hbrobotics/4a83b529-0790-4183-8563-3a0f9aabfe6c%40gmail.com>.
>
>
>
> --
> Best Regards,
> -- Sergei
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> hbrobotics/CA%2BKVXVP%2BM6s4yjPXDETjnHm_gu1Yfr4_UquZB25E%3D2J0L-
> YyDQ%40mail.gmail.com <https://groups.google.com/d/msgid/hbrobotics/
> CA%2BKVXVP%2BM6s4yjPXDETjnHm_gu1Yfr4_UquZB25E%3D2J0L-
> YyDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Chris Albertson

unread,
Jan 2, 2025, 11:35:07 PM1/2/25
to hbrob...@googlegroups.com
Look at the very first warning you got (quoted below) .  It explains the problem perfectly.

Before attampting to do the upgrade try this “ping apple.com” or if you prefer “ping google.com” both are realable and if you can “ping” them it proves you nIntrernet connection is good.   If the ping fails, fix that BEFORE you try to download a software update.

James H Phelan

unread,
Jan 3, 2025, 3:21:54 PM1/3/25
to hbrob...@googlegroups.com

Team,

Thanks to everyone for the guidance.

First to answer the suggested queries:

ubuntu@Stingray:~$ ping www.google.com
ping: www.google.com: Temporary failure in name resolution

ubuntu@Stingray:~$ egrep -v '^#' /etc/resolv.conf



nameserver 127.0.0.53
options edns0 trust-ad
search .

But once it became clear that the problem was me getting out I figured out the problem is in /etc/netplan/--.yaml

Using Ubuntu Desktop it's fairly easy to configure etho & wlan0.

But using Server, it means playing with netplan which is a real hemorrhoid with changing documentation and deprecation of commands.

But I adapted /etc/netplan/50-...-.yaml from another Ubuntu machine on my network and all is well!

Thanks again!

Jim

Steve " 'dillo" Okay

unread,
Jan 4, 2025, 9:47:48 AM1/4/25
to HomeBrew Robotics Club


On Friday, January 3, 2025 at 12:21:54 PM UTC-8 James H Phelan wrote:
[...]

Using Ubuntu Desktop it's fairly easy to configure etho & wlan0.

But using Server, it means playing with netplan which is a real hemorrhoid with changing documentation and deprecation of commands.

The way Ubuntu/Canonical constantly changes network/device config and system boot is my biggest peeve with them.
It's like the playground they turn the summer interns and new hires loose to experiment and flex their wings on.

'dillo
Reply all
Reply to author
Forward
0 new messages