2016-04-01 6 views
1

apt-getでパッケージをインストールできません。だから、私はapt-get updateを試みました。apt-getアップデートでのハッシュサムの不一致

# apt-get install vim 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Package vim is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or 
is only available from another source 

E: Package 'vim' has no installation candidate 

# apt-get update 
Hit http://security.debian.org jessie/updates InRelease 
Ign http://httpredir.debian.org jessie InRelease 
Hit http://security.debian.org jessie/updates/main Sources 
Hit http://httpredir.debian.org jessie-updates InRelease           
Hit http://security.debian.org jessie/updates/main amd64 Packages  
Hit http://security.debian.org jessie/updates/main Translation-en             
Get:1 http://httpredir.debian.org jessie-updates/main Translation-en/DiffIndex [736 B] 
Hit http://httpredir.debian.org jessie Release.gpg         
Get:2 http://httpredir.debian.org jessie-updates/main Sources [1959 B] 
Err http://httpredir.debian.org jessie-updates/main Sources 

Get:3 http://httpredir.debian.org jessie-updates/main amd64 Packages [1963 B] 
Hit http://httpredir.debian.org jessie Release         
Get:4 http://httpredir.debian.org jessie/main Translation-en [4582 kB] 
Get:5 http://httpredir.debian.org jessie/main Sources [1961 B]                               
Err http://httpredir.debian.org jessie/main Sources                                  

Get:6 http://httpredir.debian.org jessie/main amd64 Packages [1961 B]                             
Err http://httpredir.debian.org jessie/main amd64 Packages                                

Fetched 4591 kB in 14s (327 kB/s)                                      
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/source/Sources Hash Sum mismatch 

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages Hash Sum mismatch 

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/source/Sources Hash Sum mismatch 

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-amd64/Packages Hash Sum mismatch 

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

私はすでにここに受け入れ答えを試してみました:debian apt packages hash sum mismatch

を私は素朴ですが、私はそれが問題の原因となっているhttpredir.debian.orgであると信じています。 /etc/apt/sources.listをどのように更新できますか?どのような代替エントリを使用できますか?

+0

[debian apt packages hash sum mismatch]の複製があります(https://stackoverflow.com/questions/15505775/debian-apt-packages-hash-sum-mismatch) – leymannx

答えて

1

今のところ、私は/etc/apt/sources.listを編集し、候補のパッケージを見つけることができないという主な問題を解決した新しいミラーで更新しました。

0

これは何らかの種類のbizzareネットワークの問題(おそらくルータ関連ですか?)に関連しています。別のネットワーク接続(つまりスマートフォン経由のテザリング)でラップトップに接続し、apt-getアップデートを開始しました。私の目でそれを見ていなかったらそれを信じていなかったでしょう...

それについて神秘的ではありません、私は簡単にあなたのインターネット接続をチェックして、何か別の接続を試して、あなたのアップデートは多くのパッケージサイトにアクセスしており、何らかの理由でフィルタリングされているものもあれば、問題の原因となっているものをURLで確認するものもあります。

大雑把に言えば、私は自分のソースを混乱させることはありません。私がやっていることが非常によく分かっていなければ、与えられたツールを通してのみ、ほとんどの場合ソースには入りませんでした。 .d。フォルダのどこかにあるので、依存関係を上書きせず、パッケージツリートランクで問題を引き起こすことはありません。とにかく、あなたのapt-getアップデートを稼働させ続けると、システムを同期させたままにする能力が失われます。