I am trying to install Rstudio in my linux mint 17.1 using software package manager.

I tried the following way which is given by this link. But I am getting the following error.

E: Malformed line 2 in source list /etc/apt/sources.list (dist)

E: The list of sources could not be read.

My Screen shot is here.. enter image description here

I need to add the correct repository in the gedit for the latest version of R(full software with packages or libraries)..

  • I'm not sure that apt-get is able to read a .git repo.
    – Mathieu
    Dec 4, 2015 at 9:49
  • how we can check that???@purplepsycho
    – David
    Dec 4, 2015 at 10:46
  • don't post screenshots. they're unreadable. cat the text files and copy-paste the text. that's readable on any screen, at the viewer's preferred font size.
    – cas
    Dec 4, 2015 at 11:37

1 Answer 1


apt is a tool to install software from apt-get repositories. I think that you confuse (mix up?) different kinds of repo (because git works also with repo, but it's another subject).

First, you will have to fix your sources.list file, ie remove the .git line you added.

After that, you may follow this tutorial: http://www.thertrader.com/2014/09/22/installing-rrstudio-on-ubuntu-14-04/ that describes what i think you want to do.

  • david@david-Lenovo-B460e ~ $ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 [sudo] password for david: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.U9IVJfYH5F --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 usage: gpg [options] [filename] david@david-Lenovo-B460e ~ $ sudo add-apt-repository ‘deb star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu trusty/’
    – David
    Dec 5, 2015 at 4:02
  • with the help of the link you have given, I did the above and its giving these messages..@purplepsycho
    – David
    Dec 5, 2015 at 4:03
  • I dont know whether this is working propertly or not..
    – David
    Dec 5, 2015 at 4:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .