Debian Jessie - apt-get Failed to fetch ..

Questions about Wine on Linux
Locked
artomason
Level 1
Level 1
Posts: 5
Joined: Thu Mar 24, 2016 11:23 am

Debian Jessie - apt-get Failed to fetch ..

Post by artomason »

I read over https://wiki.winehq.org/Debian and followed the steps. When I run "sudo apt-get update", apt returns the following errors

Err https://dl.winehq.org jessie/main amd64 Packages
Err https://dl.winehq.org jessie/main i386 Packages

W: Failed to fetch https://dl.winehq.org/wine-builds/debia ... 4/Packages
W: Failed to fetch https://dl.winehq.org/wine-builds/debia ... 6/Packages

I have double and triple checked everything, but I'm not sure what is going on.

Here is my sources.list

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free

deb https://dl.winehq.org/wine-builds/debian/ jessie main
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Debian Jessie - apt-get Failed to fetch ..

Post by dimesio »

artomason
Level 1
Level 1
Posts: 5
Joined: Thu Mar 24, 2016 11:23 am

Re: Debian Jessie - apt-get Failed to fetch ..

Post by artomason »

I'm not entirely sure that covers my issue, and I did see this bug report prior.

The bug report seems to suggest that the user was able to get past the 'apt-get update' part of the guide, but experiences an Error 404 when trying to install using 'apt-get install' due to server side caching issues.

On my side 'apt-get update' doesn't even acknowledge that the repository exists. The error lines I posted in my original topic are from the 'apt-get update' process which would suggest I might have "fat fingered" something during the setup, but when I check over the sources.list, everything seems to be in place.

Before anyone asks, I did download the key. Something 'wget' had complained about was the key being invalid (Unknown Signer), which required a work around.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Debian Jessie - apt-get Failed to fetch ..

Post by dimesio »

Before anyone asks, I did download the key. Something 'wget' had complained about was the key being invalid (Unknown Signer), which required a work around.
That doesn't make sense. Wget just downloads the file; it doesn't check the validity of the key. Are you sure it wasn't apt-key complaining?

Nobody else has reported needing a "workaround" to install the key and AFAIK you shouldn't need one, so my guess would be something went wrong with that. Try downloading and installing it again.
artomason
Level 1
Level 1
Posts: 5
Joined: Thu Mar 24, 2016 11:23 am

Re: Debian Jessie - apt-get Failed to fetch ..

Post by artomason »

Apparently it does in Debian Jessie 8.3 lol.

wget https://dl.winehq.org/wine-builds/Release.key

--2016-03-26 09:11:09-- https://dl.winehq.org/wine-builds/Release.key
Resolving dl.winehq.org (dl.winehq.org)... 23.235.39.69
Connecting to dl.winehq.org (dl.winehq.org)|23.235.39.69|:443... connected.
ERROR: The certificate of ‘dl.winehq.org’ is not trusted.
ERROR: The certificate of ‘dl.winehq.org’ hasn't got a known issuer.
artomason
Level 1
Level 1
Posts: 5
Joined: Thu Mar 24, 2016 11:23 am

Re: Debian Jessie - apt-get Failed to fetch ..

Post by artomason »

If I use this instead, the certificate downloads without an issue. Although I'm not sure that this had anything to due with the error I'm getting.

Code: Select all

wget --no-check-certificate https://dl.winehq.org/wine-builds/Release.key
I'm not sure what I need to do in order to pull more information, admittedly I haven't used Linux other than experimenting with it in the past.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Debian Jessie - apt-get Failed to fetch ..

Post by dimesio »

Wget doesn't do that when I download the key on openSUSE, and no other Debian user has reported this as a problem. Maybe you need to update the certificates on your system?
artomason
Level 1
Level 1
Posts: 5
Joined: Thu Mar 24, 2016 11:23 am

Re: Debian Jessie - apt-get Failed to fetch ..

Post by artomason »

Well it seems that was the start of my issues. I was missing ca-certificates from the Debian repository, something that was not automatically installed during a minimal setup of Debian 8 + Gnome. After I installed the ca-certificates and OpenSSL package I was able to issue update-ca-certificates which fixed the issue. It seems that was also causing a problem with apt-get.
Locked