Logitech G HUB卡在启动界面的解决办法

本文主要给出了任务管理器中 "LGHUB Updater Service" 服务一直卡在“正在启动”阶段的解决办法。转载自https://www.bilibili.com/opus/866065616794026019,留存备用

 

右键 "Windows图标" (开始菜单) 并打开 "Windows PowerShell(管理员) / 命令提示符(管理员) / 终端管理员" (取决于你的 Windows 版本),依次逐行执行下列命令:

taskkill /im lghub.exe /f
taskkill /im lghub_agent.exe /f
taskkill /im lghub_updater.exe /f

net stop hns
net start hns

cmd /c start " " "C:\Program Files\LGHUB\lghub_updater.exe"
cmd /c start " " "C:\Program Files\LGHUB\lghub_agent.exe"
cmd /c start " " "C:\Program Files\LGHUB\lghub.exe"

当然你也可以把这些命令保存到一个 ".bat" 批处理文件中,右键以管理员身份运行。

 

其中 "net stop hns" 与 "net start hns" 命令是为了重启 "Host Network Service" 以释放 被 Windows 保留并禁用的 端口。如果你曾尝试手动在任务管理器中启动 "LGHUB Updater Service" 服务,但其一直卡在“正在启动”阶段,此命令可以解决这个问题。你可以通过运行以下命令来验证 "LGHUB Updater Service" 服务所需的 9010 端口是否属于被禁用的端口范围。

netsh interface ipv4 show excludedportrange protocol=tcp

如果重启一次 hns 后仍未释放 9010 端口,请尝试重复执行前述重启 hns 的命令。

PS:如果你预先在 "localhost:9010" 运行一个 HTTP 服务器,便可以主动重现“Logitech G HUB卡在启动界面”的问题。

 

我发现似乎并没有人提及过“Logitech G HUB卡在启动界面”还有可能是因为 9010 端口被占用/禁用而导致的,因此发布此篇专栏以作记录。

 

cut-off

参考资料

  1. 解决Logitech G HUB一直在加载问题 - 哔哩哔哩
  2. 解决Logitech G HUB一直在加载问题 - 知乎:https://zhuanlan.zhihu.com/p/427684138
  3. 罗技G HUB打不开怎么办? - 知乎:https://www.zhihu.com/question/442903732/answer/1809384734
  4. An attempt was made to access a socket in a way forbidden by its access permissions. Why? - Stack Overflow:https://stackoverflow.com/a/69173236
  5. 罗技GHub驱动长时间加载/初始化 - 哔哩哔哩
  6. G HUB 安装/卸载/更新故障排除 – Logitech 支持:https://support.logi.com/hc/zh-cn/articles/360023192454

补充说明

出于兼容 CMD 和 PowerShell 的考虑,上文复杂化了部分命令,对应的 CMD 命令为

net stop hns && net start hns
start "" "C:\Program Files\LGHUB\lghub_updater.exe"
start "" "C:\Program Files\LGHUB\lghub_agent.exe"
start "" "C:\Program Files\LGHUB\lghub.exe"

对应的 PowerShell 命令为

net stop hns; if ($?) { net start hns }
start "C:\Program Files\LGHUB\lghub_updater.exe"
start "C:\Program Files\LGHUB\lghub_agent.exe"
start "C:\Program Files\LGHUB\lghub.exe"
posted @ 2025-07-01 09:04  Texley  阅读(36)  评论(0)    收藏  举报