View Issue Details

IDProjectCategoryView StatusLast Update
0005784Kali Linux[All Projects] General Bugpublic2019-11-18 13:14
Reportermattyfoo Assigned Torhertzog  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0005784: error message
DescriptionE: Malformed line 2 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.

Activities

radualexandrupopescu

2019-11-09 19:28

reporter   ~0011287

Could you paste the contents of the file? It might have accidentally been modified.

mattyfoo

2019-11-09 19:40

reporter   ~0011288

Can you please explain a little more I'm new to this.

radualexandrupopescu

2019-11-09 21:11

reporter   ~0011289

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.

mattyfoo

2019-11-14 17:25

reporter   ~0011300

root@kali:~# cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2019.4"
VERSION_ID="2019.4"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
root@kali:~# nano /etc/apt/sources.list
root@kali:~# nano /etc/apt/sources.list
root@kali:~# apt update
E: Malformed line 2 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.
root@kali:~#

mattyfoo

2019-11-14 17:30

reporter   ~0011301

i was trying to add mana toolkit

mattyfoo

2019-11-14 17:33

reporter   ~0011302

i cannot run apt update as it just comes up with that error message.
E: Malformed line 2 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.

mattyfoo

2019-11-14 17:36

reporter   ~0011303

/etc/apt/sources.list: Permission denied

radualexandrupopescu

2019-11-16 05:34

reporter   ~0011312

Could you try pasting this as root (all 3 lines)?

cat <<EOF>/etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib
EOF


It's from https://www.kali.org/releases/kali-linux-2019-3-release/ (the section titled "Ensuring your Installation is Updated") and it should reset your /etc/apt/sources.list to sane defaults. If you have modified it, you could back it up first.

mattyfoo

2019-11-17 13:54

reporter   ~0011315

Obsolete major version 11
 │
 │ The PostgreSQL version 11 is obsolete, but the server or client packages
 │ are still installed. Please install the latest packages (postgresql-12
 │ and postgresql-client-12) and upgrade the existing clusters with
 │ pg_upgradecluster (see manpage).
 │
 │ Please be aware that the installation of postgresql-12 will
 │ automatically create a default cluster 12/main. If you want to upgrade
 │ the 11/main cluster, you need to remove the already existing 12 cluster
 │ (pg_dropcluster --stop 12 main, see manpage for details).
 │
 │ The old server and client packages are no longer supported. After the
 │
 │ <Ok>

mattyfoo

2019-11-17 13:55

reporter   ~0011316

running the install update and it says this?

rhertzog

2019-11-18 13:14

administrator   ~0011318

This is a bug tracker, not a support forum. Please seek help on forums.kali.org instead.

Issue History

Date Modified Username Field Change
2019-11-09 16:58 mattyfoo New Issue
2019-11-09 19:28 radualexandrupopescu Note Added: 0011287
2019-11-09 19:40 mattyfoo Note Added: 0011288
2019-11-09 21:11 radualexandrupopescu Note Added: 0011289
2019-11-14 17:25 mattyfoo Note Added: 0011300
2019-11-14 17:30 mattyfoo Note Added: 0011301
2019-11-14 17:33 mattyfoo Note Added: 0011302
2019-11-14 17:36 mattyfoo Note Added: 0011303
2019-11-16 05:34 radualexandrupopescu Note Added: 0011312
2019-11-17 13:54 mattyfoo Note Added: 0011315
2019-11-17 13:55 mattyfoo Note Added: 0011316
2019-11-18 13:14 rhertzog Assigned To => rhertzog
2019-11-18 13:14 rhertzog Status new => closed
2019-11-18 13:14 rhertzog Resolution open => no change required
2019-11-18 13:14 rhertzog Note Added: 0011318