Ubuntu 安装期间预置中没有 HTTPS 选项

Ubuntu 安装期间预置中没有 HTTPS 选项

我目前正在使用预置文件配置多个 Ubuntu 版本,我想使用 HTTPS 连接到本地镜像服务器。Ubuntu 和 Debian 的安装指南中都没有使用 https 的示例。我发现错误报告描述了预置中没有使用 HTTPS 的选项。如果错误状态已修复,它们可以与 Debian 9 及更新版本一起使用,但不能与 Ubuntu 一起使用。使用 HTTP 时,一切都按预期工作。

这是我的配置:

d-i mirror/protocol string https
d-i mirror/country string manual
d-i mirror/https/hostname string mymirror.com
d-i mirror/https/directory string /ubuntu
d-i mirror/https/proxy string
d-i apt-setup/security_host string mymirror.com
d-i apt-setup/security_path string /ubuntu

我已经在 Debian 9 和 10 上进行了测试,并且它们没有出现问题。到目前为止,我已经在 Ubuntu 16.04、18.04 和 19.10 上测试了配置,以下是日志中的错误消息:

16.04:

choose-mirror[3714]: DEBUG: command: wget --no-verbose https://mirror.asergo.com/ubuntu/dists/xenial/Release -O  | grep -E ´^(Suite|Codename|Architectures):´
choose-mirror[3714]: INFO: mirror does not have any suite symlinks
choose-mirror[3714]: DEBUG: command: wget --no-verbose https://mirror.asergo.com/ubuntu/dists/xenial/Release -O  | grep -E ´^(Suite|Codename|Architectures):´
choose-mirror[3714]: WARNING: **: mirror does not support the specified release (xenial)

18.04:

choose-mirror[3484]: DEBUG: command: wget --no-verbose https://mirror.asergo.com/ubuntu/dists/bionic/Release -O  | grep -E ´^(Suite|Codename|Architectures):´
choose-mirror[3484]: INFO: mirror does not have any suite symlinks
choose-mirror[3484]: DEBUG: command: wget --no-verbose https://mirror.asergo.com/ubuntu/dists/bionic/Release -O  | grep -E ´^(Suite|Codename|Architectures):´
choose-mirror[3484]: WARNING: **: mirror does not support the specified release (bionic)

19.10:屏幕上显示以下消息:Couldn't find these debs: apt-transport-https

debconf-copydb: Cannot open file /target/var/cache/debconf/config.dat-new: No such file or directory
debconf-copydb: Cannot open file /target/var/cache/debconf/templates.dat-new: No such file or directory
base-installer: /usr/lib/base-installer.d/d/20console-setup:
base-installer: line 44
base-installer: keyboard-configuration/other: not found
base-installer:
base-installer: warning: /usr/lib/base-installer.d/20console-setup returned error code 127

所以我的问题是:我的配置是否错误?他们是否改变了预置的配置方式?

相关内容