运行时我得到以下输出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.
Run Code Online (Sandbox Code Playgroud)
这是什么意思,我该如何解决这个问题?
要修复,请删除旧的Varnish-Cache 和损坏的 APT 存储库源:
sudo apt-get purge varnish
sudo rm /etc/apt/sources.list.d/varnish*
sudo apt-key list | grep "varnish"
^(在左侧找到与 varnish-cache 匹配的 GPG 'KeyID')
sudo apt-key del (Varnish-Cache GPG KeyID from above)
运行 apt update - 您应该不会再看到错误:
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
| 归档时间: |
|
| 查看次数: |
8033 次 |
| 最近记录: |