在运行sudo apt-get update时,我得到以下输出:
Ign https://repo.varnish-cache.org trusty Release
Ign https://repo.varnish-cache.org trusty/varnish-4.0 amd64 Packages/DiffIndex
Ign https://repo.varnish-cache.org trusty/varnish-4.0 i386 Packages/DiffIndex
Ign https://repo.varnish-cache.org trusty/varnish-4.0 Translation-en_US
Ign https://repo.varnish-cache.org trusty/varnish-4.0 Translation-en
Err https://repo.varnish-cache.org trusty/varnish-4.0 amd64 Packages
gnutls_handshake() failed: Handshake failed
Err https://repo.varnish-cache.org trusty/varnish-4.0 i386 Packages
gnutls_handshake() failed: Handshake failed
Fetched 5,403 kB in 10s (506 kB/s)
W: Failed to fetch https://repo.varnish-cache.org/ubuntu/dists/trusty/varnish-4.0/binary-amd64/Packages gnutls_handshake() failed: Handshake failed
W: Failed to fetch https://repo.varnish-cache.org/ubuntu/dists/trusty/varnish-4.0/binary-i386/Packages gnutls_handshake() failed: Handshake failed
E: Some index files failed to download. They have been ignored, or old ones used instead.这意味着什么,我该如何解决这个问题?
发布于 2017-09-05 17:38:05
这是ssl错误。
如果你访问主页,你会得到:
Repo.varns-cache.org不再是了。项目主页提供了获取发布版本、软件包等的详细信息。
如果然后转到主页:http://varnish-cache.org/releases/
你会看到
Deb和RPM存储库现在在Packagec头,用于Debian、Ubuntu、CentOS和Red的官方包现在位于Packagecloud.io的存储库中。Repo.varn-cache.org存储库的用户将不得不将其主机更改为新的存储库配置。有关详细信息,请参阅下面有关发行版的各节。
翻阅这一页,会意外地导致
https://packagecloud.io/varnishcache/varnish5/install
因此,说到底,您有一个ssl错误,因为回购不再存在,您需要更新您的repos ;)
发布于 2017-09-27 16:24:27
若要修复,请删除旧的清漆缓存和损坏的APT回购源:
sudo apt-get purge varnish
sudo rm /etc/apt/sources.list.d/varnish*
sudo apt-key list | grep "varnish"
^(在左侧找到与清漆缓存匹配的GPG 'KeyID‘)
sudo apt-key del (Varnish-Cache GPG KeyID from above)
运行apt更新-您应该不会看到更多的错误:
sudo apt-get update
如果您希望通过正式的Ubuntu回购再次安装它:
sudo apt-get install varnish
请参阅:https://varnish-cache.org/releases/install_debian.html
如果您希望安装最新或开发版本,请遵循以下(或更新的指南):
=> https://packagecloud.io/varnishcache/varnish5/install#bash-deb
发布于 2020-11-06 21:04:58
我在Ubuntu14.04上遇到了一个类似的问题。我有这个..。
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
printf "Package: *\nPin: origin apt.syncthing.net\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing
sudo apt-get update
sudo apt-get install -y syncthing..。这给了我这个错误..。
W: Failed to fetch https://apt.syncthing.net/dists/syncthing/stable/binary-amd64/Packages gnutls_handshake() failed: Handshake failed我唯一需要做的就是将https://apt.syncthing.net/更改为http://apt.syncthing.net/,因此它使用http而不是https。这不太安全,但是当您使用Ubuntu14.04这样的旧系统时,它是一个快速安装包的方法,Ubuntu14.04没有某些较新的APT repos期望客户端使用的所有最新https密码。
https://askubuntu.com/questions/953039
复制相似问题