I just did a fresh install of PureOS on a Librem 15, tried installing OPAM with
sudo install opam, seemed to go fine.
Next I run
opam init and tell it to, yes, modify
~/.profile and set up a hook to opam’s init script. Then it says
[ERROR] Solver failed: "/usr/bin/aspcud /tmp/opam-adam-32286/solver-in-32286-2c871f /tmp/opam-adam-32286/solver-out-32286-ad6566 -count(removed),-sum(request,version-lag),-count(down),-sum(solution,version-lag),-count(changed)" exited with code 1 "ERROR: grounder returned with non-zero exit status" Switch initialisation failed:
The only thing I saw relevant to this error was https://github.com/ocaml/opam/issues/3484 which seems to hinge on
aspcud. I checked mine and, after trying to install it, I get the message that it’s already the newest version (1:1.9.4-2).
Apparently that’s not the newest version since there’s mention of a version 2. Not sure if I need to force that newer update or how to do so.
I suppose I should mention that I also installed OPAM on a Linux Mint machine and it went fine, so I’m assuming there’s something about PureOS which accounts for the difference.