Need help, I don't know what is going on

Questions about Wine on Linux
Locked
FrostWalker
Newbie
Newbie
Posts: 3
Joined: Mon Oct 15, 2018 7:46 am

Need help, I don't know what is going on

Post by FrostWalker »

So i tried to install wine on my linux mint 19 OS. After that my update manager didn't work. I got that working, but now when I refresh the list I get this error

Code: Select all

W: Skipping acquire of configured file 'mainn/binary-all/Packages' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/binary-i386/Packages' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/binary-amd64/Packages' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/i18n/Translation-en' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/i18n/Translation-en_US' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/dep11/Components-amd64.yml' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/dep11/Components-all.yml' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/cnf/Commands-all' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'mainn/cnf/Commands-amd64' as repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' doesn't have the component 'mainn' (component misspelt in sources.list?)
So can anyone of you lovely people help me figure this out? I am new to linux so please be patient with me.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Need help, I don't know what is going on

Post by Bob Wya »

FrostWalker wrote:So i tried to install wine on my linux mint 19 OS. After that my update manager didn't work. I got that working, but now when I refresh the list I get this error

...
@FrostWalker

What's the output from:

Code: Select all

find "/etc/apt/" -type f -name "sources.list*" -print | xargs -I {} sh -c 'echo {}:; cat {}; echo'
Since you have a malformed entry (or 2) in your Apt sources list(s)!

See also: Ubuntu: Installing WineHQ packages.

Bob
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: Need help, I don't know what is going on

Post by dimesio »

FrostWalker wrote:

Code: Select all

'mainn' (component misspelt in sources.list?)
The error message is telling you exactly what the problem is.
FrostWalker
Newbie
Newbie
Posts: 3
Joined: Mon Oct 15, 2018 7:46 am

Re: Need help, I don't know what is going on

Post by FrostWalker »

Bob Wya wrote:
FrostWalker wrote:So i tried to install wine on my linux mint 19 OS. After that my update manager didn't work. I got that working, but now when I refresh the list I get this error

...
@FrostWalker

What's the output from:

Code: Select all

find "/etc/apt/" -type f -name "sources.list*" -print | xargs -I {} sh -c 'echo {}:; cat {}; echo'
Since you have a malformed entry (or 2) in your Apt sources list(s)!

See also: Ubuntu: Installing WineHQ packages.

Bob
This is what I get when do that.

Code: Select all

/etc/apt/sources.list~:
#deb cdrom:[Linux Mint 19 _Tara_ - Release amd64 20180717]/ bionic contrib main non-free
FrostWalker
Newbie
Newbie
Posts: 3
Joined: Mon Oct 15, 2018 7:46 am

Re: Need help, I don't know what is going on

Post by FrostWalker »

dimesio wrote:
FrostWalker wrote:

Code: Select all

'mainn' (component misspelt in sources.list?)
The error message is telling you exactly what the problem is.
So how do I fix this?
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: Need help, I don't know what is going on

Post by dimesio »

Open /etc/apt/sources.list in a text editor and change "mainn" to "main" wherever you find it.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Need help, I don't know what is going on

Post by Bob Wya »

FrostWalker wrote:
This is what I get when do that.

Code: Select all

/etc/apt/sources.list~:
#deb cdrom:[Linux Mint 19 _Tara_ - Release amd64 20180717]/ bionic contrib main non-free
That's just a redundant backup sources.list file. :roll:
Are you sure that's the only output from that command?

I'd expect a lot more repository entries / files than that.
The main:

Code: Select all

/etc/apt/sources.list
repository file and probably some ppa repository files of the form:

Code: Select all

/etc/sources.list.d/*
These all should be world readable. The find command correctly dumps all the repository source files, on my Ubuntu Mate partition...

A quick fix, if the only issue is the misspelt repository type, would be:

Code: Select all

sudo sed -i -e 's/mainn/main/g' /etc/apt/sources.list
Bob
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Need help, I don't know what is going on

Post by jkfloris »

Code: Select all

find "/etc/apt/" -type f -name "sources.list*" -print | xargs -I {} sh -c 'echo {}:; cat {}; echo'
shouldn't this be:

Code: Select all

find "/etc/apt/" -type f -name "*.list" -print | xargs -I {} sh -c 'echo {}:; cat {}; echo'
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Need help, I don't know what is going on

Post by Bob Wya »

jkfloris wrote:

Code: Select all

find "/etc/apt/" -type f -name "sources.list*" -print | xargs -I {} sh -c 'echo {}:; cat {}; echo'
shouldn't this be:

Code: Select all

find "/etc/apt/" -type f -name "*.list" -print | xargs -I {} sh -c 'echo {}:; cat {}; echo'
Hmmm, yes, you're right of course! :? :oops: :lol:

Bob
Locked