我有一台运行在Debian Wheezy上的服务器。
它的源文件有以下configuration:
deb http://ftp.uk.debian.org/debian/ wheezy main non-free contrib deb-src http://ftp.uk.debian.org/debian/ wheezy main non-free contrib deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free # wheezy-updates, previously known as 'volatile' deb http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
当我尝试更新时,我得到官方Debian仓库的GPG错误:
root@osgb:~# apt-get clean root@osgb:~# apt-get update Get:1 http://security.debian.org wheezy/updates Release.gpg Get:2 http://ftp.uk.debian.org wheezy Release.gpg Get:3 http://ftp.uk.debian.org wheezy-updates Release.gpg Get:4 http://security.debian.org wheezy/updates Release Ign http://security.debian.org wheezy/updates Release E: GPG error: http://security.debian.org wheezy/updates Release: The following signatures were invalid: NODATA 1 NODATA 2
如果我从sources.list文件中删除安全存储库并尝试再次进行apt-get update ,那么同样的错误会出现在ftp.uk.debian.org
root@osgb:~# apt-get clean root@osgb:~# apt-get update Get:1 http://ftp.uk.debian.org wheezy Release.gpg Get:2 http://ftp.uk.debian.org wheezy-updates Release.gpg Get:3 http://ftp.uk.debian.org wheezy Release Ign http://ftp.uk.debian.org wheezy Release E: GPG error: http://ftp.uk.debian.org wheezy Release: The following signatures were invalid: NODATA 1 NODATA 2
我到目前为止所尝试的是;
debian-keyring和debian-archive-keyring deb文件, /var/lib/apt/lists并通过创build部分文件夹,apt-get清理等来强制重新生成(如许多post中提供的) 他们没有一个帮助。
那么,这个错误是什么呢,即这是什么意思? 你有什么想法解决它?
更新(18/08/2015) :
服务器没有任何磁盘空间问题。 它有一个单独的分区设置,有足够的空间:
root@osgb:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 259G 22G 224G 9% / udev 10M 0 10M 0% /dev tmpfs 1.2G 240K 1.2G 1% /run /dev/disk/by-uuid/b76a2c04-44b6-4a9e-bace-7286a67a0f8d 259G 22G 224G 9% / tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 4.6G 0 4.6G 0% /run/shm
更新(20/08/2015)
build议,我试着更新密钥,但似乎我的服务器已经有最新的密钥。 不幸的是,强大的NODATA错误依然存在。
root@osgb:~# apt-key update gpg: key B98321F9: "Squeeze Stable Release Key <[email protected]>" not changed gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) <[email protected]>" not changed gpg: key 65FFB764: "Wheezy Stable Release Key <[email protected]>" not changed gpg: key 46925553: "Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>" not changed gpg: key 518E17E1: "Jessie Stable Release Key <[email protected]>" not changed gpg: key 2B90D010: "Debian Archive Automatic Signing Key (8/jessie) <[email protected]>" not changed gpg: key C857C906: "Debian Security Archive Automatic Signing Key (8/jessie) <[email protected]>" not changed gpg: Total number processed: 7 gpg: unchanged: 7 root@osgb:~# apt-get update Get:1 http://ftp.uk.debian.org wheezy Release.gpg Get:2 http://ftp.uk.debian.org wheezy-updates Release.gpg Get:3 http://ftp.uk.debian.org wheezy Release Ign http://ftp.uk.debian.org wheezy Release E: GPG error: http://ftp.uk.debian.org wheezy Release: The following signatures were invalid: NODATA 1 NODATA 2
================================================== =======================
我以为它不能成为一个防火墙的问题,因为使用的端口是80,我可以手动连接。 但是,在应用程序级别检测到防火墙阻止了服务器的请求。 防火墙认为apt-get是一个可疑的应用程序被阻止,除非明确允许。 我们将其添加到白名单,现在已经可以了!
当我被本地防火墙阻止时,我遇到了这个问题。 您可能想要更改存储库行以不使用ftp镜像。
试试http://free.hands.com/debian/ 。 其余的路线是好的; 你只是取代http://ftp.uk.debian.org 。