Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Linux安装证书失败的避坑 #238

Open
dasferco opened this issue Dec 10, 2022 · 3 comments
Open

Linux安装证书失败的避坑 #238

dasferco opened this issue Dec 10, 2022 · 3 comments
Labels
其他用户可参考 其他用户如果碰到相同问题,可参考issue里的内容。

Comments

@dasferco
Copy link

dasferco commented Dec 10, 2022

提这个 issue 是为了给各位避坑,也是希望作者把这些补充上去。

我在 Linux 下安装证书遇到了这个错误(我用的是 Kubuntu 22.04):

❌ Api invoke error

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: a password is required

我找到的解决方法就是手动添加证书。

  1. 把证书从/home/用户名/.dev-sidecar/dev-sidecar.ca.crt复制到/usr/local/share/ca-certificates/
    终端执行:
cd ~/.dev-sidecar
sudo cp dev-sidecar.ca.crt /usr/local/share/ca-certificates/dev-sidecar.ca.crt
cd # 提醒那些不懂用终端的人再补上一句“cd”
  1. 运行一次 update-ca-certificates。
sudo update-ca-certificates

这样就解决了。(大概是吧?)然后再按 README 的说明对浏览器安装证书。

最后再说一句:这个项目太伟大了。

新手,如有错误还请多多指教。

@cyyispig
Copy link

我也遇到了一样的问题 但是按照你的方法没有解决掉。。

@wangliang181230 wangliang181230 added the 其他用户可参考 其他用户如果碰到相同问题,可参考issue里的内容。 label Mar 27, 2024
@omae11
Copy link

omae11 commented Jan 21, 2025

我安装了连证书都没有是什么情况,我软件也打不开

@Octopus058
Copy link

操作后仍然无法解决

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
其他用户可参考 其他用户如果碰到相同问题,可参考issue里的内容。
Projects
None yet
Development

No branches or pull requests

5 participants