小白求救:Ubuntu server 14.10安装后更新源出错
发表于 : 2014-12-11 14:06
如题,原来的源:
deb http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-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://cn.archive.ubuntu.com/ubuntu/ utopic universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic universe
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-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.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-updates 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.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu utopic-security main restricted
deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
deb-src http://security.ubuntu.com/ubuntu utopic-security universe
deb http://security.ubuntu.com/ubuntu utopic-security multiverse
deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse
sudo apt-get update后出现:
Err http://cn.archive.ubuntu.com utopic InRelease
Err http://cn.archive.ubuntu.com utopic-updates InRelease
Err http://cn.archive.ubuntu.com utopic-backports InRelease
Err http://security.ubuntu.com utopic-security InRelease
Err http://cn.archive.ubuntu.com utopic Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://security.ubuntu.com utopic-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://cn.archive.ubuntu.com utopic-updates Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://cn.archive.ubuntu.com utopic-backports Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... /InRelease
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'cn.archive.ubuntu.com'
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'cn.archive.ubuntu.com'
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'cn.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... elease.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
网上搜了文章,换源后还是一样。
具体做法:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse
sudo apt-get update
换163,sohu都一样。
还有安装GD库,一样无法完成。
各位大神过来看看!!
deb http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-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://cn.archive.ubuntu.com/ubuntu/ utopic universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic universe
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-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.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-updates 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.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu utopic-security main restricted
deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
deb-src http://security.ubuntu.com/ubuntu utopic-security universe
deb http://security.ubuntu.com/ubuntu utopic-security multiverse
deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse
sudo apt-get update后出现:
Err http://cn.archive.ubuntu.com utopic InRelease
Err http://cn.archive.ubuntu.com utopic-updates InRelease
Err http://cn.archive.ubuntu.com utopic-backports InRelease
Err http://security.ubuntu.com utopic-security InRelease
Err http://cn.archive.ubuntu.com utopic Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://security.ubuntu.com utopic-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://cn.archive.ubuntu.com utopic-updates Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://cn.archive.ubuntu.com utopic-backports Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... /InRelease
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'cn.archive.ubuntu.com'
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'cn.archive.ubuntu.com'
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'cn.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... elease.gpg Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
网上搜了文章,换源后还是一样。
具体做法:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse
sudo apt-get update
换163,sohu都一样。
还有安装GD库,一样无法完成。
各位大神过来看看!!