小编kem*_*tep的帖子

升级后 Kali Linux 中的 apt-get 更新错误

之后dist-upgrade我无法更新 Kali 并sudo apt-get update返回此错误:

Err:1 http://http.kali.org/kali kali-rolling InRelease
  Connection failed [IP: 192.99.200.113 80]
Reading package lists... Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  Connection failed [IP: 192.99.200.113 80]
W: Some index files failed to download. They have been ignored, or old ones used instead. 
Run Code Online (Sandbox Code Playgroud)

我在 Kali 中搜索了更新错误,但找不到此错误。

这是我的sources.list文件:

# 

#deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20171109-13:49]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 …
Run Code Online (Sandbox Code Playgroud)

apt kali-linux

8
推荐指数
1
解决办法
14万
查看次数

如何自动更改sources.list中的镜像?

这是我的 sources.list 目前的样子:

deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.us.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib
Run Code Online (Sandbox Code Playgroud)

如您所见,存储库是该US区域的镜像。如何自动将其更改为另一个存储库区域,而无需手动更改 sources.list?

我只知道如何删除旧AU存储库并手动将其更改为其他区域存储库,例如存储库或其他存储库。

我知道我们可以按照以下格式更改 Debian 使用的 repo 区域:

http://ftp.[Region].debian.org/debian/
Run Code Online (Sandbox Code Playgroud)

但是不遵循默认格式的存储库如何:kartolo.sby.datautama.net.id,这是来自 的存储库Indonesia?我如何将其更改为此处列表中的一个?

command-line source debian apt

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

apt ×2

command-line ×1

debian ×1

kali-linux ×1

source ×1