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.
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:
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!