Ubuntu Studio Malformed entry 60 in list file

Questions about Wine on Linux
Locked
grishnish
Newbie
Newbie
Posts: 2
Joined: Thu Oct 08, 2020 4:55 pm

Ubuntu Studio Malformed entry 60 in list file

Post by grishnish »

Installing WINE in Ubuntu Studio 20.04 (focal), immediately after upgrading from 19.10:

Add architecture i386
wgnet -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/focal main'

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

I've seen similar issues in the forums, but the answers seem to be very specific to the distribution, and I feel like if I start "tinkering" I'll make what might be a simple fix much more complicated.
Any help is appreciated.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Ubuntu Studio Malformed entry 60 in list file

Post by dimesio »

grishnish wrote: Thu Oct 08, 2020 5:15 pm sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/focal main'
Wrong. That should be

Code: Select all

 sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' 
(note the space between ubuntu/ and focal)
E: Malformed entry 60 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
Edit that line in your /etc/apt/sources.list.
grishnish
Newbie
Newbie
Posts: 2
Joined: Thu Oct 08, 2020 4:55 pm

Re: Ubuntu Studio Malformed entry 60 in list file

Post by grishnish »

Sorry, I caught that mistake when I ran into the same error previously, added the space, and got the same error.
If it adds any fidelity to the issue: I get the same error with and without the space. I also get the same error with the space, and replacing dl. with d1. (just in case I mis-read it).
Knowing barely anything about Ubuntu, I find it odd that I'd get the exact same error with this variation.
Thank you very much for your reply!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Ubuntu Studio Malformed entry 60 in list file

Post by dimesio »

Did you edit your /etc/apt/sources.list? The "malformed entry" message means there's still a typo in that file. Possibly it's unrelated to Wine and came from something else you tried to add, but you will keep getting it until you fix it in the file.
User avatar
Unidragon26
Level 1
Level 1
Posts: 5
Joined: Sat Feb 26, 2022 8:43 pm

Re: Ubuntu Studio Malformed entry 60 in list file

Post by Unidragon26 »

I'm having this problem as well. I've spent hours over the last few days looking for and trying potential solutions, and none of them have been helpful to me. I don't have a great understanding of linux in general because I have yet to learn much of anything about coding, just some very basic stuff. That being said however I am quite good at following instructions so I am fairly certain I followed all of the info I could find correctly, but it just didn't work.

I don't have any editors, and I can't get any thanks to this error. I tried sudoedit, and not only were there not even 60 lines presented to me, all of them that contained the word focal had a space before it, which is the most widespread solution I've found. I just don't know how to proceed from here. Technology in general tends to refuse to behave properly for me, so in the end the solution may just be to let someone else do it (I'd be willing to bet money on them doing the exact same thing I did and it working, it wouldn't be the first time. I think I'm a single step below the people that set computers on fire just by touching them.) but I'd really prefer to do it myself if possible.

Thanks in advance for your time, and also sorry in advance if it turns out I was just doing it wrong or if it's just technology hating me again.
Locked