malformed line 4, list sources can't be read

Asked by Summer Rain

I'm trying to install steam and after I input

$ echo 'deb http://httpredir.debian.org/debian/ jessie main contrib non-free' | sudo tee -a /etc/apt/sources.list
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
$ sudo dpkg --add-architecture i386
$ sudo apt update
E: Malformed line 4 in source list /etc/apt/sources.list (type)
E: Malformed entry 1 in list file /etc/apt/sources.list.d/rethinkdb.list (Component)
E: The list of sources could not be read.

what am i doing wrong? im completely new to this. is there another way?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

cat -n /etc/apt/sources.list.d | head

Also please give the output of:

cat -n /etc/apt/sources.list.d/rethinkdb.list | head

Please indicate which output is from which file

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Also, mixing Debian sources with Ubuntu ones will make a big mess. The package dependencies are different and you will not be able to install software due to broken packages.

What are you trying to achieve?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.