在过去几天里,我的 Ubuntu 11.10 更新管理器无法获取新更新。当我检查更新日志时,我发现有几个更新显示“网络不可用”。对于其他更新,它下载了日志,并且互联网连接也正常工作。
由于垃圾邮件防范政策,无法附加屏幕截图。但对于以下版本
gpgv:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_oneiric_Release.gpg
它显示“网络不可用”
对于所有其他版本,下载都很顺利。因此,我在过去 10 天内没有看到任何可用的更新。
sudo apt-get update 的日志:
dipen@EIDLCPU1018:~$ sudo apt-get update
[sudo] password for dipen:
Ign http:/extras.ubuntu.com oneiric InRelease
Ign http:/archive.canonical.com oneiric InRelease
Ign http:/archive.canonical.com lucid InRelease
Get:1 http:/extras.ubuntu.com oneiric Release.gpg [72 B]
Get:2 http:/archive.canonical.com oneiric Release.gpg [198 B]
Hit http:/extras.ubuntu.com oneiric Release
Get:3 http:/archive.canonical.com lucid Release.gpg [198 B]
Err http:/extras.ubuntu.com oneiric Release
Hit http:/archive.canonical.com oneiric Release
Ign http:/archive.canonical.com oneiric Release
Hit http:/archive.canonical.com lucid Release
Ign http:/archive.canonical.com lucid Release
Ign http:/archive.canonical.com oneiric/partner i386 Packages/DiffIndex
Ign http:/archive.canonical.com oneiric/partner TranslationIndex
Ign http:/archive.canonical.com lucid/partner i386 Packages/DiffIndex
Ign http:/archive.canonical.com lucid/partner TranslationIndex
Hit http:/archive.canonical.com oneiric/partner i386 Packages
Hit http:/archive.canonical.com lucid/partner i386 Packages
Ign http:/dl.google.com stable InRelease
Ign http:/archive.canonical.com oneiric/partner Translation-en_IN
Ign http:/archive.canonical.com oneiric/partner Translation-en
Ign http:/archive.canonical.com lucid/partner Translation-en_IN
Ign http:/archive.canonical.com lucid/partner Translation-en
Ign http:/in.archive.ubuntu.com oneiric InRelease
Ign http:/in.archive.ubuntu.com oneiric-updates InRelease
Ign http:/in.archive.ubuntu.com oneiric-security InRelease
Get:4 http//dl.google.com stable Release.gpg [198 B]
Get:5 http//in.archive.ubuntu.com oneiric Release.gpg [198 B]
Get:6 http//in.archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:7 http//in.archive.ubuntu.com oneiric-security Release.gpg [198 B]
Hit http:/in.archive.ubuntu.com oneiric Release
Ign http:/in.archive.ubuntu.com oneiric Release
Hit http:/in.archive.ubuntu.com oneiric-updates Release
Err http:/in.archive.ubuntu.com oneiric-updates Release
Hit http:/in.archive.ubuntu.com oneiric-security Release
Ign http:/in.archive.ubuntu.com oneiric-security Release
Ign http:/in.archive.ubuntu.com oneiric/main i386 Packages/DiffIndex
Ign http:/in.archive.ubuntu.com oneiric/restricted i386 Packages/DiffIndex
Ign http:/in.archive.ubuntu.com oneiric/universe i386 Packages/DiffIndex
Ign http:/in.archive.ubuntu.com oneiric/multiverse i386 Packages/DiffIndex
Hit http:/in.archive.ubuntu.com oneiric/main TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric/universe TranslationIndex
Ign http:/in.archive.ubuntu.com oneiric-security/main i386 Packages/DiffIndex
Ign http:/in.archive.ubuntu.com oneiric-security/restricted i386 Packages/DiffIndex
Ign http:/in.archive.ubuntu.com oneiric-security/universe i386 Packages/DiffIndex
Ign http:/in.archive.ubuntu.com oneiric-security/multiverse i386 Packages/DiffIndex
Hit http:/in.archive.ubuntu.com oneiric-security/main TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric-security/universe TranslationIndex
Hit http:/in.archive.ubuntu.com oneiric/main i386 Packages
Hit http:/in.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http:/in.archive.ubuntu.com oneiric/universe i386 Packages
Hit http:/in.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http:/in.archive.ubuntu.com oneiric/main Translation-en
Hit http:/in.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http:/in.archive.ubuntu.com oneiric/restricted Translation-en
Hit http:/in.archive.ubuntu.com oneiric/universe Translation-en
Hit http:/in.archive.ubuntu.com oneiric-security/main i386 Packages
Hit http:/in.archive.ubuntu.com oneiric-security/restricted i386 Packages
Hit http:/in.archive.ubuntu.com oneiric-security/universe i386 Packages
Hit http:/in.archive.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http:/in.archive.ubuntu.com oneiric-security/main Translation-en
Hit http:/in.archive.ubuntu.com oneiric-security/multiverse Translation-en
Get:8 http//dl.google.com stable Release [1,347 B]
Hit http:/in.archive.ubuntu.com oneiric-security/restricted Translation-en
Hit http:/in.archive.ubuntu.com oneiric-security/universe Translation-en
Get:9 http//dl.google.com stable/main i386 Packages [1,214 B]
Ign http:/dl.google.com stable/main TranslationIndex
Ign http:/dl.google.com stable/main Translation-en_IN
Ign http:/dl.google.com stable/main Translation-en
Fetched 3,821 B in 41s (91 B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:/extras.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>
W: GPG error: http:/archive.canonical.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: GPG error: http:/archive.canonical.com lucid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: GPG error: http:/in.archive.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:/in.archive.ubuntu.com oneiric-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: GPG error: http:/in.archive.ubuntu.com oneiric-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: Failed to fetch http:/extras.ubuntu.com/ubuntu/dists/oneiric/Release
W: Failed to fetch http:/in.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
dipen@EIDLCPU1018:~$
sudo apt-get upgrade 的日志:
dipen@EIDLCPU1018:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
ghc6-doc haskell-zlib-doc libghc6-zlib-doc
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
dipen@EIDLCPU1018:~$
/etc/apt/sources.list:
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric universe
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb http:/archive.canonical.com/ubuntu oneiric partner
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric-security main restricted
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric-security universe
deb http:/in.archive.ubuntu.com/ubuntu/ oneiric-security multiverse
deb http:/extras.ubuntu.com/ubuntu oneiric main #Third party developers repository
deb http:/archive.canonical.com/ lucid partner
答案1
您有几个问题需要纠正:
打开终端并输入
sudo nano /etc/apt/sources.list
查找lucid
包含以下内容的行,例如
deb http:/archive.canonical.com/ lucid partner
#
在行首添加一个来注释掉它——例如
#deb http:/archive.canonical.com/ lucid partner
保存并重新运行
sudo apt-get update && sudo apt-get upgrade
您有许多错误巴德西格- 这是由于安全证书未正确下载造成的。您可以按照下面链接的问答中的说明来纠正此问题。
修正后巴德西格错误重新运行:
sudo apt-get update && sudo apt-get upgrade
相关问题:
`
答案2
你能从终端 ping 一个外部站点吗?尝试以下方法:
$ ping google.com
如果它有效,您就不会遇到连接问题。
尝试通过 apt-get 运行更新:
# apt-get update
进而:
# apt-get upgrade
这些有用吗?
如果可以的话,请尝试查看 apt 的源列表:
# more /etc/apt/sources.list
这些条目看上去还好吗?
另外,为了安全起见,您正在使用 Ubuntu 11.10,只是想获取软件更新,对吗?您不是想进行 dist-upgrade 吗?