1. apt-get update出现错误
1)改了源 https://blog.csdn.net/Coderii/article/details/87738211
2)把其他网址都勾掉
2. 安装ros报错 ImportError: No module named ‘rosdep2’
解决办法:https://blog.csdn.net/p942005405/article/details/87977665
3. 使用kitti2bag的坑:
“You are using pip version 8.1.1, however version 20.0.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.”
但在安装pip也遇坑
a) 安装/更新pip的坑 ImportError: No module named _internal.cli.main
解决办法: https://blog.csdn.net/chunqibei7908/article/details/100900448
解决pip,又报错“ImportError: No module named progressbar”
b) 安装progressbar
python -m pip install progressbar
至此成功使用kitti2bag
4. 编译 package 出现关于 pcl_cinversions 的坑,如图:
解决办法:
sudo apt-get install ros-kinetic-navigation
参考:link
5. ubuntu 切换 python 版本
1)查看 python 版本:
python --version
2)编辑路径文件:
vim ~/.bashrc
3)添加命令,将 python3.5 的别名改为 python:
wangmuyuan@pc:~$ echo alias python=python3 >> ~/.bashrc
4)更新环境配置:
wangmuyuan@pc:~$ source ~/.bashrc
5)再次查看 python 版本,已更改完毕
6)若想切换回 python2.7,将文件中添加的那句改别名的代码注释掉就可以
参考: Ubuntu16.04系统查看已安装的python版本,及Python2与Python3之间切换.
6. sudo apt-get update 报错
报错内容:
W: GPG error: http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2E30EE6263DE9CD4
解决办法:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2E30EE6263DE9CD4
参考:link.
7. 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.
解决办法:
打开hosts文件
sudo gedit /etc/hosts
在文件末尾添加
151.101.84.133 raw.githubusercontent.com
参考:link.