Having trouble downloading wine. SOLVED!

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Having trouble downloading wine. SOLVED!

#1 Post by Noidly1 »

I want to get wine installed and am having a heck of a time.

I'm trying to go at this as an actual download then install like you would with windows programs you get online.

I tried to follow the directions on winehq's website and its not working.
What am I doing wrong?
Attachments
Screenshot_wine2.png
Screenshot_wine.png
Last edited by Noidly1 on 2024-10-10 00:57, edited 1 time in total.

User avatar
Uptorn
Posts: 425
Joined: 2022-01-22 01:07
Has thanked: 331 times
Been thanked: 112 times

Re: Having trouble downloading wine.

#2 Post by Uptorn »

sudo must be supplied before the other apt commands.

Why are you using a method for installation without internet access? And would it not just be easier to install wine via Debian's package wine?

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#3 Post by Noidly1 »

Uptorn wrote: 2024-09-28 03:24 sudo must be supplied before the other apt commands.

Why are you using a method for installation without internet access? And would it not just be easier to install wine via Debian's package wine?
I can get it via Apper, Discover and Synaptic. They all have the same version.
I went to Winehq website to check it out and according to them, the app will usually be older getting it through app managers.

Since it is harder to go through all the typing and errors, I thought it would easier doing it that way.

You know, it would be a lot easier if these companies would just supply an installer like an .exe, .msi.or a .zip file that you could download and just click setup or install. Heck, a simple apk would be great. j/s...

BTW; I tried to set a repos in the app managers and I got an error. Go figure...
Later I went to do another update and got this

Code: Select all

noid@Laptop:~$ sudo apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease                 
Get:3 https://dl.winehq.org/wine-builds/debian bookworm InRelease [8,045 B]
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease         
Hit:5 http://deb.debian.org/debian bookworm-backports InRelease
Err:3 https://dl.winehq.org/wine-builds/debian bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
noid@Laptop:~$
. Now what???

User avatar
blackbird
Posts: 91
Joined: 2023-08-17 04:42
Has thanked: 3 times
Been thanked: 19 times

Re: Having trouble downloading wine.

#4 Post by blackbird »

Noidly1 wrote: 2024-09-28 03:58Now what???
The public key of the winehq repos is missing. It can be installed like described in https://gitlab.winehq.org/wine/wine/-/w ... repository:

Code: Select all

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#5 Post by Noidly1 »

blackbird wrote: 2024-09-28 05:43
Noidly1 wrote: 2024-09-28 03:58Now what???
The public key of the winehq repos is missing. It can be installed like described in https://gitlab.winehq.org/wine/wine/-/w ... repository:

Code: Select all

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
Hmm. the first line worked but, the second line did not.

Code: Select all

noid@Laptop:~$ sudo mkdir -pm755 /etc/apt/keyrings
[sudo] password for noid: 
noid@Laptop:~$ sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo: wget: command not found
noid@Laptop:~$
I can click the link in the line and either view it or save it. How about I save it and add it to the location created?

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#6 Post by Noidly1 »

Well that didn't work.
Attachments
Screenshot_keyring.png

User avatar
blackbird
Posts: 91
Joined: 2023-08-17 04:42
Has thanked: 3 times
Been thanked: 19 times

Re: Having trouble downloading wine.

#7 Post by blackbird »

If wget isn't installed, you can install it with

Code: Select all

sudo apt install wget
If you have downloaded it otherwise and want to copy it, you need admin rights, like

Code: Select all

sudo cp ~/Downloads/winehq.key /etc/apt/keyrings/winehq-archive.key

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#8 Post by Noidly1 »

I got everything above to work. Yay,,,
Now, getting the i386 thing to work is another problem.
Err..

Wait a Minute, I don't know what I did but I think it worked.

Code: Select all

oid@Laptop:~$ sudo dpkg --add-architecture i386
[sudo] password for noid: 
noid@Laptop:~$
Now I tried to install wine and it was a success then did another update and got this>

Code: Select all

noid@Laptop:~$ sudo apt update
[sudo] password for noid: 
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease                
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease        
Hit:4 https://dl.winehq.org/wine-builds/debian bookworm InRelease
Hit:5 http://deb.debian.org/debian bookworm-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'winehq-bookworm.sources/binary-all/Packages' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/binary-amd64/Packages' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/binary-i386/Packages' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/i18n/Translation-en_US' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/i18n/Translation-en' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/dep11/Components-amd64.yml' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/dep11/Components-all.yml' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/dep11/icons-48x48.tar' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/dep11/icons-64x64.tar' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/dep11/icons-64x64@2.tar' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'winehq-bookworm.sources/dep11/icons-128x128.tar' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
noid@Laptop:~$ 
I can't find the "mis-spell...

Code: Select all

noid@Laptop:~$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
[sudo] password for noid: 
--2024-09-28 20:07:56--  https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
Resolving dl.winehq.org (dl.winehq.org)... 199.232.70.217, 2a04:4e42:51::729
Connecting to dl.winehq.org (dl.winehq.org)|199.232.70.217|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘/etc/apt/sources.list.d/winehq-bookworm.sources’ not modified on server. Omitting download.

noid@Laptop:~$
Attachments
Screenshot_Winehq-wiki-page.png
Screenshot_after-wine-install-update.png

User avatar
blackbird
Posts: 91
Joined: 2023-08-17 04:42
Has thanked: 3 times
Been thanked: 19 times

Re: Having trouble downloading wine.

#9 Post by blackbird »

You have some wrong configuration. Could you show what files you have in sources.list.d?

Code: Select all

ls /etc/apt/sources.list.d/
Maybe you have now two configuration files, one downloaded with wget and the old that you created in the GUI.

As a quick fix you can correct the section in the GUI, from "winehq..." to "main".

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#10 Post by Noidly1 »

Code: Select all

noid@Laptop:~$ ls /etc/apt/sources.list.d/
winehq-bookworm.sources
noid@Laptop:~$
Hmm. it wasn't specified but, which one should I have it switched to, Binary or Source?
Attachments
Screenshot_binary-sources.png

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#11 Post by Noidly1 »

I changed the switch to source.
Seemed to clean up update a bit from last time but something is still off.

Code: Select all

noid@Laptop:~$ sudo apt update
[sudo] password for noid: 
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 https://dl.winehq.org/wine-builds/debian bookworm InRelease
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
Hit:5 http://deb.debian.org/debian bookworm-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'winehq-bookworm.sources/source/Sources' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
noid@Laptop:~$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
--2024-09-29 20:20:34--  https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
Resolving dl.winehq.org (dl.winehq.org)... 199.232.70.217, 2a04:4e42:51::729
Connecting to dl.winehq.org (dl.winehq.org)|199.232.70.217|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘/etc/apt/sources.list.d/winehq-bookworm.sources’ not modified on server. Omitting download.

noid@Laptop:~$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://dl.winehq.org/wine-builds/debian bookworm InRelease
Reading package lists... Done                    
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'winehq-bookworm.sources/source/Sources' as repository 'https://dl.winehq.org/wine-builds/debian bookworm InRelease' doesn't have the component 'winehq-bookworm.sources' (component misspelt in sources.list?)
noid@Laptop:~$
don't know if this might have something to do with it.

Code: Select all

HTTP request sent, awaiting response... 304 Not Modified
File ‘/etc/apt/sources.list.d/winehq-bookworm.sources’ not modified on server. Omitting download.

User avatar
blackbird
Posts: 91
Joined: 2023-08-17 04:42
Has thanked: 3 times
Been thanked: 19 times

Re: Having trouble downloading wine.

#12 Post by blackbird »

In the screenshot the "Section(s)" is still "winehq-bookworm.sources" but it should be "main".

You could show the content of the sources file

Code: Select all

cat /etc/apt/sources.list.d/winehq-bookworm.sources
just to see what's currently configured.

Then you could change the wget without timestamp checking:

Code: Select all

sudo wget -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
and check again the content with the "cat" command above. It should have changed now.

If this don't helps you could remove the sources file and download again

Code: Select all

sudo rm /etc/apt/sources.list.d/winehq-bookworm.sources
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
I think these are the most clean solutions, alternatively you change in the GUI the "Section(s)" for the wine line to "main".

arzgi
Posts: 1627
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 85 times

Re: Having trouble downloading wine.

#13 Post by arzgi »

Did you even try Debian version? Got any errors? It would be in many ways cleaner process, like @Uptorn suggested. Yes its is older, but tested for bugs.

And to i386 architecture, I think the best info is https://wiki.debian.org/Multiarch/HOWTO

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#14 Post by Noidly1 »

blackbird wrote: 2024-10-02 05:29 In the screenshot the "Section(s)" is still "winehq-bookworm.sources" but it should be "main".
change in the GUI the "Section(s)" for the wine line to "main".
You were right, that worked. Thank you very much.
arzgi wrote: 2024-10-02 09:54 Did you even try Debian version? Got any errors? It would be in many ways cleaner process, like @Uptorn suggested. Yes its is older, but tested for bugs.

And to i386 architecture, I think the best info is https://wiki.debian.org/Multiarch/HOWTO
Yes, I did try that and it did install no problems via Discover. Never got a chance to try it to see if it worked.

I resized my /root partition to make way for a Data partition, different file system, and had ended up having to scrub /root and start over and reinstall debian.

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine.

#15 Post by Noidly1 »

I finally got up and running. Yay...
Just a Thank You for everyone's help. Mucho Cracias!!!

arzgi
Posts: 1627
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 85 times

Re: Having trouble downloading wine.

#16 Post by arzgi »

Nice, could you edit the header of your first post in the thread and add [SOLVED] to front of it.

And if you could also tell how you fixed your problem, would be very nice too.

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine. SOLVED!

#17 Post by Noidly1 »

After going back and forth with the settings under Konsol and not getting anywhere, I went into the Synaptic repositories and tried a few things and with the help of "Blackbird", finally found the setup that works.
Below are the correct setting to get all of the files needed to download wine.
Make sure that the box on top is set to "Source (deb-src)" and NOT "Binary (deb)".
Attachments
Synaptic-Wine-settings.png

User avatar
blackbird
Posts: 91
Joined: 2023-08-17 04:42
Has thanked: 3 times
Been thanked: 19 times

Re: Having trouble downloading wine. SOLVED!

#18 Post by blackbird »

Noidly1 wrote: 2024-10-10 01:07 Make sure that the box on top is set to "Source (deb-src)" and NOT "Binary (deb)".
That can't be the correct setting. With deb-src you could only download the sources of wine, not the binary packages. Is it possible you have installed the Wine version from the Debian repository?

Noidly1
Posts: 63
Joined: 2014-11-24 07:09
Has thanked: 19 times

Re: Having trouble downloading wine. SOLVED!

#19 Post by Noidly1 »

blackbird wrote: 2024-10-10 20:44
Noidly1 wrote: 2024-10-10 01:07 Make sure that the box on top is set to "Source (deb-src)" and NOT "Binary (deb)".
That can't be the correct setting. With deb-src you could only download the sources of wine, not the binary packages. Is it possible you have installed the Wine version from the Debian repository?
Not sure. I just know it worked...
I will look into this later.

eamanu
Debian Developer
Debian Developer
Posts: 13
Joined: 2020-07-12 21:37
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Having trouble downloading wine. SOLVED!

#20 Post by eamanu »

@bennyhillthebest

Post Reply