Debian apt get更新中的哈希和不匹配

Debian apt get更新中的哈希和不匹配,debian,apt,Debian,Apt,我无法通过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

我无法通过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.
我已经在这里尝试了公认的答案:


我很天真,但我相信是httpredir.debian.org造成了这个问题。如何更新/etc/apt/sources.list?我可以使用哪些替代条目?

目前,我编辑了/etc/apt/sources.list,并用一个新镜像对其进行了更新,解决了找不到候选软件包的主要问题。

这与某种奇怪的网络问题有关(可能与路由器有关?),我通过另一个网络连接连接了我的笔记本电脑(即通过智能手机连接)和apt get update开始工作。如果我没有亲眼看到它,我不会相信它,等等

不要神秘,简而言之,我要说的是检查你的互联网连接,可能尝试另一个连接,你的更新正在访问许多包站点,其中一些可能由于某种原因被过滤,检查URL的问题


根据经验,除非我非常清楚自己在做什么,而且只有通过给定的工具,我才不会弄乱我的sources.list,通常情况下,它不会出现在sources.list中,而是出现在.d.文件夹的某个位置,这样它就不会覆盖任何依赖项,不会在包树主干上造成问题。而且始终保持你的apt更新工作正常,否则你将失去保持系统同步的能力。

当Windows 10中打开Hyper-V时,我遇到了Ubuntu虚拟机的问题。 这修正了它:

以管理员身份打开Powershell并运行:

bcdedit /set hypervisorlaunchtype off

然后重新启动Windows 10。

此处可能存在相同的问题,但不同的网络是家庭网络与办公室网络。我正在联系我的it部门以获得诊断问题的帮助。我们在多个系统、Ubuntu版本中看到了这一问题,甚至在CentOS和yum软件包中也看到了类似的问题。我将发布特定网络的更新如果I.T.决定在问题解决后与我分享细节,我会立即做出改变。