我遵循这个例子:https://developer.ubuntu.com/en/snappy/build-apps/ros-snap/
该程序与 roslaunch 配合良好,我能够创建并安装 snap。但是,运行 snap 时我收到此消息。在 + 下,CTRL程序C重新启动并最终出现相同的错误。重新启动 - 错误 - 重新启动 - 错误等等。
SUMMARY
========
PARAMETERS
* /rosdistro: indigo
* /rosversion: 1.11.20
NODES
/
listener (listener/listener_node)
talker (talker/talker_node)
auto-starting new master
process[master]: started with pid [10106]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to e9e6e48a-4452-11e6-aa90-26946bd3aee5
process[rosout-1]: started with pid [10119]
started core service [/rosout]
process[talker-2]: started with pid [10122]
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
process[listener-3]: started with pid [10124]
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
答案1
这是一个已知的 snapcraft 错误这是由于已知的 snapd bug快照无法使用语言环境。该快照错误已经存在很长时间了,可能是时候在 snapcraft 示例中通过将语言环境设置为 C.UTF-8 来解决它了。我会处理这个问题。
更新:这是临时修复:https://github.com/snapcore/snapcraft/pull/497
更新:此修复程序现已在 snapcraft 中可用。