You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Crostini环境下VSCode GitHub登录令牌设置失败问题

ChromeOS Crostini环境下VSCode GitHub同步令牌存储失败问题

在Arm64架构的华硕Chromebook Detachable CM3 CM3000的Crostini(Debian GNU/Linux 11 bullseye)环境中,安装Arm64版本VSCode及Gnome-keyring后,尝试通过GitHub账号同步设置时出现异常:登录过程显示令牌交换成功,但存储令牌失败,退出VSCode后GitHub账号会自动登出,重启设备需要重新登录。

日志报错信息

2023-03-06 21:24:11.389 [info] 登录请求的权限范围:user:email
2023-03-06 21:24:11.444 [info] 尝试不使用本地服务器... (user:email)
2023-03-06 21:24:43.733 [info] 正在交换授权码获取令牌...
2023-03-06 21:24:45.587 [info] 令牌交换成功!
2023-03-06 21:24:45.626 [info] 获取用户信息...
2023-03-06 21:24:46.364 [info] 获取账号信息成功!
2023-03-06 21:24:46.376 [info] 正在存储1个会话...
2023-03-06 21:24:47.569 [info] 获取用户信息...
2023-03-06 21:24:47.620 [error] 设置令牌失败:错误:路径 /org/freedesktop/secrets/collection/login 的对象不存在“org.freedesktop.Secret.Collection”接口
2023-03-06 21:24:47.622 [info] 已存储1个会话!

环境配置信息

VSCode版本:1.76.2

版本: 1.76.2
提交: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
日期: 2023-03-14T18:09:59.099Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
操作系统: Linux arm64 5.15.89-16172-g8db7d2810659
沙箱模式: 关闭

系统版本

  • ChromeOS 111.0.5563.71(官方版本)(32位)
  • Crostini环境:Debian GNU/Linux 11 (bullseye)
Linux penguin 5.15.89-16172-g8db7d2810659 #1 SMP PREEMPT Mon Mar 6 18:42:56 PST 2023 aarch64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

已知异常细节

  • 已安装Gnome-keyring
  • ~/.local/share/keyrings目录已存在
  • 通过seahorse查看无任何密钥环存储
  • 认证时未弹出保存密钥环密码的对话框
  • URL处理图标持续处于加载状态,需重启Chromebook才会消失
  • 尝试用seahorse创建密码密钥环失败,报错:
No such secret collection at path: /

内容的提问来源于stack exchange,提问作者gimlet

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.27 19:08:25