更新未发生 sudo apt-get update 命令

更新未发生 sudo apt-get update 命令

以下是错误输出:

**W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources  404  Not Found [IP: 91.189.92.152 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.152 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.92.152 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources  404  Not Found [IP: 91.189.92.152 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.152 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  404  Not Found [IP: 91.189.92.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead**.

# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.

## 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://in.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty 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.
deb http://in.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty multiverse

## 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.


## 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 trusty partner
deb-src http://archive.canonical.com/ubuntu trusty 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 trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
deb http://archive.canonical.com/ trusty partner
deb-src http://archive.canonical.com/ trusty partner
deb-src http://archive.canonical.com/ trusty partner
deb http://in.archive.ubuntu.com/ubuntu trusty-security main restricted #Added by enableDisableDistribution
deb-src http://in.archive.ubuntu.com/ubuntu trusty-security main restricted #Added by enableDisableDistribution
deb http://in.archive.ubuntu.com/ubuntu trusty-security universe #Added by enableDisableDistribution
deb-src http://in.archive.ubuntu.com/ubuntu trusty-security universe #Added by enableDisableDistribution
deb http://in.archive.ubuntu.com/ubuntu trusty-security multiverse #Added by enableDisableDistribution
deb-src http://in.archive.ubuntu.com/ubuntu trusty-security multiverse #Added by enableDisableDistribution
deb http://extras.ubuntu.com/ubuntu trusty-security main #Added by enableDisableDistribution
deb-src http://extras.ubuntu.com/ubuntu trusty-security main #Added by enableDisableDistribution
deb http://in.archive.ubuntu.com/ubuntu trusty-updates main restricted #Added by enableDisableDistribution
deb-src http://in.archive.ubuntu.com/ubuntu trusty-updates main restricted #Added by enableDisableDistribution
deb http://in.archive.ubuntu.com/ubuntu trusty-updates universe #Added by enableDisableDistribution
deb-src http://in.archive.ubuntu.com/ubuntu trusty-updates universe #Added by enableDisableDistribution
deb http://in.archive.ubuntu.com/ubuntu trusty-updates multiverse #Added by enableDisableDistribution
deb-src http://in.archive.ubuntu.com/ubuntu trusty-updates multiverse #Added by enableDisableDistribution
deb http://extras.ubuntu.com/ubuntu trusty-updates main #Added by enableDisableDistribution
deb-src http://extras.ubuntu.com/ubuntu trusty-updates main #Added by enableDisableDistribution
deb http://in.archive.ubuntu.com/ubuntu/ trusty-proposed universe restricted main multiverse

答案1

额外存储库不应有trusty-security或条目。trusty-updates

如果你去http://extras.ubuntu.com/ubuntu/dists/在您的网络浏览器中,您将看到 trusty-security 和 trusty-updates 没有列出。

运行以下命令来修复该问题:

sudo sed -i 's|deb http://extras.ubuntu.com/ubuntu trusty-security|#deb http://extras.ubuntu.com/ubuntu trusty-security|g' /etc/apt/sources.list
sudo sed -i 's|deb http://extras.ubuntu.com/ubuntu trusty-updates|#deb http://extras.ubuntu.com/ubuntu trusty-updates|g' /etc/apt/sources.list
sudo sed -i 's|deb-src http://extras.ubuntu.com/ubuntu trusty-security|#deb-src http://extras.ubuntu.com/ubuntu trusty-security|g' /etc/apt/sources.list
sudo sed -i 's|deb-src http://extras.ubuntu.com/ubuntu trusty-updates|#deb-src http://extras.ubuntu.com/ubuntu trusty-updates|g' /etc/apt/sources.list
sudo apt-get update

您应该将此错误告知“enableDisableDistribution”或向他们提交错误报告。

相关内容