How do I fix the malformed line from my source.list?

Malformed entry 1 in list file /etc/apt/sources.list.d/anydesk-stable.list

How i can solve this.

1 Like

can you post the first line?

Hello my friends, when I try to download software with the apt command, it gives this error :point_down:

Can you please solve my problem? I will be grateful. I am not fluent in English. Excuse me, if I do not write correctly, I am Iranian.

I am in a hurry. Can you answer me as soon as possible? I only migrated from Windows to Ubuntu a month ago.

Please run the terminal command:

cat /etc/apt/sources.list.d/AdobeConnect.list

Copy the output of that command to the clipboard, paste it into a post here, select the post text you just pasted, and click the little </> icon above the post editor panel.

This will help us figure out what's the problem.

Hi there,

Here is a similar problem, I guess.

I can't figure out the problem and, of course, how to solve it. I 'll be very grateful at the one who can help me. Thanks!

Geez. Is it true that there is a boatload of newlines and apt-get and echo commands in that /etc/apt/sources.list.d/signal-xenial.list file?

If so, open the file in a text editor, like this:

sudo pluma /etc/apt/sources.list.d/signal-xenial.list

Delete everything, everything from that file except for the first two lines, the ones that read # deb [...] and deb [...]. Then save the file, close the text editor, and try another sudo apt-get update.

Here's a link how to install Signal Messenger on Linux Mint (similar to Ubuntu Mate).

See steps 1-4

1 Like

Thanks, guys! I'm new to ubuntu and I can't believe how fast I got valuable answers. Amazing!

I'm still in trouble though. I can't open pluma.

Should I try another editor?

Oh! I'll bet you're using stock Ubuntu, and not Ubuntu MATE, is that correct?

If so, replace pluma with gedit.

Indeed! Sorry, I didn't give any details.

It worked perfectly, thank you so much!

1 Like

E: Malformed entry 60 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
E: Malformed entry 60 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

Hi all. I tried installing Photoshop on UBUNTU and am now getting this error every time I try installing anything....I transfered from Win10 to Ubuntu like a month ago and really dunno what i'm doing , eh All help is very much welcomed, thanks.

Well, what does your /etc/apt/sources.list file say?

Open the aforementioned file in a text editor, select everything in the file (Ctrl-A), copy the selected text, paste the text in a post here, then most importantly select the text in this post and click the </> button above.

Only once we see that information can we even have a chance of helping you out.

1 Like
# deb cdrom:[Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1)]/ focal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal universe
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://ba.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://us.archive.ubuntu.com/ubuntu/ focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://us.archive.ubuntu.com/ubuntu/ focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
deb https://dl.winehq.org/wine-builds/ubuntu/eoan main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/eoan main
deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ eoan main

Thank you, hopefully I got it all in the previous reply.

Thank you for the detailed dump of the file. I quickly spotted the error.

Take a look at lines 58-63:

deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
deb https://dl.winehq.org/wine-builds/ubuntu/eoan main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/eoan main
deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ eoan main

First of all, the rest of your sources.list file refers to Ubuntu 20.04 "Focal Fossa", and I think you even said above that you were using Ubuntu 20.04. So for starters, you shouldn't even have those last four lines in your file anyway, since they refer to Ubuntu 19.10 "Eoan Ermine" (I think that was the codename). So the solution is to get rid of the last four lines.

But let me show you the exact problem that APT was complaining about, so that this can be prevented in the future: The last two lines are a duplicate of the previous two lines, except the fourth-from-last line (line 60, the one that APT complains about) is missing a space in a crucial position. Let me show you (annotations added by me):

deb https://dl.winehq.org/wine-builds/ubuntu/eoan main
                                            ^^
                                            There should be
                                            a space between
                                            the slash and
                                            the letter "e".

Of course, you don't need any of the last four lines, so delete them and be on your merry way.

I hope that helped. I hope that resolves your problem. (I know. Computers can be very picky about the exact input you feed to them, huh?)

1 Like

Thanks so much Gordon. I need to open that file in a html editor then, not just a browser, in order to change, delete the lines? Or, how would You open it, in what?

Edit: Opened and changed with VSC . Thanks again brother, now I can install again.

In the future, you can open that file up in a plain text editor. Text editors include nano (a command-line-based text editor with a very small learning curve) and Pluma (the MATE text editor). Both editors should be installed by default. In the future, to open the file in Pluma, you can use the command:

sudo pluma /etc/apt/sources.list
1 Like

ola, eu uso lubuntu 18.04.6 e eu tenho o seguinte erro: E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: A lista de fontes nĂŁo pode ser lida. pode me ajudar