在 preseed.cfg 中禁用镜像选项

Tod*_*ddM 8 debian mirror preseed

我正在使用preseed.cfg.

我正在尝试创建一个preseed.cfg将跳过/不设置 Debian 镜像的Configure the package manager步骤。我没有安装任何附加包 ( tasksel tasksel/first multiselect none) 因此“一个非常小的基础系统”

如果我使用d-i mirror/country string manual我得到

Please enter the hostname of the mirror from which Debian will be downloaded
Run Code Online (Sandbox Code Playgroud)

然后我必须在询问时手动选择Go back和选择。YesContinue without a network mirror?

设置d-i mirror/country string boolean false给出相同的对话。

此外,d-i mirror/confirm boolean true我认为还需要添加类似的内容,因为这是一个两步对话。

Bra*_*iam 2

您需要设置所有按键的设置才能none使其正常工作。尝试这个:

d-i mirror/country string manual
d-i mirror/http/hostname string ""
d-i mirror/http/directory string ""
d-i mirror/http/proxy string ""
Run Code Online (Sandbox Code Playgroud)

这告诉安装程序,手动设置镜像,主机名是无,目录是无,代理是无。