View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005784||Kali Linux||[All Projects] General Bug||public||2019-11-09 16:58||2019-11-09 21:11|
|Target Version||Fixed in Version|
|Summary||0005784: error message|
|Description||E: Malformed line 2 in source list /etc/apt/sources.list (type)|
E: The list of sources could not be read.
||Could you paste the contents of the file? It might have accidentally been modified.|
||Can you please explain a little more I'm new to this.|
Well, you need to provide more information about what you were doing when the error occurred.
Also, since it's a file related to repositories, what other repositories did you add or you tried to add.
The error is quite clear: there is an error on line 2 of "/etc/apt/sources.list". Hence, a copy of that file's content would be helpful.
My "/etc/apt/sources.list" looks like this:
# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free
#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free
deb https://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib
#deb http://security.debian.org/debian-security wheezy/updates main
The lines that start with "#", are comments, so they are ignored.