The former state can be restored with: opam switch import "/builds/iris/iron/opamroot/ocaml-base-compiler.4.07.0/.opam-switch/backup/state-20190201141513.export" Or you can retry to install your package selection with: opam install --restore ERROR: Job failed: exit code 1