当前位置:网站首页>Connection failed during installation of ros2 [ip: 91.189.91.39 80]
Connection failed during installation of ros2 [ip: 91.189.91.39 80]
2022-07-27 08:30:00 【Dragon Fantasy】
ROS2 Installation error :Connection failed [IP: 91.189.91.39 80]
virtual machine ROS2 The following errors appear during installation :
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/freeglut/freeglut3_2.8.1-6_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/flann/libflann1.9_1.9.1%2bdfsg-11_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/flann/libflann-dev_1.9.1%2bdfsg-11_amd64.deb Connection failed [IP: 91.189.91.38 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/fmtlib/libfmt8_8.1.1%2bds1-2_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/fyba/libfyba0_4.1.1-7_amd64.deb Connection failed [IP: 91.189.91.38 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/fyba/libfyba-dev_4.1.1-7_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/freexl/libfreexl1_1.0.6-1_amd64.deb Connection failed [IP: 91.189.91.38 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/fmtlib/libfmt-dev_8.1.1%2bds1-2_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/freexl/libfreexl-dev_1.0.6-1_amd64.deb Connection failed [IP: 91.189.91.38 80]
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/fonttools/python3-fonttools_4.29.1-2build1_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

resolvent
1、 To analyze problems , Try to solve it yourself according to the prompts
The last sentence of the question :Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? The translation means : Unable to get some archives , Maybe run apt-get update Or add --fix-missing Try again ( It can be solved ). They refer to the following two instructions respectively :
sudo apt-get update
sudo apt-get update --fix-missing
2、 Not solve , Check for network problems
If you run the above two instructions, it still won't work ( Mine just can't ), Refer to the information you can find on the Internet , Most of them say that they need to be modified DNS Address . When I started revising , Think about it , Why the original DNS Can not use , Just remembered What I connect is generated by the router relay WiFi(WiFi The names are different ), Is it possible that this is the reason why the connection to the website is wrong . I changed to one without relay WiFi, I did it again , Found no error , Problem solved .
If you are not in the above situation , You can try it Use mobile data to open hot spots , Computers are directly connected to broadband with network cables Other methods , If it doesn't work , Try the following method .
3、 modify DNS Address or modify software source
If the above method cannot be solved , It can only be modified online DNS And the method of modifying the software source . In order to better solve this problem , I specially summarized DNS A summary of the modification methods of and software sources , You can refer to it : DNS Summary of address modification and software source modification
ad locum , I take ubuntu22.04 For example , According to the content of the above article , The following two solutions are given :
3.1 modify DNS Address
Because to solve this problem, we only need to modify it temporarily DNS Address , So here we modify DNS Client configuration file , I.e. modification /etc/resolv.conf file .
(1)echo Instructions covering resolv.conf The contents of the document ( Yes vim Skilled editor , It can also be used. vim open resolv.conf File modification )
sudo echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
(2) Check whether the file is modified successfully
Mode one : Terminal mode view :
cat /etc/resolv.conf

Mode two : Text view :
cat /etc/resolv.conf

(3) Renew
sudo apt-get update --fix-missing
If it's installation ROS2, You can also re execute ROS2 Installation instructions :
sudo apt install ros-humble-desktop
Basically, the above steps can solve the problem of Title , If not , You can only try to modify the software source .
3.2 Modify software source
(1) Back up the files to be modified
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
(2) Open with text editor sources.list file
sudo gedit /etc/apt/sources.list
(3) Replace the contents of the document with the following , Then save to exit
# Tsinghua University open source software image station Ubuntu22.04 Mirror source
# The source image is annotated by default to improve apt update Speed , If necessary, please cancel the comment
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# Open source software mirror station of University of science and technology of China Ubuntu22.04 Mirror source
# The source repository is annotated by default , If necessary, please cancel the comment
deb https://mirrors.ustc.edu.cn/ubuntu/ jammymain restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# Alibaba cloud open source software image station Ubuntu22.04 Mirror source
deb http://mirrors.aliyun.com/ubuntu/ jammymain restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
PS: For other versions , hold jammy Just change to another version code : 22.04:jammy;20.04:focal;18.04:bionic;16.04:xenial.
(4) Check whether the software source is loaded successfully
# Check for updates
sudo apt-get update
# Update software
sudo apt-get upgrade
If there is no problem with the software source , You can update again
sudo apt-get update --fix-missing
sudo apt install ros-humble-desktop
Reference material :
1、【Linux To configure 】E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
2、DNS Summary of address modification and software source modification ( be based on ubuntu22.04)
边栏推荐
- 1024 | in the fourth year officially called Menon, the original intention is still there, and continue to move forward
- I drew a Gu ailing with characters!
- I can't figure out why MySQL uses b+ trees for indexing?
- You may need an additional loader to handle the result of these loaders.
- containerd拉取私库镜像失败(kubelet)
- Dirsearch[directory scanning tool]
- Luogu super Mary game
- Breadth first search
- 如何在qsim查看软件对象的实例?
- List delete collection elements
猜你喜欢

All in one 1353 -- expression bracket matching (stack)

说透缓存一致性与内存屏障

OSI seven layer model and tcp/ip four layer (TCP and UDP) (notes)

Alibaba cloud international receipt message introduction and configuration process

Login to homepage function implementation

On Valentine's day, I drew an object with characters!

File name wildcard rules for kettle

MCDF顶层验证方案

pytorch_ demo1

第2章 前台数据展现
随机推荐
JS basic exercises
Implementation of adding function of background user management display
docker 安装mysql后进入容器内部发现登录不了mysql
"Basic knowledge of PHP" implement mathematical operations in PHP
Prevent cookies from modifying ID to cheat login
IBM3650M4实体机安装VCenter7.0
All in one 1319 - queue for water
"PHP Basics" uses echo statements to output information
Solve the problem of slow batch insertion of MySQL JDBC data
Explain cache consistency and memory barrier
You may need an additional loader to handle the result of these loaders.
[MRCTF2020]PYWebsite 1
Realization of background channel group management function
Supervisor 安装与使用
Development of three database general SQL code based on PG Oracle and MySQL
Installation and use of beef XSS
Is redis really slowing down?
Luogu super Mary game
海量数据肖枫:共建共治openGauss根社区,共享欣欣向荣新生态
面试官:什么是脚手架?为什么需要脚手架?常用的脚手架有哪些?