我正在尝试在进行版本升级之前更新我的 Ubuntu 12.04.5 LTS。不幸的是,它不起作用。APT 声称Sources
不存在lv 档案库,这显然不是事实:
$ curl -I http://lv.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources.gz
HTTP/1.1 200 OK
Date: Mon, 29 Sep 2014 10:37:57 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 25 Apr 2012 22:49:07 GMT
ETag: "8bd598-5f322e-4be88adc45ec0"
Accept-Ranges: bytes
Content-Length: 6238766
Connection: close
Content-Type: application/x-gzip
$ curl -I http://lv.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources.bz2
HTTP/1.1 200 OK
Date: Mon, 29 Sep 2014 10:37:58 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 25 Apr 2012 22:49:07 GMT
ETag: "8bf600-4c95e1-4be88adc45ec0"
Accept-Ranges: bytes
Content-Length: 5019105
Connection: close
Content-Type: application/x-bzip2
apt-get update
下面的日志。
Hit http://lv.archive.ubuntu.com precise Release.gpg
Hit http://lv.archive.ubuntu.com precise-updates Release.gpg
Hit http://lv.archive.ubuntu.com precise Release
Hit http://lv.archive.ubuntu.com precise-updates Release
Hit http://lv.archive.ubuntu.com precise/main Sources
Hit http://lv.archive.ubuntu.com precise/restricted Sources
Hit http://lv.archive.ubuntu.com precise/multiverse Sources
Hit http://lv.archive.ubuntu.com precise/main i386 Packages
Hit http://lv.archive.ubuntu.com precise/main TranslationIndex
Hit http://lv.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://lv.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://lv.archive.ubuntu.com precise/universe TranslationIndex
Hit http://lv.archive.ubuntu.com precise-updates/main Sources
Hit http://lv.archive.ubuntu.com precise-updates/restricted Sources
Hit http://lv.archive.ubuntu.com precise-updates/universe Sources
Hit http://lv.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://lv.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://lv.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://lv.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://lv.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://lv.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://lv.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://lv.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://lv.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://lv.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://lv.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://lv.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://lv.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://lv.archive.ubuntu.com precise/main Translation-en
Hit http://lv.archive.ubuntu.com precise/multiverse Translation-en
Hit http://lv.archive.ubuntu.com precise/restricted Translation-en
Hit http://lv.archive.ubuntu.com precise/universe Translation-en
Hit http://lv.archive.ubuntu.com precise-updates/main Translation-en
Hit http://lv.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://lv.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://lv.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://security.ubuntu.com precise-security Release
Err http://lv.archive.ubuntu.com precise/universe Sources
404 Not Found
Err http://lv.archive.ubuntu.com precise/main amd64 Packages
404 Not Found
Err http://lv.archive.ubuntu.com precise/restricted amd64 Packages
404 Not Found
Err http://lv.archive.ubuntu.com precise/universe amd64 Packages
404 Not Found
Err http://lv.archive.ubuntu.com precise/multiverse amd64 Packages
404 Not Found
Err http://lv.archive.ubuntu.com precise/restricted i386 Packages
404 Not Found
Err http://lv.archive.ubuntu.com precise/universe i386 Packages
404 Not Found
Err http://lv.archive.ubuntu.com precise/multiverse i386 Packages
404 Not Found
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://repo.percona.com precise Release.gpg
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://repo.percona.com precise Release
Hit http://repo.percona.com precise/main Sources
Hit https://get.docker.io docker Release.gpg
Hit https://get.docker.io docker Release
Hit http://repo.percona.com precise/main amd64 Packages
Hit http://repo.percona.com precise/main i386 Packages
Ign http://repo.percona.com precise/main TranslationIndex
Hit https://get.docker.io docker/main amd64 Packages
Hit https://get.docker.io docker/main i386 Packages
Get:1 https://get.docker.io docker/main TranslationIndex [77.0 kB]
Ign https://get.docker.io docker/main TranslationIndex
Ign http://repo.percona.com precise/main Translation-en_US
Ign http://repo.percona.com precise/main Translation-en
Ign https://get.docker.io docker/main Translation-en_US
Ign https://get.docker.io docker/main Translation-en
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://lv.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
解决
显然这是 lv.archive.ubuntu.com 的问题。删除“lv”前缀(并移至 archive.ubuntu.com)解决了该问题。
答案1
lv.archive.ubuntu.com
通过将 apt-get 存储库主机从 更改为 ,问题已得到解决archive.ubuntu.com
。显然镜像不是最新的或存在一些配置问题。