0

I have trouble with the Ubuntu 16.04 on Raspberry Pi 3B sever problem.

When I type $ sudo apt-get update ,
it will shows the error message:

Fail to fetch 

The image are here for the evidence:

real fail to fetch image

err1: http://ports.ubuntu.com/ubuntu-ports xenial InRelease
Temporary failure resolving 'ports.ubuntu.com'

err2: http://ppa.launchpad.net/ubuntu-raspi2/ppa-rpi3/ubuntu  xenial InRelease
Temporary failure resolving 'ppa.launchpad.net'
...

Reading Package lists...Done

W:Failure to fetch http://ports.ubuntu.com/ubuntu-ports/dists/xenial/InRelease Temporary failure resolving 'ports.ubuntu.com'

...

W: Some index files failed to download. They have been ignored, or old one used instead.

How can I fix it??

Thank you for all your help!

abu_bua
  • 10,473
  • 10
  • 45
  • 62
Chen Moye
  • 1
  • 1
  • 2
  • Do you actually have an IP address? `ifconfig` Welcome to Ask Ubuntu. – chili555 Sep 24 '18 at 13:42
  • 1
    Does this answer your question? [apt-get update fails to fetch files, “Temporary failure resolving …” error](https://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error) – karel Jan 21 '20 at 09:13

1 Answers1

0

This is likely because you don't have network connectivity on the Raspberry Pi. First check if you actually can reach the Internet via:

ping google.com

If this fails then you need to connect the Raspberry Pi to the Internet first.

Kristopher Ives
  • 5,419
  • 2
  • 27
  • 36