我正在从一个具有 cobbler 服务的主节点上对客户端进行 PXE 启动。我正在尝试安装 Ubuntu 14.04,这是我用于 ubuntu 安装的预置文件。
# Ubuntu Server Quick Install
# by Dustin Kirkland <[email protected]>
# * Documentation: http://bit.ly/uquick-doc
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/splash boolean false
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i console-setup/variantcode string
d-i netcfg/get_nameservers string
d-i netcfg/get_ipaddress string
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string
d-i netcfg/confirm_static boolean true
d-i clock-setup/utc boolean true
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/default_filesystem string ext3
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.ubuntu.com
d-i base-installer/kernel/image string linux-server
d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
d-i passwd/user-fullname string ubuntu
d-i passwd/username string ubuntu
d-i passwd/user-password-crypted password
d-i passwd/user-uid string
d-i user-setup/allow-password-weak boolean false
d-i user-setup/encrypt-home boolean false
d-i passwd/user-default-groups string adm cdrom dialout lpadmin plugdev sambashare
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string security.ubuntu.com
d-i apt-setup/security_path string /ubuntu
d-i debian-installer/allow_unauthenticated string false
d-i pkgsel/upgrade select safe-upgrade
d-i pkgsel/language-packs multiselect
d-i pkgsel/update-policy select none
d-i pkgsel/updatedb boolean true
d-i grub-installer/skip boolean false
d-i lilo-installer/skip boolean false
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/keep-consoles boolean false
d-i finish-install/reboot_in_progress note
d-i cdrom-detect/eject boolean true
d-i debian-installer/exit/halt boolean false
d-i debian-installer/exit/poweroff boolean false
d-i pkgsel/include string openssh-server
d-i mirror/country string manual
d-i mirror/http/hostname string 147.xxx.xxx.xxx
d-i mirror/http/directory string /cobbler/repo_mirror/trusty-x86_64
我配置了最后两行,以便客户端可以从我在主节点中创建的本地镜像中获取发行版和软件包。安装过程中有两个问题。
首先,安装程序会尝试查看
/cobbler/repo_mirror/trusty-x86_64/dists/trusty/main/debian-installer
代替
/cobbler/repo_mirror/trusty-x86_64/dists/trusty/main/
对于 dists 文件。
我不确定为什么安装程序在“主”路径后附加 debian-installer。
其次,即使我将 main/ 下的文件符号链接到 debian-installer 下,也会在 /main/debian-installer/ 下的 Packages.gz 上显示 MD5 不匹配。确切的错误消息是:
net-retriver: error: MD5 mismatch for main/debian-installer/binary-amd64/Packages.gz (cfa......... != 4c2ecc07.........)
我不确定为什么当我使用“cobbler reposync”同步本地存储库时会出现 MD5 不匹配错误。任何见解都会有所帮助。提前致谢!
答案1
我正在回答我自己的问题。每当您在 cobbler 中创建 repos 时,您都必须指定要下载和同步的 apt 组件和 dists。
我必须补充一下主要、受限、宇宙、多元宇宙、主要/debian-安装程序、受限/debian-安装程序到Apt 组件和值得信赖、值得信赖的更新、值得信赖的安全、值得信赖的反向移植到公寓区域名称Ubuntu 14.04 Trusty 安装才能正常工作。这些组件和列表是 Ubuntu 安装所必需的,但 cobbler 的自动 ubuntu 导入功能
cobbler-ubuntu-import trusty-x86_64
没有添加必要的组件和清单。