Some problem with apt update on Ubuntu 20.04 LTS server on Raspberry Pi 4 B

Asked by Ngo Dang Khoi

I'm trying to run apt update and this is what I get:

Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
    Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRealease
    Temporary failure resolving 'ports.ubuntu.com'
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
    Temporary failure resolving 'ports.ubuntu.com'
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
    Temporary failure resolving 'ports.ubuntu.com'
reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRealease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRealease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRealease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRealease Temporary failure resolving 'ports.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

I'm a newbie to linux hope you can help me fix this

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The problem seems not to be related to the update, but apparently is caused by a networking problem.

Can you ping internet servers, e.g. 8.8.8.8 or google.com from your Raspberry PI system?
Can you access the internet from your Raspberry PI system, e.g. with a web browser?
Do you use a web proxy?

Revision history for this message
Ngo Dang Khoi (khoi0308) said :
#2

When I run 'ping 8.8.8.8' it returns 'ping: connect: Network is unreachable' when I run 'ping google.com' it returns 'ping: google.com: Temporary failure in name resolution'
Can I use an ethernet cable to connect from a laptop that is connect to the internet through wifi to the Raspberry Pi?

Revision history for this message
Ngo Dang Khoi (khoi0308) said :
#3

Oh by the way I'm trying to install lubuntu by following this: https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#1-overview

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

The steps necessary to share a WLAN network connection vie cable is described in https://askubuntu.com/questions/3063/share-wireless-connection-with-wired-ethernet-port

Can you help with this problem?

Provide an answer of your own, or ask Ngo Dang Khoi for more information if necessary.

To post a message you must log in.