完美解決呼叫“sudo rosdep init“命令時的報錯
在安裝完畢Ubuntu系統後,我們執行命令sudo rosdep init時往往會遇到如下報錯:
$ 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.
這是因為raw.githubusercontent.com
被牆,程式無法下載相應的檔案導致的。
完美解決方法如下:
1. 開啟檔案/etc/hosts:
$ sudo vim /etc/hosts
2. 在檔案末尾新增一行如下內容:
151.101.84.133 raw.githubusercontent.com
3. 儲存退出,重新執行命令
$ sudo rosdep init
4. 最後執行命令
$ 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/mlb/.ros/rosdep/sources.cache
完美解決!
相關文章
- sudo rosdep init 和 rosdep update 報錯的解決方法(簡單有效!)ROS
- sudo rosdep init and rosdep update Error 手動新增+修改域名解決方法ROSError
- ROS初始化時候sudo rosdep init rosdep update出現的各種問題親測成功的解決辦法(2020.12.29已解決!)ROS
- 解決ROS國內rosdep init和update的相關問題ROS
- 完美解決xhost +報錯: unable to open display
- 使用 sudo 命令出現錯誤
- Xcode更新後Pod init出錯的解決方案XCode
- sudo時出現unable to resolve host 的解決方法
- vue init webpack報錯VueWeb
- SQLyog連線MySQL8.0報2058錯誤的完美解決方法MySql
- git init命令詳解Git
- rosdep update 超時失敗最新解決方法ROS
- SS報錯的解決
- 解決vue使用Sass時候的報錯問題Vue
- go mod init報錯問題Go
- vue init webpack my-project指令時報錯問題(一)VueWebProject
- sudo apt update時報錯 E: Unable to lock directory /var/lib/apt/lists/APT
- Nginx啟動不了報錯未找到命令的解決方法(- bash: nginx: 未找到命令)Nginx
- docker pull下載映象時的報錯及其解決方法Docker
- IDEA啟動時報Failed to create JVM錯誤的解決IdeaAIJVM
- 解決fastjson反序列化時報錯的問題ASTJSON
- 使用命令登入harbor報錯authentication required解決方法UI
- 連線oracle資料庫時,報錯:{dataSource-1} init errorOracle資料庫Error
- mybatis報錯解決MyBatis
- 解決eslint報錯EsLint
- Linux命令su、sudo、sudo su、sudo -i使用和區別Linux
- git init 命令Git
- Charles 用不了,Charles 開啟時報錯的解決方案
- 解決 VMware 建立虛擬機器時 unsuccessful報錯虛擬機
- 呼叫https介面時報錯:PKIX path building failed 的問題HTTPUIAI
- PHP報錯:Call to undefined function curl_init()PHPUndefinedFunction
- iText中文,報錯解決
- supervisor使用報錯解決
- npm install 報錯解決NPM
- 報錯內容解決
- linuxsu和sudo命令的區別Linux
- 威力強大的Linux sudo 命令Linux
- Larabel遷移檔案時報SQLSTATE[42000]錯誤的解決方法SQL