Unable to isntall wine 4 on debian stretch
Unable to isntall wine 4 on debian stretch
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).
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).
Re: Unable to isntall wine 4 on debian stretch
Post the contents of your/etc/apt/sources.list.
Re: Unable to isntall wine 4 on debian stretch
/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.
# 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.
Re: Unable to isntall wine 4 on debian stretch
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 wrote: deb https://dl.winehq.org/wine-builds/debian/ stretch main
Re: Unable to isntall wine 4 on debian stretch
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.
Re: Unable to isntall wine 4 on debian stretch
Can you post the full output of
Code: Select all
sudo apt update
Re: Unable to isntall wine 4 on debian stretch
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?
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?
Re: Unable to isntall wine 4 on debian stretch
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
Re: Unable to isntall wine 4 on debian stretch
I ran that command on every attempt. The distro I am using is amd64 - should I download and install the multiarch distro instead?
Re: Unable to isntall wine 4 on debian stretch
Download the wine and it's depends and then
Works for me
Code: Select all
for I in /var/apt/archives/* ;do dpkg -I $I ;done
Works for me