Malformed entry 6 in list file /etc/apt/sources.list (Compon

Questions about Wine on Linux
Locked
T-Shirt
Newbie
Newbie
Posts: 1
Joined: Wed Jul 25, 2018 1:00 pm

Malformed entry 6 in list file /etc/apt/sources.list (Compon

Post by T-Shirt »

This line pops up whenever I typer get updates whenever I type get install.

All of the suggestions I have seen say edit the line to wito, but whenver I try to download an editor it says the same thing

I needhelp
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Malformed entry 6 in list file /etc/apt/sources.list (Co

Post by dimesio »

All Linux distros have a text editor installed by default, and usually more than one. Use whatever you already have to edit /etc/apt/sources.list.

If you don't know how to find or use whatever text editor came with your distro, ask for help on your distro's support forum or a general Linux forum. This forum is for Wine questions only.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Malformed entry 6 in list file /etc/apt/sources.list (Co

Post by Bob Wya »

T-Shirt wrote: I needhelp
Don't we all. 8)

Code: Select all

sudo nano /etc/apt/sources.list
Job done.

Bob
hiigaran
Level 2
Level 2
Posts: 41
Joined: Fri Sep 22, 2017 12:41 am

Re: Malformed entry 6 in list file /etc/apt/sources.list (Co

Post by hiigaran »

If you're unfamiliar with using the terminal for editing text files, use gedit.

Ctrl + Alt + T to open up a new terminal:

Code: Select all

sudo apt install gedit
Enter your password and follow the prompts. Likely you already have this installed, but in case you don't this will install a graphical text editor like notepad in Windows.

Next, in that same terminal:

Code: Select all

sudo gedit /etc/apt/sources.list
Copy and paste the contents of the file here, along with the number of the line stated by your malformed entry error. The most likely cause of your problem is that one of your lines in sources.list is somehow incorrect. Either it needs to be removed, or fixed.
Locked