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.youkuaiyun.com/xiongmingkang/article/details/81325572

曾参考 https://blog.youkuaiyun.com/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.youkuaiyun.com/weixin_37272286/article/details/79897636 https://blog.youkuaiyun.com/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.youkuaiyun.com/u013453604/article/details/47423135

setup.*sh如何改变系统环境变量? https://blog.youkuaiyun.com/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.youkuaiyun.com/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

您可能感兴趣的与本文相关的镜像

Python3.9

Python3.9

Conda
Python

Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值