Oracle Linux 8 无人值守安装的安装源和软件选择错误

Oracle Linux 8 无人值守安装的安装源和软件选择错误

我正在尝试无人值守安装 Oracle Linux 8,但是在安装源和软件选择上出现错误。

 ================================================================================[0m
 ================================================================================[0m
 Installation[0m
 1) [x] Language settings                 2) [x] Time settings[0m
        (English (United States))                (America/New_York timezone)[0m
 3) [!] Installation source               4) [!] Software selection[0m
        (Error setting up software               (Error checking software[0m
        source)                                  selection)[0m
 5) [x] Installation Destination          6) [x] Kdump[0m
        (Automatic partitioning                  (Kdump is enabled)[0m
        selected)[0m
 7) [x] Network configuration[0m
        (Wired (ens2) connected)[0m
 The installation was stopped due to an error which occurred while running in non-interactive cmdline mode. Since there cannot be any questions in cmdline mode, edit your kickstart file and retry installation.[0m

我有以下 kicstart 文件:

#version=OL8
%packages
@^minimal-environment
kexec-tools

%end
# Installation mode
install
text

# Automated commandline install
bootloader --location=mbr --boot-drive=vda

# Root Password Settings
rootpw --iscrypted <redacted>
sshpw --username=packer packer
# User
user --name=<redacted> --uid=400 --gid=400 --groups=wheel
sshkey --username=<redacted> "<redacted>"

# Host configurations
selinux --permissive
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
timezone UTC --isUtc

# Network information
network  --bootproto=dhcp --device=link --activate --onboot=yes
network  --hostname=localhost.localdomain

# Keyboard layouts
keyboard --xlayouts='us'
# System language
lang en_US.UTF-8

# Run the Setup Agent on first boot
firstboot --disabled

ignoredisk --only-use=vda
autopart
# Partition clearing information
clearpart --none --initlabel

# System timezone
timezone America/New_York --isUtc

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end

有人能告诉我哪里出了问题吗?我在这里被困了一段时间了。

答案1

您需要在 kickstart 文件中定义 repos。添加以下行

repo --name="ol_baseos_latest" --baseurl="https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64"
repo --name="appstream" --baseurl="https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64"

以及您计划从中提取包的任何其他存储库。

相关内容