* [Caml-list] opam corrupted my sources.list. @ 2016-12-18 3:01 Hendrik Boom 2016-12-18 4:42 ` Gabriel Scherer 2016-12-18 17:04 ` Xavier Leroy 0 siblings, 2 replies; 4+ messages in thread From: Hendrik Boom @ 2016-12-18 3:01 UTC (permalink / raw) To: caml-list Well, technically, it was the directory /etc/apt/sources.list.d that got an unwanted file: opam.list and I'm guessing that it was opam from the name of that file. It contained the line: deb http://download.opensuse.org/repositories/home:/ocaml/Debian_7.0/ / This caused havoc with my system because I am *not* running Debian or suse, but devuan, a Debian derivative, and I am now stuck with aptitude tring to install a *huge* collection of unwanted and inconsistent packages because the dependencies in my system are different from those in the openuse repository. I am still unable to use aptitude to do routine upgrades. Why does opam do this? And, is it indeed opam? Perhaps devuan needs to do something special with ocaml-related packages, but until I know what's happening and why it's hard to know where to start. -- hendrik ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] opam corrupted my sources.list. 2016-12-18 3:01 [Caml-list] opam corrupted my sources.list Hendrik Boom @ 2016-12-18 4:42 ` Gabriel Scherer 2016-12-18 16:38 ` Hendrik Boom 2016-12-18 17:04 ` Xavier Leroy 1 sibling, 1 reply; 4+ messages in thread From: Gabriel Scherer @ 2016-12-18 4:42 UTC (permalink / raw) To: Hendrik Boom; +Cc: caml users This is not related to opam. It is a repository of Debian-style packages visibly intended for Ubuntu users, authored by Anil Madhavapeddy who hosted then on opensuse repositories. My guess is that you enabled this repository manually to get 4.02.1 OCaml packages at a time where they were not yet packaged in your official Debian repository. The best way to setup an OCaml *development environment* today is to install opam (either through your distribution package manager, as a binary, or from sources built from a distribution-packaged OCaml version), and then install ocaml-$version switches in opam. (For end-user packages written in OCaml, distribution packages are still very important.) On Sat, Dec 17, 2016 at 10:01 PM, Hendrik Boom <hendrik@topoi.pooq.com> wrote: > Well, technically, it was the directory /etc/apt/sources.list.d that > got an unwanted file: > > opam.list > > and I'm guessing that it was opam from the name of that file. > > It contained the line: > > deb http://download.opensuse.org/repositories/home:/ocaml/Debian_7.0/ / > > This caused havoc with my system because I am *not* running Debian or > suse, but devuan, a Debian derivative, and I am now stuck with > aptitude tring to install a *huge* collection of unwanted and > inconsistent packages because the dependencies in my system are > different from those in the openuse repository. > > I am still unable to use aptitude to do routine upgrades. > > Why does opam do this? And, is it indeed opam? > > Perhaps devuan needs to do something special with ocaml-related > packages, but until I know what's happening and why it's hard to know > where to start. > > -- hendrik > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] opam corrupted my sources.list. 2016-12-18 4:42 ` Gabriel Scherer @ 2016-12-18 16:38 ` Hendrik Boom 0 siblings, 0 replies; 4+ messages in thread From: Hendrik Boom @ 2016-12-18 16:38 UTC (permalink / raw) To: caml users On Sat, Dec 17, 2016 at 11:42:08PM -0500, Gabriel Scherer wrote: > This is not related to opam. It would surprise me if it were. In fact, it did surprise me to think it did. > It is a repository of Debian-style > packages visibly intended for Ubuntu users, authored by Anil > Madhavapeddy who hosted then on opensuse repositories. My guess is > that you enabled this repository manually to get 4.02.1 OCaml packages > at a time where they were not yet packaged in your official Debian > repository. I have never created a file in /etc/apt/sources.list.d myself. The only file near there I have edited is /etc/apt/sources.list itself. Then some other action must have done this on my behalf, apparntly not opam. I installed opam from the proper devuan repository. So I have to conclude that I just do not know why the corruption happened. Too bad. Wild speculation: Could Debian have just taken over the packages in that repository on opensuse, and then devuan got it from Debian? That would be surprising, but it is at least plausible. -- hendrik > > The best way to setup an OCaml *development environment* today is to > install opam (either through your distribution package manager, as a > binary, or from sources built from a distribution-packaged OCaml > version), and then install ocaml-$version switches in opam. (For > end-user packages written in OCaml, distribution packages are still > very important.) > > On Sat, Dec 17, 2016 at 10:01 PM, Hendrik Boom <hendrik@topoi.pooq.com> wrote: > > Well, technically, it was the directory /etc/apt/sources.list.d that > > got an unwanted file: > > > > opam.list > > > > and I'm guessing that it was opam from the name of that file. > > > > It contained the line: > > > > deb http://download.opensuse.org/repositories/home:/ocaml/Debian_7.0/ / > > > > This caused havoc with my system because I am *not* running Debian or > > suse, but devuan, a Debian derivative, and I am now stuck with > > aptitude tring to install a *huge* collection of unwanted and > > inconsistent packages because the dependencies in my system are > > different from those in the openuse repository. > > > > I am still unable to use aptitude to do routine upgrades. > > > > Why does opam do this? And, is it indeed opam? > > > > Perhaps devuan needs to do something special with ocaml-related > > packages, but until I know what's happening and why it's hard to know > > where to start. > > > > -- hendrik > > > > > > -- > > Caml-list mailing list. Subscription management and archives: > > https://sympa.inria.fr/sympa/arc/caml-list > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] opam corrupted my sources.list. 2016-12-18 3:01 [Caml-list] opam corrupted my sources.list Hendrik Boom 2016-12-18 4:42 ` Gabriel Scherer @ 2016-12-18 17:04 ` Xavier Leroy 1 sibling, 0 replies; 4+ messages in thread From: Xavier Leroy @ 2016-12-18 17:04 UTC (permalink / raw) To: Hendrik Boom, caml-list On 12/18/2016 04:01 AM, Hendrik Boom wrote: > Well, technically, it was the directory /etc/apt/sources.list.d that > got an unwanted file: > > opam.list > > and I'm guessing that it was opam from the name of that file. > > It contained the line: > > deb http://download.opensuse.org/repositories/home:/ocaml/Debian_7.0/ / Apparently, you, or someone else on your machine, or some script you ran as root, followed the OPAM installation procedure for Debian described here: https://opam.ocaml.org/doc/Install.html#Debian The conclusion is "don't do that if you're not running Debian". There are other ways of installing OPAM, described on this page, that should work with whatever distro you feel like using. At any rate, this has nothing to do with OCaml itself, and not much with OPAM, so let's take this discussion off caml-list. - Xavier Leroy ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-12-18 17:04 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-12-18 3:01 [Caml-list] opam corrupted my sources.list Hendrik Boom 2016-12-18 4:42 ` Gabriel Scherer 2016-12-18 16:38 ` Hendrik Boom 2016-12-18 17:04 ` Xavier Leroy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox