Could not resolve host: dl.winehq.org

Questions about Wine on Linux
Locked
ramm001
Newbie
Newbie
Posts: 3
Joined: Fri Feb 16, 2018 6:16 pm

Could not resolve host: dl.winehq.org

Post by ramm001 »

Hello Everybody:
Today after starting my computer, i manually updated the package list on Ubuntu 16.04 (Xenial), and this message came out:

Code: Select all

Could not resolve host: dl.winehq.org
The full output for the action is:

Code: Select all

root@ramm001-Alienware-17-R3:/home/ramm001# apt-get update
Hit:1 http://cl.archive.ubuntu.com/ubuntu xenial InRelease  
Hit:2 http://cl.archive.ubuntu.com/ubuntu xenial-updates InRelease                    
Hit:3 http://cl.archive.ubuntu.com/ubuntu xenial-backports InRelease                  
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease                       
Hit:5 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                                 
Hit:7 http://ppa.launchpad.net/gregory-hainaut/pcsx2.official.ppa/ubuntu xenial InRelease                   
Hit:8 http://ppa.launchpad.net/i-nex-development-team/stable/ubuntu xenial InRelease                        
Hit:9 http://ppa.launchpad.net/ppsspp/stable/ubuntu xenial InRelease                                        
Hit:10 http://ppa.launchpad.net/ricotz/unstable/ubuntu xenial InRelease                                     
Hit:11 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease                                     
Err:12 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease                 
  Could not resolve host: dl.winehq.org
Ign:13 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:14 http://dl.google.com/linux/chrome/deb stable Release
Reading package lists... Done 
W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/xenial/InRelease  Could not resolve host: dl.winehq.org
W: Some index files failed to download. They have been ignored, or old ones used instead.
Could you tell me whether this is output is given by maintenance in the repositories or is it that i am using something wrong in my sources.list (By the way i used this line at sources.list since the beginning of time, and it never showed problems).

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu xenial main
If you could help me, thanks in advance!!
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: Could not resolve host: dl.winehq.org

Post by dimesio »

The repository is up and accessible; I have no problem browsing and downloading via Firefox. As to the error message from apt-get, I noticed that dl.winehq.org is the only repository on your system that uses https://, and googling found https://unix.stackexchange.com/question ... n-apt-tool.
ramm001
Newbie
Newbie
Posts: 3
Joined: Fri Feb 16, 2018 6:16 pm

Re: Could not resolve host: dl.winehq.org

Post by ramm001 »

Thanks for your answer!!
However, I neither have problems accessing the repo via browser. And, as it seems to suggest the link you sent, in Ubuntu, one needs to install the apt-transport-https, package in order to read correctly the repo, which I have correctly installed (after a quick check on synaptic). It seems that all the keys are correctly installed as well.
In order to increase the mystery, a week ago or so, I refreshed manually the repo via apt-get update, and i had the same result. However, after dozens of attempts executing apt-get updare, the package list sent no warnings. After being happy for 1 or 2 minutes, I updated it once more, and all the warnings came up once more... Today, the problem persists.
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: Could not resolve host: dl.winehq.org

Post by dimesio »

ramm001 wrote:

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu xenial main
Looks like you followed the instructions for Linux Mint. That's not correct for Ubuntu.

From https://wiki.winehq.org/Ubuntu:
Add the repository:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
ramm001
Newbie
Newbie
Posts: 3
Joined: Fri Feb 16, 2018 6:16 pm

Re: Could not resolve host: dl.winehq.org

Post by ramm001 »

Hello Again!!
Thx for your answer, however I've been very busy during these days so I could read your answer just today!! Unfortunately, the repo keeps without being updated properly. I followed your instrucions after removing the original repo from my sources.list. However I still have some doubts about the answer. First, This what i wrote a while ago:

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu xenial main
Nevertheless, your said:
Looks like you followed the instructions for Linux Mint. That's not correct for Ubuntu.
Ok you say that I should input the command

Code: Select all

...
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
And this last line adds exactly the same line I mentioned above plus a commented line (now I am sending the line apt added to my sources.list) (Ok, it has an extra "/" at the end of the address):

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial main
Despite I followed the instructions, the output for apt-get update keeps sending me the same error

Code: Select all

Hit:1 http://linux.teamviewer.com/deb stable InRelease                   
Hit:2 http://linux.teamviewer.com/deb preview InRelease                                                                                                                           
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                      
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease                                                                                                          
Hit:5 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu xenial InRelease                                     
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                                                    
Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                                         
Hit:9 http://ppa.launchpad.net/gregory-hainaut/pcsx2.official.ppa/ubuntu xenial InRelease                           
Hit:10 http://ppa.launchpad.net/i-nex-development-team/stable/ubuntu xenial InRelease                               
Hit:11 http://ppa.launchpad.net/ppsspp/stable/ubuntu xenial InRelease                                                
Hit:12 http://ppa.launchpad.net/ricotz/unstable/ubuntu xenial InRelease                                              
Hit:13 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease                                             
Err:14 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease    
  Could not resolve host: dl.winehq.org
Hit:15 http://cl.archive.ubuntu.com/ubuntu xenial InRelease
Hit:16 http://cl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:17 http://cl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/xenial/InRelease  Could not resolve host: dl.winehq.org
W: Some index files failed to download. They have been ignored, or old ones used instead.
What did I do wrong if I followed your instructions? Is there any other way to add the repository?
Thx in advance!!
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Could not resolve host: dl.winehq.org

Post by Cybermax »

Do you by any chance use a proxy?

And what is the result of :

Code: Select all

host -v dl.winehq.org
Locked