无法解析主机:dl.winehq.org

无法解析主机:dl.winehq.org

我尝试按照列出的步骤安装 wine 版本 2.0.1https://wiki.winehq.org/Ubuntu。当我sudo apt-get update在终端中执行时,它返回为

 ~$ sudo apt-get update
 Hit:1 http://repo.steampowered.com/steam precise InRelease                       
 Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease         
 Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
 Err:4 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease                
  Could not resolve host: dl.winehq.org
 Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]     
 Hit:6 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu xenial InRelease
 Get:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]      
 Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [298 kB]
 Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [193 kB]
 Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [160 kB]
 Err:11 http://dl.google.com/linux/chrome/deb stable InRelease                  
Temporary failure resolving 'dl.google.com'
 Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [195 kB]
 Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2,520 B]
 Get:14 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,324 B]
 Get:15 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [3,980 B]
 Get:16 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54.6 kB]
 Get:17 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [50.7 kB]
 Get:18 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [32.2 kB]
 Get:19 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [37.0 kB]
 Fetched 1,337 kB in 1min 16s (17.4 kB/s)                                       

 Reading package lists... Done
 N: Ignoring file '20auto-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
 W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/xenial/InRelease  Could not resolve host: dl.winehq.org
 W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  Temporary failure resolving 'dl.google.com'
 W: Some index files failed to download. They have been ignored, or old ones used instead.

现在第 4 条中有一个术语指出Could not resolve host: dl.winehq.org这可能与 Wine 的存储库有关。我现在担心这可能会影响 Wine 的安装过程。我该怎么办?

答案1

我通过更换到最近的镜像服务器(菲律宾)解决了这个问题。

它没有下载 Chrome 存储库,但它下载了 Wine,所以我下载了

sudo apt-get install --install-recommends winehq-staging

第一次安装时由于缺少一些软件包而在 97% 时失败,但我只需重复我的命令即可安装 Wine。

希望它能帮助到有需要的人。

答案2

要解决这个问题,只需添加包:apt-transport-https

sudo apt install apt-transport-https

相关内容