当前位置:网站首页>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)
边栏推荐
- CMD command and NPM command
- Creation and simple application of QPushButton button button
- 面试官:什么是脚手架?为什么需要脚手架?常用的脚手架有哪些?
- All in one 1251 - Fairy Island for medicine (breadth first search)
- Teach you to build a nail warning robot hand in hand
- All in one 1319 - queue for water
- Luogu super Mary game
- Use of "PHP Basics" Boolean
- Redis configuration file download
- "PHP Basics" use of integer data
猜你喜欢

带宽 与 货币

Use of "PHP Basics" delimiters

Apache SSI remote command execution vulnerability

Flutter 渲染机制——GPU线程渲染

好吃难吃饱七分为宜;好喝难喝醉三分为佳

IBM3650M4实体机安装VCenter7.0
![[MRCTF2020]PYWebsite 1](/img/d4/2d9cd06abd7188add668cde77d3075.png)
[MRCTF2020]PYWebsite 1

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

vCenter7.0管理Esxi7.0主机

Interviewer: what is scaffolding? Why do you need scaffolding? What are the commonly used scaffolds?
随机推荐
Chapter 2 foreground data display
DEMO:ST05 找文本ID 信息
Process control - Branch
【uni-app高级实战】手把手带你学习一个纯实战复杂项目的开发1/100
Software test interview questions (key points)
Use of "PHP Basics" delimiters
Installation and use of beef XSS
QT creator code style plug-in beautifier
我用字符画出了一个谷爱凌!
UVM Introduction Experiment 1
How to uninstall -- Qianxin secure terminal management system
Local Oracle reported ora-12514: tns: the listener cannot recognize the requested service at present
Apache SSI remote command execution vulnerability
如何卸载--奇安信安全终端管理系统
pytorch_ demo1
P7 Day1 get to know the flask framework
Development of three database general SQL code based on PG Oracle and MySQL
开怀一笑
All in one 1353 -- expression bracket matching (stack)
1024 | in the fourth year officially called Menon, the original intention is still there, and continue to move forward