更新系统时出错

更新系统时出错

apt-get update每当我在终端中尝试 sudo 时,它都会引发以下错误:-

Err http://archive.canonical.com precise InRelease

Err http://archive.canonical.com precise Release.gpg
  Unable to connect to 111.125.139.199:8105:
Err http://archive.ubuntu.com precise InRelease     

Err http://archive.ubuntu.com precise Release.gpg   
  Unable to connect to 111.125.139.199:8105:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease  

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/InRelease  

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg  Unable to connect to 111.125.139.199:8105:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Unable to connect to 111.125.139.199:8105:

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

还出现了以下问题,可能是由于同一问题造成的:-

gerrit 推送不起作用

打印机添加按钮未启用

apt-get 安装不起作用

无法从 eclipse 获取 git

/etc/apt/sources.list 的内容:-

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu precise main restricted deb-src http://archive.ubuntu.com/ubuntu precise main restricted

## Major bug fix updates produced after the final release of the
## distribution. deb http://archive.ubuntu.com/ubuntu precise-updates main restricted deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu precise universe deb-src http://archive.ubuntu.com/ubuntu precise universe deb http://archive.ubuntu.com/ubuntu precise-updates universe deb-src http://archive.ubuntu.com/ubuntu precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe

deb http://archive.ubuntu.com/ubuntu precise-security main restricted deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted deb http://archive.ubuntu.com/ubuntu precise-security universe deb-src http://archive.ubuntu.com/ubuntu precise-security universe

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu precise partner deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

答案1

检查你的互联网连接是否正常。然后进入更新中心,进入设置并取消选中出现错误的来源。或者查看这个答案Apt-Get 更新:获取失败;无法连接到任何源

相关内容