Ubuntu-ROS中出现的错误

环境:Ubuntu14.04,ROS Indigo

python-catkin-pkg-modules、python-catkin-pkg包无法安装

sudo apt-get install python-catkin-tools 时出现如下错误:
dpkg-deb:错误:归档 /var/cache/apt/archives/python-catkin-pkg-modules_0.4.11-1_all.deb 含有不合时宜的成员

以下的包无法安装:
/var/cache/apt/archives/python-catkin-pkg-modules_0.4.11-1_all.deb
/var/cache/apt/archives/python-catkin-pkg_0.4.11-100_all.deb
/var/cache/apt/archives/python-rosdistro-modules_0.7.3-1_all.deb
/var/cache/apt/archives/python-rosdistro_0.7.3-100_all.deb
/var/cache/apt/archives/python-rosdep_0.15.1-1_all.deb
/var/cache/apt/archives/python-rosinstall-generator_0.1.16-1_all.deb
解决:
sudo apt-get update
sudo apt-get upgrade
可能只与“Debian package management system”的更新有关–From https://blog.csdn.net/xiongmingkang/article/details/81325572

曾参考 https://blog.csdn.net/qq_35904625/article/details/81266079
尝试:gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
结果:权限不够

曾参考 https://www.cnblogs.com/darklights/p/10542482.html
其解决策:sudo dpkg -i --force-overwrite /var/cache/apt/archives/python-rospkg-modules_1.1.7-1_all.deb
sudo apt-get -f install
根据:https://askubuntu.com/questions/148383/how-to-resolve-dpkg-error-processing-var-cache-apt-archives-python-apport-2-0/266912
结果:未尝试

Ubuntu更新时,boot空间不足

参考 https://blog.csdn.net/weixin_37272286/article/details/79897636 https://blog.csdn.net/forever__1234/article/details/80447834
结果:未解决问题

多工作空间的环境变量设置问题(.bashrc)

起因:
ROS每次执行命令都只能在一个工作空间中进行,连续运行多条source语句只有最后一条是有效的。
解决:
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/siat/catkin_ws2/src:/home/siat/catkin_ws3/src
export语句要放到source语句的后面
From https://blog.csdn.net/u013453604/article/details/47423135

setup.*sh如何改变系统环境变量? https://blog.csdn.net/kunLiu2011/article/details/61914971 devel下所有setup文件(setup.*sh)最后都指向setup.sh;–extend: skips the undoing of changes from a previously sourced setup file;ROS_PACKAGE_PATH变量中的多个目录是有先后顺序的;多工作空间配置问题
setup.bash解析 https://blog.csdn.net/robinhjwy/article/details/79597095 多工作空间串扰问题

http://answers.ros.org/question/205976/sourcing-from-multiple-workspaces/ You can also pass the --extend argument to the setup.bash file and it will only add to the environment rather than set the environment. This can be dangerous though.

https://stackoverflow.com/questions/31512079/setting-up-ros-catkin-rosbuild
It is possible to use multiple workspaces by sourcing the first one as usual and the following ones with the --extend flag. This worked for me with multiple catkin workspaces. Not sure if it will also work with a mixture of catkin and rosbuild but at least it is worth a try:
 source ~/rosbuild_ws/setup.bash
 source ~/catkin_ws/devel/setup.bash --extend

你可能感兴趣的:(ROS,操作系统,错误解析)