[Solved] Solution for apt-get install encounter connection failure when installing ros on ubuntu16.04

When using Ubuntu to install ros, I encountered many times that apt-get failed to obtain resource connection, as shown below

Solution:

Method 1: Repeat the update and apt-get install commands according to the prompt command until successful

sudo apt-get update
sudo apt-get upgrade --fix-missing
sudo apt-get install ros-kinetic-desktop-full //Take the ros I downloaded as an example, the ros corresponding to different versions of ubuntu are different

Method Two:

in software and updates in settings

Find Download from, click on other sites

mirrors.ubuntu.com is the default source. Considering the wall, downloading files often fails, so choose a suitable domestic mirror source site

Update after selection

sudo apt-get update

re-install

sudo apt-get install ros-kinetic-desktop-full

can be installed successfully

The article knowledge points match the official knowledge files, and you can further learn the relevant knowledge CS introductory skill tree Linux entryOnline installation software 17197 people are learning the system