ubuntu ros anaconda遇到的问题以及解决方法记录

18 篇文章 59 订阅
2 篇文章 0 订阅

目录

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

24.【git】更新代码时遇到ssl验证错误

25.【ros】rosdep报错

26.【git】git clone报错:server certificate verification failed. CAfile: none CRLfile: none

27.【ubuntu】ubuntu下使用Kazam录屏,在windows下无法播放

28.【git】创建ssh key失败

29.【git】设置ssh key以后pull push还是需要输入密码

30.【excel】方向键不能移动单元格而是移动整个页面


一些在使用过程中遇到的问题和解决方法。


1.【ubuntu】右上角时间栏不显示时间

检查系统设置-时间与日期-时钟,发现全是灰色的,不允许修改

解决方法:

安装日期时间指示器:

sudo apt-get install indicator-datetime

发现已经安装过了

如果确认已经安装,重新配置一下:

sudo dpkg-reconfigure --frontend noninteractive tzdata

然后重启Unity:

sudo killall unity-panel-service

时间重新出现在了状态栏

参考:博主abin9630的博客 ubuntu 14.04状态栏不显示时间-abin9630-ChinaUnix博客


2.【ubuntu】中打开网页想复制一些可修改的东西,但是鼠标拉动选中的时候会把文字直接删除

解决方法:

在终端中输入命令:

ibus-setup

将 “在应用程序窗口中启用内嵌编辑模式“ 选项取消

参考:Ubuntu 火狐浏览器中,鼠标选择文字被删除的解决办法_shadow066的专栏-CSDN博客


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

参考:解决ubuntu16.04无法打开网易云音乐_yestin_L的博客-CSDN博客


7.【anaconda】在Anaconda Prompt中不知道怎么切换环境

解决方法:

#启动环境,例如启动tensorflow环境
activate tensorflow

#关闭环境
deactivate

结果如下

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

(tensorflow) C:\Users\zhang>deactivate

(base) C:\Users\zhang>

参考:Win10下用Anaconda安装TensorFlow_Gler.的博客-CSDN博客_tensorflow


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())

参考:解决绘制theano图形时出现的`Runtime Error: Failed to import pydot’错误_yudf2010的专栏-CSDN博客 

填win10下keras可视化工具的坑_Master He的博客-CSDN博客


9.【ubuntu】firefox报错“代理服务器拒绝连接”,但是ping网络ping的通

解决方法:首选项→常规拉到最下面→网络设置→改成不使用代理

参考:关于Ubuntu中Firefox浏览器提示“代理服务器拒绝连接”的解决办法_ahtamjan111的博客-CSDN博客_ubuntu代理服务器拒绝连接


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')

参考:解决UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 in position 108: ordinal not in range(128_mindmb的专栏-CSDN博客


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

解决方法:将\换为/

参考:在使用python语言的open函数时,提示错误OSError: [Errno 22] Invalid argument: ‘文件路径’_清风不识字12138的博客-CSDN博客_oserror


12.【python】读取文件时报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 8: illegal multibyte sequence

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

参考:python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence - 梦雨情殇 - 博客园


13.【python】报错:ModuleNotFoundError: No module named 'sklearn.cross_validation'

解决方法:改为 from sklearn.model_selection import train_test_split 

参考:ModuleNotFoundError: No module named 'sklearn.cross_validation'_不服输的南瓜的博客-CSDN博客


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根据实际报错修改

参考:Xubuntu15.04更新系统源时出现错误提示W: GPG 错误:http://archive.ubuntukylin.com:10006 xenial InRelease: 由于没有公钥,无法验证_feelingjun的博客-CSDN博客


15.【ubuntu】报错:W: 仓库 “http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release” 没有 Release 文件。

解决方法:在etc/apt/sources.list.d 目录中删除含fcitx-team的文件

参考:ubuntu 系统出现 仓库 “http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release“ 没有Release文件_小明的专栏-CSDN博客


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

参考:Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known host_去向前方的博客-CSDN博客

18.【git】账户修改密码后git无法提交

解决方法:打开控制面板→用户账户→凭据管理器→Windows凭据,把对应修改过密码的凭据编辑一下改成新密码即可。

参考:为什么更换git账号后,用git提交成功却用git进行推送会失败_懒惰的小妖-CSDN博客

19.【arduino】arduino烧录报错:avrdude: stk500_recv(): programmer is not responding

解决方法:拔掉所有外接设备,选择正确的板子型号和COM口

参考:【菜鸟求助】程序烧录失败:avrdude: stk500_getsync(): not in sync: resp=0x00 - 求助区 - 极客工坊 - Powered by Discuz!

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个字符处多了个空格,删除即可。

参考:ROS入门之hello world编译与执行错误_QTVLC的博客-CSDN博客

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/ ../

24.【git】更新代码时遇到ssl验证错误

zjl@zjl-X550ZE:~/blackTornadoRobot_arduinoDUE$ git pull origin master
fatal: unable to access 'https://code.corvin.cn:3000/corvin_zhang/blackTornadoRobot_arduinoDUE.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

解决方法:关闭ssl验证

linux下:

export GIT_SSL_NO_VERIFY=1

windows下:

set GIT_SSL_NO_VERIFY=true git clone
git config --global http.sslVerify false

类似问题:

zhangjiali@DESKTOP-KKRBE6K MINGW64 /d/code
$ git clone https://github.com/zhangjiali1201/fdtd_learn.git
Cloning into 'fdtd_learn'...
fatal: unable to access 'https://github.com/zhangjiali1201/fdtd_learn.git/': OpenSSL SSL_read: Connection was reset, errno 10054

解决方法:

env|grep -i proxy

类似问题:

zhang@DESKTOP-DCOBER6 MINGW64 /d/my_own_ducuments (master)
$ git push origin master
fatal: unable to access 'https://github.com/zhangjiali1201/my_own_ducuments.git/': Failed to connect to github.com port 443: Timed out

解决方法:

git config --global -l
env|grep -i proxy

参考:

服务器证书验证失败。CAfile:/etc/ssl/certs/ca-certificates_慕课猿问

执行Git命令时出现各种 SSL certificate problem 的解决办法 - chenzc - 博客园

git clone出现错误 fatal: unable to access ‘https://github.com/...‘的解决办法_呓语声烦的博客-CSDN博客

25.【ros】rosdep报错

zjl@zjl-X550ZE:~$ 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.

解决方法:

sudo gedit /etc/hosts

在末尾添加151.101.84.133  raw.githubusercontent.com

参考:

sudo rosdep init ERROR: cannot download default sources list from:【closed】_昔风不起,唯有努力生存!-CSDN博客

26.【git】git clone报错:server certificate verification failed. CAfile: none CRLfile: none

解决方法:

git config --global http.sslverify false

参考:解决server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none_Hepburn_li的博客-CSDN博客

27.【ubuntu】ubuntu下使用Kazam录屏,在windows下无法播放

解决方法:下载HandBrake,对视屏进行解码,即可播放。

参考:Linux之录屏软件kazam使用_ZONGXP的博客-CSDN博客_kazam录屏黑屏

28.【git】创建ssh key失败

无法生成,只显示>

解决方法:不要直接复制,复制的双引号不一定正确,且C和邮箱间不要有空格。

ssh-keygen -t rsa -C"zjl1201@shu.edu.cn"

29.【git】设置ssh key以后pull push还是需要输入密码

解决方法:将https切换为ssh

git remote remove origin
git remote add origin git@github.com:Username/Your_Repo_Name.git
git branch --set-upstream-to=origin/master master

如果遇到报错error: the requested upstream branch 'origin/master' does not exist

git pull origin master --allow-unrelated-histories
git branch --set-upstream-to=origin/master master

参考:设置ssh key后push为什么还要输入用户名和密码_weixin_30301183的博客-CSDN博客

解决"requested upstream branch 'origin/master' does not exist"_jack22001的博客-CSDN博客

30.【excel】方向键不能移动单元格而是移动整个页面

解决方法:关闭scroll lock,若电脑无该键,尝试fn+c

31.【python】格式报错:SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

解决方法:在windows系统当中读取文件路径可以使用\,但是在python字符串中\有转义的含义,因此不可直接使用\。可在最前面加上r保持字符原始值,也可以将\换为\\或/

参考:运行python文件报SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: tr_xd060606的博客-CSDN博客

32.【git】提交大文件报错client_loop: send disconnect: Connection reset by peer fatal: sha1 file '<st...

解决方法:

git config --global http.postBuffer 157286400

参考:

解决git clone时client_loop: send disconnect: Connection reset by peer/s错误_explore_inload的博客-CSDN博客

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhangjiali12011

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值