Dan Davison
2005-Oct-12 21:04 UTC
[R] How to install R 2.2.0 Debian 'unstable' package in otherwise 'sarge' system
I would like to install the latest version of R (the statistical computing software). This is package r-base version 2.2.0 and is in the debian 'unstable' repository. Otherwise my system has 'sarge' packages, including r-base 2.1.0. What is the best way to do this? If I don't want to upgrade to unstable, must I compile R myself, or is there some way to install this as a debian package? I have tried: (i) pointing /etc/apt/sources.list at unstable, apt-get updating and then apt-get install r-base. This results in [... full output at bottom of email ...] E: This installation run will require temporarily removing the essential package e2fsprogs due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option. E: Internal Error, Could not early remove e2fsprogs which scares me into desisting with this course of action. (ii) apt-get install -t unstable r-base, but it replies that r-base is already the newest version. Have I not invoked this command correctly, or does the -t switch not do what I was thinking it did? Thanks very much for any help, Dan dd:/home/dan# apt-get install r-base Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: e2fslibs e2fsprogs gcc-3.4-base libblkid1 libc6 libc6-dev libg2c0 libgcc1 libss2 libuuid1 locales r-base-core r-base-dev r-recommended Suggested packages: gpart parted e2fsck-static glibc-doc ess libpaper-utils The following NEW packages will be installed: e2fslibs gcc-3.4-base libblkid1 libss2 libuuid1 The following packages will be upgraded: e2fsprogs libc6 libc6-dev libg2c0 libgcc1 locales r-base r-base-core r-base-dev r-recommended 10 upgraded, 5 newly installed, 0 to remove and 536 not upgraded. Need to get 0B/21.4MB of archives. After unpacking 5886kB of additional disk space will be used. Do you want to continue? [Y/n] Y E: This installation run will require temporarily removing the essential package e2fsprogs due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option. E: Internal Error, Could not early remove e2fsprogs
Christian T. Steigies
2005-Oct-12 21:41 UTC
[R] How to install R 2.2.0 Debian 'unstable' package in otherwise 'sarge' system
On Wed, Oct 12, 2005 at 04:04:50PM -0500, Dan Davison wrote:> I would like to install the latest version of R (the statistical computing > software). This is package r-base version 2.2.0 and is in the debian > 'unstable' repository. Otherwise my system has 'sarge' packages, including > r-base 2.1.0. What is the best way to do this? If I don't want to upgrade > to unstable, must I compile R myself, or is there some way to install this > as a debian package?http://cran.r-project.org/doc/FAQ/R-FAQ.html#Are-there-Unix-binaries-for-R_003f I haven't build 2.2.0 yet, but I will probably do it next weekend. R 2.1.1 is available and you should be able to install it without too many problems (you might have to remove a lot of r-cran packages which I all put into the r-recommended package for the backport, I'll try to fix that for the next version). Christian
Dirk Eddelbuettel
2005-Oct-12 22:03 UTC
[R] How to install R 2.2.0 Debian 'unstable' package in otherwise 'sarge' system
Dan, First off, there is even a r-sig-debian list in the universe of R mailing lists (c.f. the R FAQ). That probably provides a more focused readership than the union of r-help (where many won't know Debian) and debian-user (where many won't know R). On Wed, Oct 12, 2005 at 04:04:50PM -0500, Dan Davison wrote:> I would like to install the latest version of R (the statistical computing > software). This is package r-base version 2.2.0 and is in the debian > 'unstable' repository. Otherwise my system has 'sarge' packages, including > r-base 2.1.0. What is the best way to do this?Short answers: i) In general, and especially between 'testing' and 'unstable', use apt-pinning, explained in the apt-howto packages, esp apt-howto-en for English; and on various places across the Net; try Google'ing for apt-pinning. That way you get the option of installing selected parts of unstable without being forced to upgrade wholesale. Myself and countless other have used this for years between testing and unstable. However, I am not so sure how well it works between stable and unstable. It may work now as stable is fairly recent, but may fail further down the road. ii) In this particular case, and as explained in the R FAQ, the CRAN archives have an apt-get'able section for Debian stable. However, Christian, the (CC'ed) maintainer of this backport was traveling between conferences in the US and has not yet provided R 2.2.0 (which was released less than a week ago, after all). It should appear shortly.> to unstable, must I compile R myself, or is there some way to install this > as a debian package?You can also recompile locally using one of two ways: iii) as a local Debian package, and apt-get source makes that almost automatic (provided you have source URIs in /etc/apt/sources.list, and that the Build-Depends are actually satisfiable under Debian stable), or iv) as non-Debian compile into /usr/local If you're in a hurry, iv) is your way. If you're intrigued by iii), try it. If you can wait a few days, ii) is probably your best bet.> I have tried: > > (i) pointing /etc/apt/sources.list at unstable, apt-get updating and then > apt-get install r-base. This results in > > [... full output at bottom of email ...] > > E: This installation run will require temporarily removing the essential > package e2fsprogs due to a Conflicts/Pre-Depends loop. This is often bad, > but if you really want to do it, activate the APT::Force-LoopBreak option. > E: Internal Error, Could not early remove e2fsprogs > > which scares me into desisting with this course of action.I'd agree. Don't force things against warnings like this.> (ii) apt-get install -t unstable r-base, but it replies that > r-base is already the newest version. Have I not invoked this command > correctly, or does the -t switch not do what I was thinking it did?Did you run 'apt-get update' after altering /etc/apt/sources.list ? Try 'apt-cache policy r-base-core' which will tell you about the versions it knows, where they are from, and how they are prioritized (aka "pinned").> Thanks very much for any help,Pleasure. Let me know in private mail if this is clear enough, and we could even follow up on a local phone call. Greetings from across town to Hyde Park, Dirk> > Dan > > > dd:/home/dan# apt-get install r-base > Reading Package Lists... Done > Building Dependency Tree... Done > The following extra packages will be installed: > e2fslibs e2fsprogs gcc-3.4-base libblkid1 libc6 libc6-dev libg2c0 > libgcc1 libss2 > libuuid1 locales r-base-core r-base-dev r-recommended > Suggested packages: > gpart parted e2fsck-static glibc-doc ess libpaper-utils > The following NEW packages will be installed: > e2fslibs gcc-3.4-base libblkid1 libss2 libuuid1 > The following packages will be upgraded: > e2fsprogs libc6 libc6-dev libg2c0 libgcc1 locales r-base r-base-core > r-base-dev > r-recommended > 10 upgraded, 5 newly installed, 0 to remove and 536 not upgraded. > Need to get 0B/21.4MB of archives. > After unpacking 5886kB of additional disk space will be used. > Do you want to continue? [Y/n] Y > E: This installation run will require temporarily removing the essential > package e2fsprogs due to a Conflicts/Pre-Depends loop. This is often bad, > but if you really want to do it, activate the APT::Force-LoopBreak option. > E: Internal Error, Could not early remove e2fsprogs > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- Statistics: The (futile) attempt to offer certainty about uncertainty. -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'
Kjetil Kjernsmo
2005-Oct-12 22:06 UTC
[R] How to install R 2.2.0 Debian 'unstable' package in otherwise 'sarge' system
On onsdag 12 oktober 2005, 23:04, Dan Davison wrote:> What is the best way to do this? If I don't want to upgrade > to unstable, must I compile R myself, or is there some way to install > this as a debian package?Then, I'd recommend using the R's own backports, this line would probably do the trick: deb http://cran.us.r-project.org/bin/linux/debian stable/ and allthough it isn't there yet, it'll probably be there soon. However, I played with apt-build the other day, and produced my own build. It was quite fun, so reading up on apt-build can be a nice exercise. Cheers, Kjetil -- Kjetil Kjernsmo Programmer / Astrophysicist / Ski-orienteer / Orienteer / Mountaineer kjetil at kjernsmo.net Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC
Apparently Analagous Threads
- Re: Bug#213857: r-base-core: xfig plot fails with invalid line type (PR#4401)
- errors upgrading to 2.4.1-1~sargecran1
- mixed model for Splus and R
- compiling R-2.9.2 or R-2.10.0 on ubuntu 9.04 (powerpc)
- Re: Bug#213857: r-base-core: xfig plot fails with invalid line type (PR#4401)