似乎无法在kali linux上获得更新[尝试了很多方法

时间:2018-08-19 03:02:14

标签: linux-kernel apt-get

我一直收到这样的错误:对我来说,这些都不起作用,我试图通过启用一个,禁用另一个而仍然无济于事来更改sources.list文件中的源,我什至尝试连接到互联网使用有线而不是wifi。我的终端发出这样的错误:

root@kali:~# apt-get update
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Get:2 http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 Packages [16.3 MB]
Err:2 http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 Packages
  File has unexpected size (16219097 != 16303971). Mirror sync in progress? [IP: 103.1.138.146 80]
  Hashes of expected file:
   - Filesize:16303971 [weak]
   - SHA256:bfa154b8fd021b85e9992a7a34ea14543edce6136589d8c7e276d46bf967a294
   - SHA1:e91a121dc124b0bafe6acfc01a0e2aad5fe565d4 [weak]
   - MD5Sum:4bd6e27fe0196c2d53a55bdcd1cf8e06 [weak]
  Release file created at: Sat, 18 Aug 2018 12:04:29 +0000
Reading package lists... Done                        
E: Failed to fetch http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/main/binary-amd64/Packages.gz  File has unexpected size (16219097 != 16303971). Mirror sync in progress? [IP: 103.1.138.146 80]
   Hashes of expected file:
    - Filesize:16303971 [weak]
    - SHA256:bfa154b8fd021b85e9992a7a34ea14543edce6136589d8c7e276d46bf967a294
    - SHA1:e91a121dc124b0bafe6acfc01a0e2aad5fe565d4 [weak]
    - MD5Sum:4bd6e27fe0196c2d53a55bdcd1cf8e06 [weak]
   Release file created at: Sat, 18 Aug 2018 12:04:29 +0000
E: Failed to fetch http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/non-free/binary-amd64/Packages.gz  
E: Failed to fetch http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/contrib/binary-amd64/Packages.gz  
E: Some index files failed to download. They have been ignored, or old ones used instead.

不胜感激!

2 个答案:

答案 0 :(得分:0)

有多种原因导致该问题: 1.)您的PC或笔记本电脑我没有连接到路由器或无法访问它(尝试ping google.co) 2.)您的来源列表为空(我可以看到您的来源列表)

编辑:

这是我最后的解决方法

1。)在此链接中,就像您一样存在问题:https://unix.stackexchange.com/questions/429729/apt-get-update-error-in-kali-linux-after-dist-upgrade

2。)这是我在youtube上发现的内容: https://www.youtube.com/watch?v=dxdky8gtocc

如果这行不通,那么我没有进一步的解决办法,对不起您

答案 1 :(得分:0)