[R] SOLVED Re: Update R 2.1.1-1 -> 2.2.1 on UBUNTU

Dirk Eddelbuettel edd at debian.org
Thu Mar 2 03:42:35 CET 2006


On 1 March 2006 at 14:56, Florence Débarre wrote:
| > deb http://cran.R-project.org/bin/linux/debian sarge/
| This line "worked", after having typed
| apt-get update
| in a terminal. "worked" means that synaptic didn't crash. But I still
| wasn't able to download the newest version of R.

I suspect that you are still a little overwhelmed by the different package
management tools. I also suspect that you will find that a few minutes
documentation reading will pay off over the long term. There is a lot of
documentation out there, for both Debian and Ubuntu, and either one will

In a nutshell, here is what you need(ed). After adding the correct line from
the R FAQ containing the Debian 'backport' server address to the file
/etc/apt/sources.list, run 
	$ apt-get update
which should run without errors. Then either one of
	$ apt-get dist-upgrade
	$ apt-get upgrade
should see that there is a new r-base package and upgrade for you.

A more isolated approach is to just say
	$ apt-get install r-base-core
which will upgrade just this package, plus its needed dependencies.
| I've done it in a "coarse" way : I've downloaded the .tar file. I had to
| download  ' x-dev ' and  ' xlibs-dev ' from synaptic as well, otherwise
| there was a problem with X when doing ./configure.

Sure, you can't compile when the header files are missing.

| I've then done ./configure ; make  ; make install.
| It now works (still some pbs with pdf, but doen't seem too important)

All that, plus more, would work if you just used (or rebuilt locally, but
that topic is for another day) the Debian package which works fine on Ubuntu.

Hope this helps, Dirk

Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison

More information about the R-help mailing list