LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 755|回复: 2

求助,更新出错!

[复制链接]
发表于 2009-5-27 17:03:37 | 显示全部楼层 |阅读模式
输入:apt-get update 后出现错误
Err http://ftp.tw.debian.org etch Release.gpg
  Temporary failure resolving 'ftp.tw.debian.org'
Err http://security.debian.org etch/updates Release.gpg
  Temporary failure resolving 'security.debian.org'
Failed to fetch http://ftp.tw.debian.org/debian/dists/etch/Release.gpg  Temporary failure resolving 'ftp.tw.debian.org'
Failed to fetch http://security.debian.org/dists/etch/updates/Release.gpg  Temporary failure resolving 'security.debian.org'
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

输入:apt-get -u upgrade出现
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
  linux-image-2.6-686 openssh-client openssh-server
The following packages will be upgraded:
  alsa-base apt-utils bind9-host cupsys cupsys-bsd cupsys-client cupsys-common dbus dbus-1-utils dnsutils dpkg-dev dselect evolution-common evolution-data-server-common file
  grub gs-esp hal initscripts libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-howl0 libavahi-glib1 libavcodec0d libbind9-0 libblkid1 libcairo2
  libcomerr2 libcupsimage2 libcupsys2 libdbus-1-3 libdns22 libexif12 libflac7 libfreetype6 libglib2.0-0 libgnutls13 libhal-storage1 libhal1 libisc11 libisccc0 libisccfg1
  libiw28 libkrb53 liblcms1 liblwres9 libmagic1 libmozjs0d libmyspell3c2 libnspr4-0d libnss3-0d libopal-2.2.0 libpcre3 libpng12-0 libpoppler0c2 libpostproc0d libpt-1.10.0
  libpt-plugins-alsa libpt-plugins-v4l librpcsecgss3 libsmbclient libsoup2.2-8 libspeex1 libss2 libssl0.9.8 libtiff4 libuuid1 libvorbis0a libvorbisenc2 libvorbisfile3
  libxfont1 libxine1 libxml2 libxml2-utils libxslt1.1 libxul-common linux-sound-base locales lsb-release mtr-tiny mutt mysql-server-5.0 nano nfs-common openssl poppler-utils
  python-libxml2 python2.4 python2.4-minimal rdesktop reportbug selinux-policy-refpolicy-targeted sysv-rc unicon-imc2 unzip vim-common vim-tiny xsltproc
99 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 87.0MB of archives.
After unpacking 2494kB disk space will be freed.
Do you want to continue [Y/n]?

输入Y后出现错误:
WARNING: The following packages cannot be authenticated!
  mysql-server-5.0 initscripts libblkid1 libcomerr2 libss2 libuuid1 sysv-rc apt-utils libgnutls13 libssl0.9.8 nano vim-tiny vim-common dselect libisc11 libdns22 libisccc0
  libisccfg1 libbind9-0 liblwres9 bind9-host dnsutils file libmagic1 libkrb53 libpcre3 librpcsecgss3 locales mtr-tiny mutt nfs-common reportbug
  selinux-policy-refpolicy-targeted linux-sound-base alsa-base libcupsys2 libpng12-0 libtiff4 libcupsimage2 libdbus-1-3 libfreetype6 libpoppler0c2 poppler-utils gs-esp
  cupsys-common cupsys cupsys-bsd cupsys-client dbus dbus-1-utils dpkg-dev evolution-common evolution-data-server-common grub libglib2.0-0 libhal1 libhal-storage1 hal
  libavahi-common-data libavahi-common3 libavahi-client3 libavahi-compat-howl0 libavahi-glib1 libvorbis0a libvorbisenc2 libavcodec0d libcairo2 libexif12 libflac7 liblcms1
  libnspr4-0d libmozjs0d libmyspell3c2 libnss3-0d libpt-plugins-alsa libpt-plugins-v4l libpt-1.10.0 libspeex1 libopal-2.2.0 libpostproc0d libsmbclient libxml2 libsoup2.2-8
  libvorbisfile3 libxfont1 libxine1 libxml2-utils libxslt1.1 libxul-common openssl python-libxml2 python2.4 python2.4-minimal rdesktop unicon-imc2 unzip xsltproc libiw28
  lsb-release
Install these packages without verification [y/N]?

再输入Y后,所有的更新包都报错

请问下怎么弄啊!
发表于 2009-5-27 17:08:31 | 显示全部楼层
你先清理一下,然后再试试。
回复 支持 反对

使用道具 举报

发表于 2009-5-27 18:34:39 | 显示全部楼层
好像不是什么错误,而是公钥过期吧。。。
========公钥过期的解决==================================
运行「sudo apt-get update」时,出现以下错误讯息:
W: GPG error: http://ppa.launchpad.net intrepid Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 7D2C7A23BF810CD5

不理这讯息也是可以继续安装,不过要知道,这 GPG key 是用来认证正确的软体来源,保护你的电脑,避免受到恶意软体的侵害。

那么用 GPG 来保护您的邮件!

那我们就透过 Keyserver 去找这组 GPG key 公钥「7D2C7A23BF810CD5」
在shell里执行

gpg --keyserver keyserver.ubuntu.com --recv-key [KEY_ID]

(KEY_ID 就是上文里的7D2C7A23BF810CD5)

gpg: 正在请求金钥 247D1CFF 自 hkp 伺服器 keyserver.ubuntu.com
gpg: 金钥 247D1CFF: "Launchpad PPA for OpenOffice.org Scribblers" 未改变
gpg: 处理总量: 1
gpg:              未改变的: 1

然后汇出存成 GPG 档
gpg --export --armor 7D2C7A23BF810CD5 > ooo.gpg

再汇入 GPG 档
sudo apt-key add ooo.gpg


在重新执行更新套件「sudo apt-get update」就不会再出现GPG key 公钥验证错误讯息了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表