Getting errors on WSL trying to install from ppa:avsm/ppa

Hi,

I’m trying to install OCaml on Windows Subsystem for Linux following the instructions on the homepage for Ubuntu. I’m getting the following error:

W: The repository 'http://ppa.launchpad.net/avsm/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/avsm/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Has anyone gotten anything like this?

Installing Ocaml+Opam on WSL from this instruction, works:


Success is limited to Ocaml and Opam though.

Thanks, I made a note of what worked for me at https://github.com/reasonml/reasonml.github.io/issues/195#issuecomment-335048937

Anil Madhavapeddy, the author of “avsm/ppa” told me:

“The good news is that the PPA is no longer necessary, as Ubuntu 16.04 ships with the latest packages.
Have you tried simply apt install opam to get started on WSL?”

Which means, this PPA is outdated and shouldn’t be used anymore!

Ah I see, which means http://ocaml.org/docs/install.html#Ubuntu also needs to be updated :slight_smile:

2 Likes

I installed opam through apt on WSL2 earlier this year. The ppa from avsm is still included in the defualt installation.

This ppa gave me a 404 error as above when using “apt --update”.

The ppa should be removed from install opam if it is outdated