Ubuntu18.04..5 Configuring Domestic Mirror Source: Solve E: Failed To Fetch

Mirror download, domain analysis, time synchronization, please click Ali Cloud Open Source Mirror Station

Problem Description

E: failed to fetch problem occurs using sudo apt get-install.

Replace the mirror source

Error Cause: In most cases, the Download source of ROS updates is normal, so this problem should be some configuration settings of your own system.

Since the network has problems, we replace the downloaded source:

Use Gedit or VI / VIM to open the configuration file:

Sudo gedit /etc/apt/sources.list

or

Sudo vim /etc/apt/sources.list

Replace all content

organ

Then take effect configuration file (refresh list)

SudoApt-getUpdate

Note: Be sure to perform refresh

Configure DNS gateway

Enter a command under Terminal

Sudogedit / etc / resolv.conf

or

Sudovi / etc / resolv.conf

Add Ali DNS in Resolv.conf

Nameserver127.0.0.53

SudoApt-getUpdate