What does this apt error mean?: "the list of sources could not be read"

I get this error how can I solved

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

1 Reply

Hi there,

When you run apt-get update or apt-get upgrade, the sources enumerated in /etc/apt/sources.list are read. The error you are receiving suggests that there is some error in line 1 of this file:
/etc/apt/sources.list.d/rethinkdb.list

The best approach is probably to view that file in your preferred text editor. For example,

sudo nano /etc/apt/sources.list.d/rethinkdb.list

Pay attention to what is in line 1 as that is what is causing the problem.

For Ubuntu, the contents should read

deb http://download.rethinkdb.com/apt xenial main

If you are hesitant to edit the file, or are not used to using a text editor to edit files in Linux, the following command will replace the rethinkdb.list file to its default contents for Ubuntu and Debian distros:

echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list

If you have any further trouble, please let us know!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct