I'm on Ubuntu 16.04. Let's take a step back and start by installing OPAM:
$ sudo apt update && sudo apt install opam $ opam --version 1.2.2 $ opam init
Then you can switch from the old version of OCaml Ubuntu to a newer one. This step is optional and takes about 10 minutes.
$ opam switch 4.04.1 $ eval `opam config env` $ ocamlc -version 4.04.1
Now add the following repository to be able to install math-comp:
$ opam repo add coq-released https:
And finally, install ssreflect:
$ opam install coq-mathcomp-ssreflect
OPAM will detect dependencies (including Coq), download and install what we set!
source share