Skip to content
Back to formatted view

Raw Message

Message-ID: <17244.50302.26574.933721@mithrandir.hornik.net>
Date: 2005-10-24T11:24:46Z
From: Kurt Hornik
Subject: typo in R FAQ: sources.list entry for debian 'stable' backports
In-Reply-To: <Pine.GSO.4.62.0510151256170.11006@harper.uchicago.edu>

>>>>> Dan Davison writes:

> The R FAQ at 
> http://cran.r-project.org/doc/FAQ/R-FAQ.html#Are-there-Unix-binaries-for-R_003f
> advises the use of the following /etc/apt/sources.list entry

> deb http://cran.R-project.org/bin/linux/debian stable
> .
> I think that this is missing a forward slash after the word 'stable'.

>> From man sources.list:

> [...] distribution can specify an exact path, in which case the components 
> must be omitted and distribution must end with a slash (/) [...]

> And empirically:

> dd:/home/dan# cat /etc/apt/sources.list
> deb http://cran.R-project.org/bin/linux/debian stable
> dd:/home/dan# apt-get update
> E: Malformed line 1 in source list /etc/apt/sources.list (dist parse)

> versus

> dd:/home/dan# cat /etc/apt/sources.list
> deb http://cran.R-project.org/bin/linux/debian stable/

> dd:/home/dan# apt-get update
> Get:1 http://cran.R-project.org stable/ Packages [3155B]
> Get:2 http://cran.R-project.org stable/ Release [71B]
> Fetched 3226B in 0s (5206B/s)
> Reading Package Lists... Done

Dan,

Thanks, fixed.

[Hmm, I thought I had tried this when I added the entry ...]

Best
-k