ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.23k stars 351 forks source link

Permission Denied error #5585

Closed sixilli closed 11 months ago

sixilli commented 1 year ago

I've ran into this issue on fresh installs in WSL, Ubuntu Hyper-V and now Endeavour OS (arch). WSL and Hyper-V I never managed to get working. Things were working fine in Endeavour OS, but after rebooting I'm getting this error again. In Ubuntu the error was the same except that path was /var/lib/git Any help would be greatly appreciated. I followed the instructions here for all of the installs. https://ocaml.org/docs/up-and-running

report

# opam config report
# opam-version         2.1.4 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=endeavouros os-version=rolling
# solver               builtin-mccs+glpk
# install-criteria     -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed
# upgrade-criteria     -removed,-count[avoid-version,changed],-count[version-lag,solution],-count[missing-depexts,changed],-new
# jobs                 11
# repositories         1 (http) (default repo at 7b30d632)
# pinned               0
# current-switch       /home/daoko/projects/ocaml/dream
# read-state           /usr/bin/opam: "create_process" failed on /var/lib/pacman: Permission denied
opam install ocaml-lsp-server 
Fatal error:
/usr/bin/opam: "create_process" failed on /var/lib/pacman: Permission denied
rjbou commented 1 year ago

Is /var/lib/pacman a directory?

sixilli commented 1 year ago

@rjbou Yes it is

rjbou commented 1 year ago

This should be then fixed by #5606

rjbou commented 1 year ago

To be sure, is /var/lib/ in your PATH?