Ubuntu(Linux)上安装ROS缓慢,解决方法:添加ros的国内镜像源,以及ROS安装过程使用rosdep update出现错误:‘The read operation timed out‘
文章目录:
- 1 解决Unbuntu上安装ROS特别慢问题
- 1.1 Ubunut 更换ROS的镜像源为国内的镜像源
- 1.2 如果是Mint19.3系统,请参考如下添加ros镜像源
- 2 ROS安装过程sudo rosdep init+rosdep update出现错误:'The read operation timed out'
1 解决Unbuntu上安装ROS特别慢问题
在安装ROS的时候速度特别慢,显示需要时间可能需要一天多,网上查看提示可以更换下载ros的镜像源:
1.1 Ubunut 更换ROS的镜像源为国内的镜像源
WIKI上有给出ROS的国内镜像源
1、中国科学技术大学
ros镜像源
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
2、清华大学
ros镜像源
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
3、北京外国语大学
ros镜像源
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.bfsu.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
4、上海交通大学
ros镜像源
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.sjtug.sjtu.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
我用的是清华的镜像源,真的很快,嗖的一下
1.2 如果是Mint19.3系统,请参考如下添加ros镜像源
由于我的系统是Mint19.3
,是Ubuntu改造出来的系统,对应的Ubuntu版本为Ubuntu18.04
,因此对因的Ubuntu版本号为bionic
,具体添加如下:
sudo sh -c 'echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ bionic main" > /etc/apt/sources.list.d/ros-latest.list'
2 ROS安装过程sudo rosdep init+rosdep update出现错误:‘The read operation timed out’
参考
解决方法:
1、删除之前的源文件
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
2、更新
sudo apt-get update
3、rosdep初始化
sudo rosdep init
4、rosdep再次更新
rosdep update
具体操作返回信息如下:
(base) shl@zhihui-mint:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Add distro "foxy"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
ERROR: error loading sources list:('The read operation timed out',)
(base) shl@zhihui-mint:~$ cat /etc/ros/rosdep/sources.list.d/20-default.list
# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
(base) shl@zhihui-mint:~$ sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
(base) shl@zhihui-mint:~$ sudo apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
获取:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease [88.7 kB]
忽略:3 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic InRelease
获取:4 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease [88.7 kB]
获取:5 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease [242 kB]
命中:6 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
命中:7 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release
命中:8 http://dl.google.com/linux/chrome/deb stable InRelease
命中:9 http://archive.ubuntu.com/ubuntu bionic InRelease
忽略:10 http://packages.linuxmint.com tricia InRelease
获取:12 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
获取:13 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
命中:14 http://archive.canonical.com/ubuntu bionic InRelease
命中:15 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu xenial InRelease
命中:16 http://packages.linuxmint.com tricia Release
命中:17 http://ppa.launchpad.net/linrunner/tlp/ubuntu bionic InRelease
获取:19 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
已下载 672 kB,耗时 2秒 (412 kB/s)
正在读取软件包列表... 完成
(base) shl@zhihui-mint:~$ sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please runrosdep update(base) shl@zhihui-mint:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Add distro "foxy"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/shl/.ros/rosdep/sources.cache
(base) shl@zhihui-mint:~$ (base) shl@zhihui-mint:~$ cat /etc/ros/rosdep/sources.list.d/20-default.list
# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
(base) shl@zhihui-mint:~$
欢迎大家关注笔者,你的关注是我持续更博的最大动力
原创文章,转载告知,盗版必究
微信:suihailiang0816 QQ:931762054 wx公众号:仰望星空的小随
Ubuntu(Linux)上安装ROS缓慢,解决方法:添加ros的国内镜像源,以及ROS安装过程使用rosdep update出现错误:‘The read operation timed out‘相关推荐
- ModuleNotFoundError: No module named 'skimage'报错信息的解决方法及如何使用国内镜像安装库文件
首先,之所以会出现ModuleNotFoundError这一系列的报错信息,是由于缺少指定的库文件.正如标题中所涉及到的这个错误,正是由于缺少skimage(Scikit-Image,一个处理数字图像 ...
- Office安装出错的解决方法,如“Microsoft Office Professional Plus 2013在安装过程中出错”。
一.问题 把原来的Office卸载之后再重新下载安装,出现"Microsoft Office Professional Plus 2013在安装过程中出错"等问题. 二.安装出错解 ...
- Ubuntu 18 上不了网解决方法
Ubuntu 18 出现网络异常 1.打开命令行 Ctrl+Alt+t 2.关闭网络 sudo service network-manager stop 3.删除网络 sudo rm /var/lib ...
- 安装Beautifulsoup失败解决方法之一,《文件名与库的名字一样》小白易犯的错误
问题描述 from bs4 import BeautifulSoup 系统一直给BeautifulSoup标记红色波浪线,显示未安装,可是我明明安装了呀,我在pip里安装了一遍,也去setting里安 ...
- Python安装包,官网下载太慢解决方法:淘宝国内镜像
下载传送门
- 用国内镜像源pip加速安装模块
记住,如果使用了virtualenv,一定要先workon进入虚拟环境再执行包安装命令. pip install -i https://pypi.douban.com/simple/ 模块名(如:dj ...
- 解决 no model named skimage 国内镜像源 win10 ana3 jupyter
小白采坑日记007 哈哈哈 我的步子已经迈到pytorch了 0526 遇到的问题是No module named 'skimage' 首先用scikit-image替换skimage 然后 pip ...
- 腾讯手游助手选择不了服务器失败,腾讯手游助手安装不了怎么办 模拟器安装失败的解决方法...
腾讯手游助手是一款好用的手游模拟器,可以在电脑上玩手游,但是有时也会出现一些问题,那么腾讯手游助手安装不了怎么办?下面小编带来模拟器安装失败的解决方法,希望对大家有所帮助. 模拟器安装失败的解决方法: ...
- vmware tools安装程序无法继续,Microsoft Runtime DLL安装程序未能完成安装。的解决方法
vmware tools安装程序无法继续,Microsoft Runtime DLL安装程序未能完成安装.的解决方法 参考文章: (1)vmware tools安装程序无法继续,Microsoft R ...
最新文章
- excel设置单元格为文本
- Android 5.0 Lollipop介绍
- Navicat for MySQL - 破解
- 【Java】利用循环嵌套实现输出一天的小时和分钟
- 聚焦openEuler Summit,解锁云原生、开源等领域的实践干货
- 优化springboot
- QTP自动化测试-点滴-步骤
- dpkg:处理 xxx (--configure)时出错解决办法,也可用于卸载软件出错的情况
- EMC CTO:IT进化到“以数据为核心”的阶段
- 标准正态分布表(scipy.stats)
- apk一键脱壳工具_一键新机!强大的抹机王来了!
- java实现生成pdf_Java 生成 PDF 文档
- Mybatis CRUD操作和多表查询
- 澳洲的10种房屋类型
- openwrt路由器(红米AC2100)折腾全程——多拨、ipv6负载均衡、ipv6 nat6、ddns、端口转发
- 朱子治家格言(清朝·朱柏庐)
- 如何让一台连接wifi上网的电脑通过网线让另一台电脑上网?
- 【微服务】—— 统一网关Gateway
- QT ui添加菜单栏和工具栏
- ELKF:日志可视化Discovery
热门文章
- springcloud(七):配置中心svn示例和refresh
- LeetCode 375. Guess Number Higher or Lower II
- 对象的比较与排序(三):实现IComparableT和IComparerT泛型接口
- PIE.htc 让IE使用CSS3
- 简单的点击展开/关闭效果
- python使用缩进来体现代码之间的逻辑关系-Python 使用缩进来体现代码之间的逻辑关系 ....
- python图片-Python图像处理
- python画三维平面-Python三维绘图--Matplotlib
- python自学什么书比较好-有什么好的自学 Python 的书籍推荐?
- python语言安装-下载和安装Python语言