To install OPAM (with ocaml already installed) I followed this guide: https://github.com/realworldocaml/book/wiki/Installation-Instructions. Here are the steps I made to install OPAM
$ sudo add-apt-repository ppa:avsm/ppa
$ sudo apt-get update
$ sudo apt-get install curl build-essential m4 ocaml opam
$ opam init (and choose yes)
$ eval `opam config env`
$ opam switch 4.02.3
Whenever I try to install any package (like utop) I get this error:
Fatal error:
# opam-version 1.2.2
# os linux
Cannot remove /home/leonard/.opam/archives/camomile.0.8.5+opam.tar.gz (# opam-version 1.2.2
# os linux
opam: "unlink" failed on /home/leonard/.opam/archives/camomile.0.8.5+opam.tar.gz: Permission denied).
Any ideas on what I did wrong?