ubuntu ros anaconda遇到的問題以及解決方法記錄

目錄

1.【ubuntu】右上角時間欄不顯示時間

2.【ubuntu】中打開網頁想複製一些可修改的東西,但是鼠標拉動選中的時候會把文字直接刪除

3.【ubuntu】打開終端以後出現多條  bash: /opt/ros/jade/setup.bash: 沒有那個文件或目錄

4.【ubuntu】Tab鍵補全出現錯誤

5.【ros】git clone 官網的navigation包以後編譯不通過

6.【ubuntu】網易雲音樂點擊圖標打不開

7.【anaconda】在Anaconda Prompt中不知道怎麼切換環境

8.【keras】運行keras的時候報錯ImportError: Failed to import `pydot`. Please install `pydot`. 但是pybot已經安裝了,import pybot沒有報錯。

9.【ubuntu】firefox報錯“代理服務器拒絕連接”,但是ping網絡ping的通

10.【python】報錯:Invalid tag: 'ascii' codec can't decode byte 0xe4 in position 108: ordinal not in range(128).

11.【python】報錯:OSError: [Errno 22] Invalid argument: 'D:\tmg.jpg'

12.【python】讀取文件時報錯:UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 8: illegal multibyte sequence

13.【python】報錯:ModuleNotFoundError: No module named 'sklearn.cross_validation'

14.【ubuntu】報錯:W: GPG 錯誤:http://packages.ros.org/ros/ubuntu xenial InRelease: 由於沒有公鑰,無法驗證下列簽名: NO_PUBKEY F42ED6FBAB17C654

15.【ubuntu】報錯:W: 倉庫 “http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release” 沒有 Release 文件。

16.【ubuntu】修改用戶密碼

17.【git】上傳時報錯Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts.

18.【git】賬戶修改密碼後git無法提交

19.【arduino】arduino燒錄報錯:avrdude: stk500_recv(): programmer is not responding

20.【cpp】執行cpp文件時報錯

21.【ros】執行$ sudo rosdep init的時候報錯:

22.【ubuntu】運行rqt_plot時報錯UserWarning: Unable to find pixel distance along axis for interval padding of ticks; assuming no interval padding needed.

23.【ubuntu】catkin_make的時候報錯Creating the toplevel cmake file failed: Could neither find file "toplevel.cmake" in any workspace nor relative, checked the following paths:XXXXXXXXXXXXXX


 


一些在使用過程中遇到的問題和解決方法。


1.【ubuntu】右上角時間欄不顯示時間

檢查系統設置-時間與日期-時鐘,發現全是灰色的,不允許修改

解決方法:

安裝日期時間指示器:

sudo apt-get install indicator-datetime

發現已經安裝過了

如果確認已經安裝,重新配置一下:

sudo dpkg-reconfigure --frontend noninteractive tzdata

然後重啓Unity:

sudo killall unity-panel-service

時間重新出現在了狀態欄

參考:博主abin9630的博客 http://blog.chinaunix.net/uid-26527046-id-4263539.html


2.【ubuntu】中打開網頁想複製一些可修改的東西,但是鼠標拉動選中的時候會把文字直接刪除

解決方法:

在終端中輸入命令:

ibus-setup

將 “在應用程序窗口中啓用內嵌編輯模式“ 選項取消

參考:https://blog.csdn.net/shadow066/article/details/50628019


3.【ubuntu】打開終端以後出現多條  bash: /opt/ros/jade/setup.bash: 沒有那個文件或目錄

解決方法:

sudo gedit .bashrc

在最末尾將多餘的重複語句刪除,一般這種問題是由於安裝ros系統時添加環境語句時多次添加造成的。另外,執行su的時候也會冒出來一句這樣的,暫時還沒有找到解決方法。


4.【ubuntu】Tab鍵補全出現錯誤

[rospack]<strong>Warning: error while crawling /home/$USER: boost::filesystem::status:
Permission denied: “/home$USER/.gvfs”
</strong>

解決方法:

sudo
​umount /home/$USER/.gvfs​
sudo rm -rf ~/.gvfs/

5.【ros】git clone 官網的navigation包以後編譯不通過

報錯爲:Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY BULLET_SOFTBODY_LIBRARY BULLET_INCLUDE_DIR)

解決方法:

rosdep update
rosdep where-defined bullet
sudo apt-get install libbullet-dev
catkin_make

6.【ubuntu】網易雲音樂點擊圖標打不開

解決方法:

sudo netease-cloud-music

參考:https://blog.csdn.net/yestin_L/article/details/79611082


7.【anaconda】在Anaconda Prompt中不知道怎麼切換環境

解決方法:

#啓動環境,例如啓動tensorflow環境
activate tensorflow

#關閉環境
deactivate

結果如下

(base) C:\Users\zhang>activate tensorflow

(tensorflow) C:\Users\zhang>deactivate

(base) C:\Users\zhang>

參考:https://blog.csdn.net/u010858605/article/details/64128466


8.【keras】運行keras的時候報錯ImportError: Failed to import `pydot`. Please install `pydot`. 但是pybot已經安裝了,import pybot沒有報錯。

解決方法:

pip install graphviz

此時再運行,報錯變爲:

OSError: `pydot` failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH.

 解決方法:進入網站,到Downloads專區下載合適的版本。將其中Bin文件夾添加到環境變量。但該有的報錯還是有,找了很久找到一篇博客(就是第二個參考),找到文件pydot.py,將1712行的

self.prog = 'dot'

改成

self.prog = 'dot.exe'

 再用以下測試,沒有報錯了。

import pydot
pydot.Dot.create(pydot.Dot())

參考:https://blog.csdn.net/yudf2010/article/details/51745238 

https://blog.csdn.net/qq_35826213/article/details/85888440


9.【ubuntu】firefox報錯“代理服務器拒絕連接”,但是ping網絡ping的通

解決方法:首選項→常規拉到最下面→網絡設置→改成不使用代理

參考:https://blog.csdn.net/ahtamjan111/article/details/79609727


10.【python】報錯:Invalid <env> tag: 'ascii' codec can't decode byte 0xe4 in position 108: ordinal not in range(128).

解決方法:

import sys
reload(sys)
sys.setdefaultencoding('utf8')

參考:https://blog.csdn.net/mindmb/article/details/7898528


11.【python】報錯:OSError: [Errno 22] Invalid argument: 'D:\tmg.jpg'

解決方法:將\換爲/

參考:https://blog.csdn.net/qq_33363973/article/details/77862007


12.【python】讀取文件時報錯:UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 8: illegal multibyte sequence

解決方法:改爲FILE_OBJECT= open('order.log','rb')

參考:https://www.cnblogs.com/mengyu/p/6638975.html


13.【python】報錯:ModuleNotFoundError: No module named 'sklearn.cross_validation'

解決方法:改爲 from sklearn.model_selection import train_test_split 

參考:https://blog.csdn.net/weixin_40283816/article/details/83242083


14.【ubuntu】報錯:W: GPG 錯誤:http://packages.ros.org/ros/ubuntu xenial InRelease: 由於沒有公鑰,無法驗證下列簽名: NO_PUBKEY F42ED6FBAB17C654

如果是英文版系統,那麼報錯爲:W: GPG error: http://mirrors.ustc.edu.cn/ros/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654

解決方法:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654

ps.後面的keys根據實際報錯修改

參考:https://blog.csdn.net/feelingjun/article/details/52288427


15.【ubuntu】報錯:W: 倉庫 “http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release” 沒有 Release 文件。

解決方法:在etc/apt/sources.list.d 目錄中刪除含fcitx-team的文件

參考:https://blog.csdn.net/we1583004we/article/details/79106855


16.【ubuntu】修改用戶密碼

在ubuntu中需要輸密碼的地方很多,使用密碼一般都喜歡設置的短小易輸入,但是在設置裏面不能設置過短的密碼。

解決方法:

sudo su
passwd user #user是當前的用戶名,也就是@前面那部分

然後設置新的密碼,ok

參考:https://blog.csdn.net/qq_28959531/article/details/78989635

 

17.【git】上傳時報錯Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts.

打開C:\Windows\System32\drivers\etc\hosts 在最後添加

13.250.177.223 github.com

參考:https://blog.csdn.net/lvsehaiyang1993/article/details/80881433

18.【git】賬戶修改密碼後git無法提交

解決方法:打開控制面板→用戶賬戶→憑據管理器→Windows憑據,把對應修改過密碼的憑據編輯一下改成新密碼即可。

參考:https://blog.csdn.net/qq_40615403/article/details/89325364

 

19.【arduino】arduino燒錄報錯:avrdude: stk500_recv(): programmer is not responding

解決方法:拔掉所有外接設備,選擇正確的板子型號和COM口

參考:https://www.geek-workshop.com/thread-4956-1-1.html

 

20.【cpp】執行cpp文件時報錯

terminate called after throwing an instance of 'ros::InvalidNameException'
  what():  Character [ ] at element [37] is not valid in Graph Resource Name [/mobilebase_arduino/sensor/batPercent ].  Valid characters are a-z, A-Z, 0-9, / and _.
Aborted

解決方法:檢查一下cpp文件中出現右邊提示的話題名的地方,在第37個字符處多了個空格,刪除即可。

參考:https://blog.csdn.net/qtvlc/article/details/82183978

 

21.【ros】執行$ 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.

解決方法:在設置中更換鏡像源

 

22.【ubuntu】運行rqt_plot時報錯UserWarning: Unable to find pixel distance along axis for interval padding of ticks; assuming no interval padding needed.

解決方法:

$ sudo apt install python-pip //如果沒有安裝pip,先安裝pip
$ pip install --upgrade pip   //如果pip版本過低,升級
$ python -m pip install -U matplotlib  //安裝matplotlib

參考:http://www.luyixian.cn/news_show_335101.aspx

 

23.【ubuntu】catkin_make的時候報錯Creating the toplevel cmake file failed: Could neither find file "toplevel.cmake" in any workspace nor relative, checked the following paths:XXXXXXXXXXXXXX

解決方法:

cd /opt/ros/kinetic/share/
ls -l catkin/
sudo mv catkin/ ../

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章