<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ubuntu 22.04 运行 Gazebo 11 启动卡死，报 Waited 11 seconds for namespaces]]></title><description><![CDATA[<p dir="auto">背景：<br />
目前正在 VirtualBox 虚拟机环境下的 Ubuntu 22.04 系统中学习 ROS2 Humble。我需要使用 Gazebo 进行机器人仿真项目，但目前无法成功打开仿真环境。</p>
<p dir="auto">问题描述：<br />
当我尝试在终端运行 gazebo --verbose 时，程序无法进入图形界面，并弹出“Gazebo 无响应”的系统对话框。</p>
<p dir="auto">核心终端报错日志（如附图所示）：</p>
<p dir="auto">[Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" target="_blank" rel="noopener noreferrer nofollow ugc">http://127.0.0.1:11345</a></p>
<p dir="auto">[Msg] Publicized address: 10.0.2.15</p>
<p dir="auto">[Msg] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome.</p>
<p dir="auto">[Wrn] [<a href="http://Server.cc:579" target="_blank" rel="noopener noreferrer nofollow ugc">Server.cc:579</a>] Waited 1seconds for namespaces. (循环 10 次)</p>
<p dir="auto">[Err] [<a href="http://Server.cc:584" target="_blank" rel="noopener noreferrer nofollow ugc">Server.cc:584</a>] Waited 11 seconds for namespaces. Giving up.</p>
<p dir="auto">[Err] [<a href="http://Node.cc:118" target="_blank" rel="noopener noreferrer nofollow ugc">Node.cc:118</a>] No namespaces found</p>
<p dir="auto">具体细节和上下文：<br />
软件版本：Gazebo 11.10.2 / ROS2 Humble。</p>
<p dir="auto">硬件环境：VirtualBox 虚拟机，已分配足够的内存和 CPU 核心。</p>
<p dir="auto">网络情况：ping localhost 正常。</p>
<p dir="auto">特殊现象：Gazebo 窗口虽能弹出黑框，但立即卡死并提示无响应。日志显示它虽然连上了 127.0.0.1，但公布的地址（Publicized address）是虚拟机的 NAT 地址 10.0.2.15。</p>
<p dir="auto">尝试过的解决方法：<br />
执行过 killall -9 gzserver gzclient 清理进程。</p>
<p dir="auto">清理过 ~/.gazebo/log/* 路径下的日志文件。</p>
<p dir="auto">尝试过 unset 相关的环境变量。</p>
<p dir="auto">目前的困境：无论如何设置 IP 环境变量，依然卡在命名空间（namespaces）等待环节。<img src="/forum/assets/uploads/files/1777639222992-ba3f1e80-ebcb-42b7-b6b2-6072f26c49ea-e3c4c19cac3b12ac5e16992d26effd7e-resized.png" alt="ba3f1e80-ebcb-42b7-b6b2-6072f26c49ea-E3C4C19CAC3B12AC5E16992D26EFFD7E.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://fishros.org.cn/forum/topic/4768/ubuntu-22-04-运行-gazebo-11-启动卡死-报-waited-11-seconds-for-namespaces</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 14:48:02 GMT</lastBuildDate><atom:link href="https://fishros.org.cn/forum/topic/4768.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 May 2026 14:07:19 GMT</pubDate><ttl>60</ttl></channel></rss>