Unable to isntall wine 4 on debian stretch

Questions about Wine on Linux
Locked
RaggedRat
Level 1
Level 1
Posts: 9
Joined: Mon Jan 13, 2014 8:22 pm

Unable to isntall wine 4 on debian stretch

Post by RaggedRat »

I have followed the instructions on https://wiki.winehq.org/Debian and am getting

Building dependency tree
Reading state information... Done
E: Unable to locate package winehq-stable

when I execute apt install --install-recommends winehq-stable
The same occurs if I try winehq-devel too.
I am doing this from a terminal as root (via su).
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to isntall wine 4 on debian stretch

Post by dimesio »

Post the contents of your/etc/apt/sources.list.
RaggedRat
Level 1
Level 1
Posts: 9
Joined: Mon Jan 13, 2014 8:22 pm

Re: Unable to isntall wine 4 on debian stretch

Post by RaggedRat »

/etc/apt/sources.list:

# deb cdrom:[Debian GNU/Linux 9.8.0 _Stretch_ - Official amd64 DVD Binary-1 20190216-11:59]/ stretch contrib main

# deb cdrom:[Debian GNU/Linux 9.8.0 _Stretch_ - Official amd64 DVD Binary-2 20190216-11:59]/ stretch contrib main

# deb cdrom:[Debian GNU/Linux 9.8.0 _Stretch_ - Official amd64 DVD Binary-3 20190216-11:59]/ stretch contrib main

deb [Trusted=Yes] file:/media/adam/Debian 9.8.0 amd64 1 stretch main contrib
deb [Trusted=Yes] file:/media/adam/Debian 9.8.0 amd64 2 stretch main contrib
#deb http://ftp.gb.debian.org/debian/ stretch main contrib non-free
deb [Trusted=Yes] file:/media/adam/Debian 9.8.0 amd64 3 stretch main contrib

deb https://dl.winehq.org/wine-builds/debian/ stretch main

Note I also tried downloading wine-stable-amd64_3.0.5~stretch_amd64.deb directly. The install ran (using gdebi) but wineserver is missing.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to isntall wine 4 on debian stretch

Post by dimesio »

RaggedRat wrote: deb https://dl.winehq.org/wine-builds/debian/ stretch main
That looks correct. Did you run sudo apt update after adding the repository? If you did, then I have no idea why you got the "unable to locate package" message. The winehq-stable packages are definitely in the repository.
RaggedRat
Level 1
Level 1
Posts: 9
Joined: Mon Jan 13, 2014 8:22 pm

Re: Unable to isntall wine 4 on debian stretch

Post by RaggedRat »

Yes, I ran apt update as root. In fact, in a fit of paranoia, in one attempt I cut and pasted the commands from the website to the command line.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Unable to isntall wine 4 on debian stretch

Post by jkfloris »

Can you post the full output of

Code: Select all

sudo apt update
RaggedRat
Level 1
Level 1
Posts: 9
Joined: Mon Jan 13, 2014 8:22 pm

Re: Unable to isntall wine 4 on debian stretch

Post by RaggedRat »

Had a reinstall of stretch for unrelated reasons.

sources.list:

#

# deb cdrom:[Debian GNU/Linux 9.8.0 _Stretch_ - Official amd64 DVD Binary-1 20190216-11:59]/ stretch contrib main

#deb [trusted=yes] file:///media/adam/3248923D4891FFB1/debian-9.8.0-amd64-DVD-1.iso/ strech contrib main

deb [trusted=yes] file:///mnt/Deb9/ stretch contrib main

#deb [arch=amd64] https://dl.winehq.org/wine-builds/debian/ stretch main

#deb [arch=i386,trusted=yes] file:///mnt/Deb9-i386/ stretch contrib main

#deb cdrom:[Debian GNU/Linux 9.8.0 _Stretch_ - Official amd64 DVD Binary-1 20190216-11:59]/ stretch contrib main
#deb http://security.debian.org/debian-security stretch/updates main contrib
#deb-src http://security.debian.org/debian-security stretch/updates main contrib

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ stretch-updates main contrib
# deb-src http://deb.debian.org/debian/ stretch-updates main contrib

All other intalls work.

and sources.list.d/wine.list:

deb https://dl.winehq.org/wine-builds/debian stretch main

Get:1 file:/mnt/Deb9 stretch InRelease
Ign:1 file:/mnt/Deb9 stretch InRelease
Get:2 file:/mnt/Deb9 stretch Release [33.4 kB]
Get:2 file:/mnt/Deb9 stretch Release [33.4 kB]
Get:3 file:/mnt/Deb9 stretch Release.gpg
Ign:3 file:/mnt/Deb9 stretch Release.gpg
Hit:4 https://dl.winehq.org/wine-builds/debian stretch InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.

And the output of apt-get install --install-recommends winehq-stable

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 4.0.3~stretch)

And the output of apt-get install --install-recommends wine-stable

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
wine-stable : Depends: wine-stable-i386 (= 4.0.3~stretch)

Trying to install wine-stable-i386 gives a whole chain of i386 dependencies. As I am trying to install on an amd64 architecture I am now not sure what is going on. Do I need to install multiarch Debian?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Unable to isntall wine 4 on debian stretch

Post by jkfloris »

If you want to run 32bit Windows applications (almost all Windows installers are 32bit), you must enable multiarch.

Code: Select all

sudo dpkg --add-architecture i386
RaggedRat
Level 1
Level 1
Posts: 9
Joined: Mon Jan 13, 2014 8:22 pm

Re: Unable to isntall wine 4 on debian stretch

Post by RaggedRat »

I ran that command on every attempt. The distro I am using is amd64 - should I download and install the multiarch distro instead?
amera_09
Level 3
Level 3
Posts: 88
Joined: Mon Dec 09, 2019 6:47 pm

Re: Unable to isntall wine 4 on debian stretch

Post by amera_09 »

Download the wine and it's depends and then

Code: Select all

for I in /var/apt/archives/* ;do dpkg -I $I ;done  

Works for me ;)
Locked