假设我安装了 debian,而我的 Internet 网络出现故障。安装工作正常,但在从列表中设置 apt 镜像时会出现错误,因为网络 Internet 已关闭。我继续安装没有镜像(apt/sources.list 只包含 cdrom 条目) Internet 工作..安装后如何设置 debian 镜像?我知道如何编辑sources.list
与vi
,但我想用镜像列表选择菜单。
shi*_*ish 11
你只想要一些镜子或最近/最快的镜子。如果是后者,那么您可以安装 netselect-apt 并运行它。我只是跑去看看哪个是我所在地理位置最快的,它说-
[$] sudo netselect-apt testing
........
........
The fastest 10 servers seem to be:
http://mirrors.ispros.com.bd/debian/
http://ftp.sg.debian.org/debian/
http://mirrors.apu.edu.my/debian/
http://ftp.iinet.net.au/debian/debian/
http://debian.mirror.cambrium.nl/debian/
http://mirror.sax.uk.as61049.net/debian/
http://ftp.uk.debian.org/debian/
http://mirror.vorboss.net/debian/
http://mirror.1000mbps.com/debian/
http://ftp.antik.sk/debian/
Of the hosts tested we choose the fastest valid for HTTP:
http://mirrors.ispros.com.bd/debian/
Writing sources.list.
sources.list exists, moving to sources.list.1484862805
Done.
[$] cat sources.list.1484862805
1 # Debian packages for testing
2 deb http://debian.ec.as6453.net/debian/ testing main contrib
3 # Uncomment the deb-src line if you want 'apt-get source'
4 # to work with most packages.
5 # deb-src http://debian.ec.as6453.net/debian/ testing main contrib
6
7 # Security updates for stable
8 # deb http://security.debian.org/ stable/updates main contrib
Run Code Online (Sandbox Code Playgroud)
希望你觉得它有用。
小智 6
作为 Debian 重定向器的替代方案,您可以尝试http://deb.debian.org/
这是一个由 AWS CoudFront 提供支持的 CDN,应该比重定向器更快。
安装后如何设置debian镜像?
使用apt edit-sources
(以 root 身份!)在选择的(命令行)文本编辑器中打开 /etc/apt/sources.list;保存文件时,将检查是否存在语法错误。
归档时间: |
|
查看次数: |
22304 次 |
最近记录: |