这是我的来源。列表:
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
deb http://cloudfront.debian.net/debian wheezy main
deb-src http://cloudfront.debian.net/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://cloudfront.debian.net/debian wheezy-updates main
deb-src http://cloudfront.debian.net/debian wheezy-updates main
deb http://http.debian.net/debian wheezy-backports main
这是apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man less libclass-isa-perl liberror-perl libswitch-perl patch perl
perl-modules rsync
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
git-email git-gui gitk gitweb ed diffutils-doc perl-doc
libterm-readline-gnu-perl libterm-readline-perl-perl make
libpod-plainer-perl
The following NEW packages will be installed:
git git-man less libclass-isa-perl liberror-perl libswitch-perl patch perl
perl-modules rsync
0 upgraded, 10 newly installed, 0 to remove and 39 not upgraded.
Need to get 35.6 kB/16.2 MB of archives.
After this operation, 47.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libswitch-perl patch
Install these packages without verification [y/N]? y
Get:1 http://cloudfront.debian.net/debian/ wheezy/main libclass-isa-perl all 0.36-3 [11.9 kB]
Get:2 http://cloudfront.debian.net/debian/ wheezy/main liberror-perl all 0.17-1 [23.8 kB]
Fetched 12.3 kB in 0s (461 kB/s)
Failed to fetch http://cloudfront.debian.net/debian/pool/main/libc/libclass-isa-perl/libclass-isa-perl_0.36-3_all.deb Size mismatch
Failed to fetch http://cloudfront.debian.net/debian/pool/main/libe/liberror-perl/liberror-perl_0.17-1_all.deb Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我是Ubuntu用户,所以debian对我来说有点新鲜,但它们应该是相似的。这些建议都没有"也许运行apt-get update或尝试使用--fix-missing?"做任何不同的事情。
一些帮助会摇滚!
更新我在尝试安装mysql时遇到了类似的错误:
WARNING: The following packages cannot be authenticated!
libswitch-perl
Get:1 http://cloudfront.debian.net/debian/ wheezy/main libclass-isa-perl all 0.36-3 [11.9 kB]
Fetched 12.3 kB in 0s (862 kB/s)
Failed to fetch http://cloudfront.debian.net/debian/pool/main/libc/libclass-isa-perl/libclass-isa-perl_0.36-3_all.deb Size mismatch
Unable to correct missing packages.
似乎有些事情搞砸了。我喜欢一些帮助,我在这里陷入困境。
答案 0 :(得分:2)
我怀疑某种网络错误。请注意,无论您何时获取" 12.3 kB"而不是包装尺寸。
尝试查看/var/cache/apt/archives/partial
,看看是否可以使用less
查看其中的文件内容。希望它会向您显示一些文本,指出错误是什么。