首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sudo apt-get更新后的错误sudo apt-get自动删除openjdk-7-jre

sudo apt-get更新后的错误sudo apt-get自动删除openjdk-7-jre
EN

Ask Ubuntu用户
提问于 2014-10-11 03:15:08
回答 1查看 1K关注 0票数 1

在执行此命令sudo apt-get autoremove openjdk-7-jre之前,一切都很好。在openjdk-7-jre获得removed.Then之后,当我尝试sudo apt-get update时,会得到以下错误:

代码语言:javascript
复制
0% [Working]

Err http://ppa.launchpad.net precise Release.gpg

  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)


0% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com]
                                                                A        
Err http://extras.ubuntu.com precise Release.gpg

  Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)


0% [Connecting to security.ubuntu.com] [Connecting to ppa.launchpad.net]

Err http://security.ubuntu.com precise-security Release.gpg

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)



0% [Connecting to ppa.launchpad.net]

Ign http://ppa.launchpad.net precise Release


4% [Connecting to extras.ubuntu.com]

Ign http://ppa.launchpad.net precise/main Sources/DiffIndex



8% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com]

Ign http://security.ubuntu.com precise-security Release



6% [Connecting to extras.ubuntu.com]

Ign http://extras.ubuntu.com precise Release


7% [Connecting to ppa.launchpad.net]

Ign http://security.ubuntu.com precise-security/main Sources/DiffIndex



9% [Connecting to extras.ubuntu.com] [Connecting to ppa.launchpad.net]

Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex



10% [Connecting to extras.ubuntu.com] [Connecting to ppa.launchpad.net]

Ign http://ppa.launchpad.net precise/main TranslationIndex



11% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/restricted Sources/DiffIndex


12% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/universe Sources/DiffIndex


13% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/multiverse Sources/DiffIndex


14% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://extras.ubuntu.com precise/main Sources/DiffIndex



15% [Connecting to security.ubuntu.com] [Connecting to ppa.launchpad.net]

Ign http://security.ubuntu.com precise-security/main i386 Packages/DiffIndex



16% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://extras.ubuntu.com precise/main i386 Packages/DiffIndex


17% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/restricted i386 Packages/DiffIndex


18% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://extras.ubuntu.com precise/main TranslationIndex


18% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/universe i386 Packages/DiffIndex


19% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/multiverse i386 Packages/DiffIndex


20% [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com] [Conn

Ign http://security.ubuntu.com precise-security/main TranslationIndex


20% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://security.ubuntu.com precise-security/multiverse TranslationIndex


20% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://security.ubuntu.com precise-security/restricted TranslationIndex


20% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://security.ubuntu.com precise-security/universe TranslationIndex


21% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Err http://in.archive.ubuntu.com precise Release.gpg

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


20% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Err http://in.archive.ubuntu.com precise-updates Release.gpg

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


20% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Err http://in.archive.ubuntu.com precise-backports Release.gpg

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


19% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://in.archive.ubuntu.com precise Release


17% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://in.archive.ubuntu.com precise-updates Release


15% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Err http://ppa.launchpad.net precise/main Sources

  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)


15% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://in.archive.ubuntu.com precise-backports Release


13% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Err http://extras.ubuntu.com precise/main Sources

  Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)



Err http://ppa.launchpad.net precise/main i386 Packages

  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)



Err http://ppa.launchpad.net precise/main Translation-en_IN

  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)



Err http://ppa.launchpad.net precise/main Translation-en

  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)


13% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com] [

Ign http://in.archive.ubuntu.com precise/main Sources/DiffIndex



Ign http://in.archive.ubuntu.com precise/restricted Sources/DiffIndex



Err http://extras.ubuntu.com precise/main i386 Packages

  Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)



14% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/universe Sources/DiffIndex


Err http://extras.ubuntu.com precise/main Translation-en_IN

  Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)


Err http://extras.ubuntu.com precise/main Translation-en

  Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)


15% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/multiverse Sources/DiffIndex


15% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/main i386 Packages/DiffIndex


15% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/restricted i386 Packages/DiffIndex


16% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/universe i386 Packages/DiffIndex


16% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/multiverse i386 Packages/DiffIndex


16% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/main TranslationIndex


16% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/multiverse TranslationIndex


17% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/restricted TranslationIndex


17% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise/universe TranslationIndex


17% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/main Sources/DiffIndex


17% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/restricted Sources/DiffIndex


18% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/universe Sources/DiffIndex



18% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/multiverse Sources/DiffIndex


18% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/main i386 Packages/DiffIndex


18% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/restricted i386 Packages/DiffIndex


19% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/universe i386 Packages/DiffIndex


19% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/multiverse i386 Packages/DiffIndex


19% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/main TranslationIndex


19% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/multiverse TranslationIndex


19% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/restricted TranslationIndex


20% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-updates/universe TranslationIndex


20% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/main Sources/DiffIndex


20% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/restricted Sources/DiffIndex


20% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/universe Sources/DiffIndex


20% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/multiverse Sources/DiffIndex


21% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/main i386 Packages/DiffIndex


21% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/restricted i386 Packages/DiffIndex


21% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/universe i386 Packages/DiffIndex


21% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/multiverse i386 Packages/DiffIndex


22% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/main TranslationIndex


22% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/multiverse TranslationIndex


22% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/restricted TranslationIndex


22% [Connecting to security.ubuntu.com]

Ign http://in.archive.ubuntu.com precise-backports/universe TranslationIndex


22% [Connecting to security.ubuntu.com]

Err http://security.ubuntu.com precise-security/main Sources

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)



22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/restricted Sources

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/universe Sources

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/multiverse Sources

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/main i386 Packages

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/restricted i386 Packages

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/universe i386 Packages

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/multiverse i386 Packages

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/main Translation-en_IN

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/main Translation-en

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/multiverse Translation-en_IN

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/multiverse Translation-en

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/restricted Translation-en_IN

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/restricted Translation-en

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/universe Translation-en_IN

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://security.ubuntu.com precise-security/universe Translation-en

  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Connecting to in.archive.ubuntu.com]

Err http://in.archive.ubuntu.com precise/main Sources

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)



22% [Working]

Err http://in.archive.ubuntu.com precise/restricted Sources

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/multiverse Sources

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/main i386 Packages

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/restricted i386 Packages

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/universe i386 Packages

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/multiverse i386 Packages

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/main Translation-en_IN

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/main Translation-en

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/multiverse Translation-en

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/restricted Translation-en_IN

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise/restricted Translation-en

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise-backports/universe Sources

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)

22% [Working]

Err http://in.archive.ubuntu.com precise-backports/multiverse Translation-en_IN

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


22% [Working]

Err http://in.archive.ubuntu.com precise-backports/multiverse Translation-en

  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/precise/main/i18n/Translation-en_IN  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)



W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/precise/main/i18n/Translation-en  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/restricted/source/Sources  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en_IN  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/multiverse/i18n/Translation-en_IN  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/i18n/Translation-en  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/i18n/Translation-en_IN  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/i18n/Translation-en  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-backports/main/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/source/Sources  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)


E: Some index files failed to download. They have been ignored, or old ones used instead.

如何解决这个问题?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2014-10-11 04:38:39

尝试从NetwrokManager内部编辑DNS服务器。

第一次在终端运行

代码语言:javascript
复制
sudo rm /var/lib/apt/lists/* -vf 

然后打开NetworkManager并编辑当前连接,更改DNS设置。转到ipv4设置,选择自动地址作为方法,并手动编写所需的DNS服务器。在这里,我们使用Google OpenDNS服务器8.8.8.8和8.8.8.4,您可以通过用逗号分隔它们来添加多个地址。

那就跑

代码语言:javascript
复制
sudo service network-manager restart 
sudo apt-get update 
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/534714

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档