1. 程式人生 > 其它 >Ubuntu 安裝ros 錯誤合集

Ubuntu 安裝ros 錯誤合集

技術標籤:ubuntu

1.遇到的第一個錯誤

在執行sudo rosdep init

問題原因: rosdep找不到下載源,通過新增伺服器地址解決
解決方法1

sudo gedit /etc/hosts    //開啟hosts檔案
//在末尾新增
151.101.84.133 raw.githubusercontent.com
//儲存後關閉

2.執行 roscore時報錯

提示你roscore command not found

那麼你需要再執行一次下面這個命令:

sudo apt-get -f install ros-melodic-desktop-full

然後再執行 roscore即可