I'm attempting to install the latest version of R (currently on v 3.0.2) on Ubuntu Server 14.04, and as suggested by this post I've edited the /etc/apt/sources.list to include the following line:
deb http://cran.rstudio.com/bin/linux/ubuntu trusty universe
When I try to update the list of packages though, I get the following error
Err http://cran.rstudio.com trusty/universe amd64 Packages
404 Not Found
Err http://cran.rstudio.com trusty/universe i386 Packages
404 Not Found
W: Failed to fetch http://cran.rstudio.com/bin/linux/ubuntu/dists/trusty/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://cran.rstudio.com/bin/linux/ubuntu/dists/trusty/universe/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
If I add a trailing forward slash to trusty, or remove universe in keeping with this format as shown below:
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
I get
E: Malformed line 49 in source list /etc/apt/sources.list (absolute dist)
E: The list of sources could not be read.
I thought maybe when apt-get upgrade accesses the sources.list it may be misformatting the url for the CRAN repository, because including /dists/trusty/universe/ doesn't seem right to me, but I don't know if that is the actual issue, or what to do about it.