打包mysql workbench
1 2 | sudo apt-get install python3-rosdep<br>rosdep where-defined ANTLR4<br> sudo rosdep init<br>rosdep update sudo apt install g++ libx11-dev swig antlr4 libantlr4-runtime-dev gtk+-3.0 gtkmm-3.0 libpython3.7-dev libpython2.7-dev libgdal-dev libssh-dev |
https://blog.csdn.net/czsnooker/article/details/120058151
sudo rosdep init
这个可能报错:
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
原因:网站被墙了,挂vpn可以访问
解决方法:
1、换手机热点,成功几率不大
2、sudo gedit /etc/hosts
底部添加:
151.101.84.133 raw.githubusercontent.com
185.199.111.133 raw.github.com
可能有效
3、直接写入文件
我挂vpn访问上面这个网站,得到
1 2 3 4 5 6 7 8 9 10 | # 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 |
1 2 3 | sudo mkdir -p /etc/ros/rosdep/sources .list.d cd /etc/ros/rosdep/sources .list.d sudo gedit 20-default.list |
把上面的内容粘贴到该文件中,保存、退出
1 | rosdep update |
ERROR: error loading sources list:
<urlopen error (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>
可能会出现连接超时这种错误,多运行几次,还可以换阿里云源试试,注意网络环境一定要好。
终极方法-----修改下载源文件。
网站https://ghproxy.com/支持github的资源代理,非常好用,我们将用此代理加速rosdep对Github Raw的访问,进而解决rosdep update超时问题
1、/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
添加
url = 'https://ghproxy.com/'+url
2、/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
第36行,如下添加:
第204行如下添加:
3、/usr/lib/python2.7/dist-packages/rosdep2/rep3.py
定位到39行,如下添加
4、/usr/lib/python2.7/dist-packages/rosdistro/__init__.py
定位到68行,修改如下
5\ /usr/lib/python2.7/dist-packages/rosdistro/manifest_provider/github.py
定位到68行修改如下
再rosdep update一下,成功!!!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现