檢查 roscore 是否正常打開
[ERROR] Failed to contact master at [localhost:11311]. Retrying...
[ERROR] [1446531999.044935824]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
解決:請檢查 roscore 是否正常打開。
每次進行運行測試時都要首先運行 roscore。
關於rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
<urlopen error _ssl.c:495: The handshake operation timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
ERROR: error loading sources list:
The read operation timed out
不知道如何解決,求吧友解惑
http://tieba.baidu.com/p/4877135262
我也出現此問題,然后我執行了以下就可以了:
sudo apt-get update
sudo apt-get install python-rosdep
程序“rosdep”尚未安裝
您可以使用以下命令安裝:
sudo apt install python-rosdep
加鎖
錯誤提示:
E: 無法獲得鎖 /var/lib/apt/lists/lock – open (11: 資源暫時不可用)
E: 無法對目錄 /var/lib/apt/lists/ 加鎖
解決辦法一:
面對這個問題,有人直接在終端中輸入命令:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
Ubuntu獲取root權限
1.臨時獲取root權限:
Ctrl+Alt+T 快捷鍵打開終端
#sudo -i //獲取root權限后更改當前路徑為根目錄/root
#sudo -s //獲取root權限后仍在當前目錄下
[sudo] password for ***: //輸入開機密碼
root@***:~# //臨時獲取root
2.永久root權限:(以root賬戶登錄)
先按1.中方法臨時獲得root權限
#cd /etc/lightdm
#gedit lightdm.conf
打開編輯器,在最后加上兩行:
greeter-show-manual-login=true
allow-guest=false
#passwd root
輸入新的Unix密碼:
重新輸入新的 UNIX密碼:
passwd:已成功更新密碼