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

Questions about Wine on Linux
Locked
User avatar
Unidragon26
Level 1
Level 1
Posts: 5
Joined: Sat Feb 26, 2022 8:43 pm

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

Post by Unidragon26 »

Every time I try to install, update, or uninstall a program, I get this error. I've spent many hours looking through various forums, including an older post on this one (I replied to it but it didn't move it to the top of the issue list and I frankly can't wait for months for someone to look at it again), and none of the solutions I tried worked. I don't have an editor and cannot get one thanks to this error. I tried using sudoedit, and not only were there not 60 lines, none of them that contained the word focal were missing a space before it (the most common fix I've found).

I don't have a great understanding of Linux because I've only been using it for a couple months and had very little prior coding knowledge, but I know I was typing the commands correctly. The system is telling me to open my package manager and I can't even figure out how to do that, and because it's such a basic function there is zero information on how to do that anywhere. Believe me, I looked. At this point I'm just stuck. I can't even reinstall wine because I can't uninstall it. I don't know when this error started because this isn't my main computer so I haven't paid a ton of attention to it, but it is currently my only option and I very very much need to be able to install programs on it again. I know it's related to wine because using sudoedit gave me stuff about wine, and I haven't really messed with the computer much since I installed wine because I was having separate issues with the program I installed it for.

I know this isn't a ton to go off of but I didn't know what else to include. I'll try to be as helpful as I can, I really need to fix this soon.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

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

Post by dimesio »

Post the contents of your /etc/apt/sources.list.
User avatar
Unidragon26
Level 1
Level 1
Posts: 5
Joined: Sat Feb 26, 2022 8:43 pm

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

Post by Unidragon26 »

Okay, so, I feel stupid because I didn't think about it before, but there might be 60 lines assuming the blank lines count. If they don't, then there's only 57 lines. Even so, the potential line 60 has a space before focal so at least I didn't mess that part up.

# deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ 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://us.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://us.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://us.archive.ubuntu.com/ubuntu/ focal universe
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://us.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://us.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://us.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://us.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://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse (Line 60 if blank lines count)
# 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/ groovy main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ groovy main
deb https://dl.winehq.org/wine-builds/ubuntu/ 6.0.1~groovy-1
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ 6.0.1~groovy-1
deb https://dl.winehq.org/wine-builds/ubuntu/ groovy6.0.1
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ groovy6.0.1
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main


(where line 60 would be if they don't)
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

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

Post by dimesio »

This is line 60, and it's obviously wrong:
The next entry is also obviously wrong:
If you don't see why they're obviously wrong, compare those to entries to the one immediately preceding them:
But why do you even have entries for groovy, if you are on focal? That can cause problems even if the entries are correct.

I recommend deleting all the entries for groovy, but at least delete the blatantly incorrect ones.
User avatar
Unidragon26
Level 1
Level 1
Posts: 5
Joined: Sat Feb 26, 2022 8:43 pm

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

Post by Unidragon26 »

Honestly, I have no clue why I have both, I didn't even realize focal was a different version, the only reason I got wine is because I was trying to get a WoW private server client, but that ended up not working anyway and I'm not worried about getting it working. I did it from a guide online, I don't even remember where at this point.

Also I really can't see what's wrong with the previous entries from looking at that one. I'm not very smart in most areas and have next-to-no experience with this kind of thing. That being said, I don't even need to get wine working to do what I need to do, I just need to get it to stop preventing me from installing/updating other things, so I'll just delete all the groovy entries and get back to you with what happens.
User avatar
Unidragon26
Level 1
Level 1
Posts: 5
Joined: Sat Feb 26, 2022 8:43 pm

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

Post by Unidragon26 »

Honestly I have no idea why it had both, I didn't even realize focal was a different version, I don't remember telling it to install focal at all. Deleting the groovy lines fixed the issue though. Thank you very much for your help and patience.
Locked