docmirror / docmirror/dev-sidecar
Linux 安装根证书时没有权限
Open
@cute-omega is already working on this.
Since Jan 4, 2026.
Bug
Bugfix
known issues
v2.0.2
Waiting for a reply/降级保留issue/inactive
- Dominant language
- JavaScript
- Stars
- 24.1k
- Forks
- 3k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 1
Description
- 你是否在现有 Issue列表 中搜索过相同问题,但未找到?
Ⅰ. 请说明操作系统及DS的版本号:
- 操作系统:Ubuntu 24.04.3
- DS版本号:2.0.1-test
Ⅱ. 问题描述:
在Linux,如果以普通用户身份运行dev-sidecar且没有设置免密sudo的话,安装根证书时就会报错:
Error invoking remote method 'apiInvoke': Error: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: 需要密码
也许可以用 这个库 来弹出一个系统原生窗口并让用户在这里输入自己的密码以获取root权限
如果我有空的话也许我会实现这个功能(系统崩了在重装系统&装环境)
Ⅲ. 期望的结果:
安装根证书时不会报错,可以优雅的获得root权限
Ⅳ. 如何复现问题?
在任意Linux发行版使用未设置免密Sudo的普通用户运行dev-sidecar并安装根证书时(比如在启动台直接启动)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.