麻烦老师解答一下,配置haproxy h2是出现如题问题。
尝试了 修改DNS,/etc/resolv.conf(我改的是docker外部的文件,haproxy中的文件还改不了,因为update没成功,也就不能下载vim)
尝试了rm -rf /var/lib/apt/lists/*
还是没成功update
在我尝试改之前,报错
root@eeaa2014c1d5:/# apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [2281 B]
Err:1 http://security.debian.org/debian-security stretch/updates InRelease
Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
Get:2 http://deb.debian.org/debian stretch InRelease [2281 B]
Err:2 http://deb.debian.org/debian stretch InRelease
Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
Get:3 http://deb.debian.org/debian stretch-updates InRelease [2281 B]
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
Fetched 6843 B in 0s (12.4 kB/s)
Reading package lists… Done
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
改之后报错如下:
root@eeaa2014c1d5:/# apt-get update
Err:1 http://deb.debian.org/debian stretch InRelease
Temporary failure resolving 'deb.debian.org’
Err:2 http://security.debian.org/debian-security stretch/updates InRelease
Temporary failure resolving 'security.debian.org’
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Temporary failure resolving 'deb.debian.org’
Reading package lists… Done
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'deb.debian.org’
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Temporary failure resolving 'security.debian.org’
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Temporary failure resolving 'deb.debian.org’
W: Some index files failed to download. They have been ignored, or old ones used instead.