I am trying to install R programming language and able to install rbase using this code without adding repository in *source.list*
sudo apt-get install r-base After that i tried to upgrade it using this code sudo add-apt-repository ‘deb http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu/trusty/’ sudo apt-get update sudo apt-get upgrade But when i tried the first code sudo add-apt-repository ‘deb http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu/trusty/’ its giving this error Error: need a single repository as argument -- View this message in context: http://r.789695.n4.nabble.com/Cant-upgrade-R-in-ubuntu-14-04-tp4710885.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.