Dan Davison
2005-Oct-15 18:34 UTC
[Rd] typo in R FAQ: sources.list entry for debian 'stable' backports
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 p.s. Thanks for the help I received this week as a result of not reading the FAQ...
Kurt Hornik
2005-Oct-24 11:24 UTC
[R-sig-Debian] [Rd] typo in R FAQ: sources.list entry for debian 'stable' backports
>>>>> 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... DoneDan, Thanks, fixed. [Hmm, I thought I had tried this when I added the entry ...] Best -k