1.通過終端安裝程式sudo apt-get install xxx時出錯:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it
出現這個問題可能是有另外一個程式正在運行,導致資源被鎖不可用。而導致資源被鎖
的原因可能是上次運行安裝或更新時沒有正常完成,進而出現此狀況,解決的辦法其實
很簡單,在終端中敲入以下兩句:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
2.在ROS學習程序中路徑正確,并存在檔案夾,在運行某些命令是顯示:
roscd: No such package/stack 'beginner_tutorials'
解決方法:重新打開Terminal,運行以下命令:
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
3.創建msg(訊息)和svr(服務)遇到的問題,執行rosmsg show beginner_tutorials/Num命令時顯示:
Error(s):- The manifest (with format version 2) must not contain the following tags: run_depend
這個的主要解決方法是使用catkin方式時在package.xml檔案中將教程中添加的兩行陳述句 :
<build_depend>message_generation</build_depend>
<run_depend>message_runtime</run_depend>
要改成:
<build_depend>message_generation</build_depend>
<exec_depend> message_runtime </exec_depend>
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/157301.html
標籤:專題技術討論區
