Malformed entry 4 in list file /ect/apt/sources.list (component)

PureOS on Librem 15 ver. 3 does not update upgrade. I tried various solutions and update / upgrade commands and keep getting: malformed entry 4 in list file /ect/apt/sources.list (component).

So give us the content of the /ect/apt/sources.list file.

I have no clue how to do that. I could not find anything like it by searching Files nor could I find it by typing /ect/apt/sources.list (component) in the Tilix application.

Open Tilix and type:

cat /etc/apt/sources.list

Watch for typos, for example you wrote:

it is not /ect/apt/sources.list, it is: /etc/apt/sources.list

jsbic@L15:~$ cat /etc/apt/sources.list
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
deb http://repo.puri.sm/pureos/ green main
deb http://repo.puri.sm/pureos/green main
deb-src http://repo.puri.sm/pureos/green main
# CDROMs are managed through the apt-cdrom tool.

this line deb http://repo.puri.sm/pureos/green main should have a space after the last / so it should look like this deb http://repo.puri.sm/pureos/ green main
Now to edit that, do sudo nano /etc/apt/sources.list

OK, beFree I edited and saved … Software says Up to date!
thank you! that apparently was the problem… I am now in the midst of updating and upgrading the Librem 15!

tt

1 Like

Also, use “https” instead of “http”.

to use https… do I re edit the sources.list and just add the “s” to the http in the lines there?

Yes. Also remove duplicate deb lines (you have deb http://repo.puri.sm/pureos/ green main twice, unless you already removed one of them).

OK, sir… I will do that! thanks again.
AR - over & out