Search code examples
ocamlopam

opam install error "no solution found"


I came across a bug when installing certain packages using opam.

> opam install foo
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting

Solution

  • According to particular form of the error message I read you are using the opam v1.2 internal solver (which you can confirm via opam config report). This solver is no longer able to cope with the repository.

    Either install an external solver, see here or switch to opam v2 (currently in rc) which bundles a decent solver.