Unable to install winehq-devel 2.1.0 on debian jessie

Questions about Wine on Linux
Locked
User avatar
mainliner
Level 2
Level 2
Posts: 19
Joined: Thu Feb 09, 2017 11:42 am

Unable to install winehq-devel 2.1.0 on debian jessie

Post by mainliner »

[Bug 40346] New: Unable to install winehq-devel on debian jessie (tries to download 1.9.5 when 1.9.6 is the only version on the server)

Is there any update on this bug, or since it's been open since March 2016 is there a dirty workaround I can use to install winehq-devel 2.1.0 on my Jessie install?

This is my /etc/fstab entry:

Code: Select all

# Wine repository
deb https://dl.winehq.org/wine-builds/debian/ jessie main
This is my apt error:

Code: Select all

Get:1 https://dl.winehq.org/wine-builds/debian/ jessie/main wine-devel-i386 i386 2.0.0~jessie [22.1 MB]
Err https://dl.winehq.org/wine-builds/debian/ jessie/main wine-devel-i386 i386 2.0.0~jessie
  HttpError404
E: Failed to fetch https://dl.winehq.org/wine-builds/debian/pool/main/w/wine-devel/wine-devel-i386_2.0.0~jessie_i386.deb  HttpError404

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by dimesio »

According to your log, you're trying to download 2.0.0. That's no longer in the repository; the current version is 2.1.0. http://dl.winehq.org/wine-builds/debian ... ine-devel/
User avatar
mainliner
Level 2
Level 2
Posts: 19
Joined: Thu Feb 09, 2017 11:42 am

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by mainliner »

Indeed that is what apt is doing. I'm issuing the command apt-get install winehq-devel and it errors as above.

Why is apt requesting 2.0.0 when the current version is 2.1.0, I thought this was the CDN syncing issue of Bug 30446? "tries to download 1.9.5 when 1.9.6 is the only version on the server"
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by dimesio »

Yes, it looks like the same issue; the workaround in https://bugs.winehq.org/show_bug.cgi?id=40346#c1 should get you the updated Packages.gz file.

You should leave a comment in the bug report that this is still happening.
User avatar
mainliner
Level 2
Level 2
Posts: 19
Joined: Thu Feb 09, 2017 11:42 am

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by mainliner »

Excuse my noobishness, I did read this entire thread and saw the issue was with Packages I guess I download the correct version of the file, but where should I put it? Or am I coming from completely the wrong end?
maxsu
Newbie
Newbie
Posts: 1
Joined: Sat Feb 11, 2017 9:21 pm

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by maxsu »

Mainliner, this is what I did to get up and running on debian stretch (a fix for jessie should be similar, more on that later):

1. Download the i386 and amd64 package lists from Michael Müller's post [1]
2. Install directly without doing an apt-get update

Code: Select all

#Set Distro
distro=stretch

#Point to the right resources
listDir=/var/lib/apt/lists
baseURL=https://dl.winehq.org/wine-builds/debian/dists/$distro/main/binary
baseList=$listDir/dl.winehq.org_wine-builds_debian_dists_"$distro"_main_binary

#Download files
wget $baseURL-i386/Packages?sync  -O $baseList-i386_Packages
wget $baseURL-amd64/Packages?sync -O $baseList-amd64_Packages

# Install
sudo apt-get install winehq-devel
Note: You will want to substitute 'jessie' instead of 'stretch'. Also, I do not know what will happen when the repository server issues a new (but possibly stale) package list. Apt-get upgrade may break wine at that point, but I'm not sure.

Hope this helps!
MrMatos
Newbie
Newbie
Posts: 1
Joined: Mon Feb 13, 2017 7:31 am

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by MrMatos »

Found same problem trying to install wine-devel on debian jessie.

maxsu fix seems to work right, I just replace distro name, I got an HTTP error at first try on "wine devel 2.1 amd64" but manually checked that file exists on repo and run twice. apt found file and completes installation.

Now is installing Mono and Gecko.

I think i finally realized what happens here:

1 - apt when updates, usually downloads lists of packages from the repos and patch the differences, in this case downloaded winehq lists seems to be wrong.
2 - the script bypasses apt update list downloading and get from manually configured url where are the right lists, then put into apt lists directory. I don't try yet if update again will replace right lists, But it's suposses that whill happen.
3 - Now apt can find all packages.

Anyway it's uncomprensible this kind of errors.
User avatar
mainliner
Level 2
Level 2
Posts: 19
Joined: Thu Feb 09, 2017 11:42 am

Re: Unable to install winehq-devel 2.1.0 on debian jessie

Post by mainliner »

Gentlemen your information is awesome and superbly presented. I can see how I can modify this script going forward to address this issue if (and when) it occurs in future.

Ta very much! :mrgreen:
Locked