1

I am following this great guide for installing RStudio on a Chromebook using Linux (beta). I am using a 2017 Samsung Chromebook 3 (XE500C13K). After appending the /etc/apt/sources.list file with deb https://cran.rstudio.com/bin/linux/debian stretch-cran35 I receive the following error when running sudo apt update :

E: Malformed entry 3 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

What can I do to trouble shoot this?

talker90
  • 35
  • 1
  • 1
  • 4

1 Answers1

2

A / is missing in your sources.list. @steeldriver comment:

It likely should be stretch-cran35/

Edit your /etc/apt/sources.list as follows:

deb https://cran.rstudio.com/bin/linux/debian stretch-cran35/

Explanation from debian wiki: Flat Repository Format

A flat repository does not use the dists hierarchy of directories, and instead places meta index and indices directly into the archive root (or some part below it) In sources.list syntax, a flat repository is specified like this:

deb uri directory/

Where uri specifies the archive root, and directory specifies the position of the meta index and the indices relative to the archive root. In Flat repositories, the following indices are supported:

  • Packages (under the location directory/Packages)
  • Sources (under the location directory/Sources)
GAD3R
  • 63,407
  • 31
  • 131
  • 192
  • 1
    I would like to also add to this answer, you want to make sure to [use a valid mirror](https://cran.r-project.org/mirrors.html) in your `sources.list` entry as well. – kemotep Mar 21 '19 at 15:01