【2020】ros安装出错:rosdep init时website may be down解决方案

网站当然是不可能down的,问题是自己的网络被屏蔽了,没法出去。

### 解决方案1.换移动热点

具体要看当地的运营商有没有屏蔽网站,成功率不高。

 

### 解决方案2:更换域名服务器

这里举例子为Ubuntu系统

```shell

sudo vim /etc/resolv,conf

# 添加如下内容

nameserver 114.114.114.114

nameserver 8.8.8.8

nameserver 233.5.5.5

```

分别对应为运营商、谷歌、阿里的域名服务器

 

### 解决方案3:越过长城

https://baa.im/1259893这个是baacloud地址,配合一个开源的客户端clash就行。

 

### 解决方案4:

就是2+3一起搞

 

### 解决方案4:

自己把网站内容写到本地,但是治标不治本

/etc/ros/rosdep/sources.list.d目录下新建一个名叫20-default.list的文件。终端命令为

```shell

mkdir -p /etc/ros/rosdep/sources.list.d cd /etc/ros/rosdep/sources.list.d

touch 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
 

你可能感兴趣的:(Python,ROS)