I have installed opam 2.1.0 on a Linux Virtualbox VM. When I try opam init
, I get the following error:
<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "default": OpamDownload.Download_fail(_, "Curl
failed: \"/snap/bin/curl --write-out %{http_code}\\\\n --retry 3
--retry-delay 2 --user-agent opam/2.1.0 -L -o
/tmp/opam-32196-d33843/index.tar.gz.part --
https://opam.ocaml.org/index.tar.gz\" exited with code 23")
[ERROR] Initial download of repository failed.
Running with --disable-sandboxing doesn't help. I know that its a problem creating/writing to /tmp/opam-...
directory because if I replace that with my current directory or home directory the command by itself runs fine. It also runs fine with /tmp/opam-...
if I use the --create-dirs option in curl but I don't have any way of getting opam init to use that option. Any ideas?
thanks