[GH-ISSUE #188] update-ca-certificates not found on Debian sid #118

Closed
opened 2026-02-25 22:32:39 +03:00 by kerem · 1 comment
Owner

Originally created by @paolieri on GitHub (Aug 14, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/188

By default, /usr/sbin is not on PATH for non-root users in Debian sid.

So, binaryExists("update-ca-certificates") returns false at:
https://github.com/FiloSottile/mkcert/blob/master/truststore_linux.go#L49
and mkcert fails to install in the system store (Installing to the system store is not yet supported on this Linux).

Simply running

PATH=$PATH:/usr/sbin mkcert -install

solves the issue, but it would be nice if mkcert could temporarily add /usr/sbin to PATH or search in it explicitly.

Originally created by @paolieri on GitHub (Aug 14, 2019). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/188 By default, `/usr/sbin` is not on `PATH` for non-root users in Debian `sid`. So, `binaryExists("update-ca-certificates")` returns `false` at: https://github.com/FiloSottile/mkcert/blob/master/truststore_linux.go#L49 and `mkcert` fails to install in the system store (`Installing to the system store is not yet supported on this Linux`). Simply running ``` PATH=$PATH:/usr/sbin mkcert -install ``` solves the issue, but it would be nice if `mkcert` could temporarily add `/usr/sbin` to `PATH` or search in it explicitly.
kerem closed this issue 2026-02-25 22:32:39 +03:00
Author
Owner

@paolieri commented on GitHub (Aug 16, 2019):

This is even better. Thanks!

<!-- gh-comment-id:522170820 --> @paolieri commented on GitHub (Aug 16, 2019): This is even better. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#118
No description provided.