当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu14.04.2本地HTTP安装源网络安装问题
帖子发表于 : 2015-07-10 18:43 
头像

注册: 2008-06-11 13:05
帖子: 42
送出感谢: 1
接收感谢: 0 次
Hi all,
最近在做Ubuntu14.04.2的网络安装,目前被卡在一个问题上,无法完成安装,具体问题如下:
尽管采用了PXE方式引导,并且kernel参数中指定了httproot为局域网一台web server,但发现安装时还是会找互联网的mirror去获取相关安装包,而之前在做CentOS的PXE安装时就没这个问题,不知是否有前辈成功配置过仅通过局域网安装源进行网络安装?

我的preseed:
代码:
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/language string en
d-i debian-installer/country string CN
d-i localechooser/supported-locales en_US.UTF-8, zh_CN.UTF-8
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i netcfg/enable boolean true
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string StreamOcean
d-i mirror/country string manual
d-i mirror/http/hostname string 172.16.2.220:81
d-i mirror/http/directory string /instsvr/x86_64/ub14042_dsk
d-i mirror/http/proxy string
d-i clock-setup/utc boolean true
d-i time/zone string Asia/Harbin
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string cn.pool.ntp.org
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/expert_recipe string                         \
      boot-root ::                                            \
              200 50 500 ext4                                \
                      $primary{ } $bootable{ }                \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 }    \
                      mountpoint{ /boot }                     \
              .                                               \
              500 10000 1000000000 ext4                       \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 }    \
                      mountpoint{ / }                         \
              .                                               \
              64 512 200% linux-swap                        \
                      method{ swap } format{ }                \
              .
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/mount_style select traditional
d-i passwd/root-login boolean true
d-i passwd/make-user boolean true
d-i passwd/root-password-crypted password $1$vj7ZTIBl$rhfaATvqUDwLgfnR0UJVi.
d-i passwd/auto-login string true
d-i passwd/user-fullname string tp
d-i passwd/username string tp
d-i passwd/user-password-crypted password $1$vj7ZTIBl$rhfaATvqUDwLgfnR0UJVi.
d-i user-setup/encrypt-home boolean false
d-i debian-installer/allow_unauthenticated boolean true
tasksel tasksel/first multiselect standard, ubuntu-desktop
d-i pkgsel/include string vim openssh-server build-essential
d-i pkgsel/upgrade select none
d-i pkgsel/language-packs multiselect en zh
d-i pkgsel/update-policy select none
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/password-crypted password $1$VDOOZktb$icyoDYG//qsAQYLfceHmx/
d-i finish-install/reboot_in_progress note
d-i debian-installer/exit/reboot boolean true
xserver-xorg xserver-xorg/autodetect_monitor boolean true
xserver-xorg xserver-xorg/config/monitor/selection-method \
       select medium
xserver-xorg xserver-xorg/config/monitor/mode-list \
       select 1024x768 @ 60 Hz


安装失败后的syslog会有几行提示,然后就退出安装了:
代码:
Jul 10 18:09:30 anna[2207]: WARNING **: bad d-i Packages file
Jul 10 18:09:30 debconf: --> GET mirror/protocol
Jul 10 18:09:30 debconf: <-- 0 http
Jul 10 18:09:30 debconf: --> GET mirror/http/hostname
Jul 10 18:09:30 debconf: <-- 0 172.16.2.220:81
Jul 10 18:09:30 debconf: --> GET mirror/http/directory
Jul 10 18:09:30 debconf: <-- 0 /instsvr/x86_64/ub14042_dsk
Jul 10 18:09:30 debconf: --> GET apt-setup/security_host
Jul 10 18:09:30 debconf: <-- 10 apt-setup/security_host doesn't exist
Jul 10 18:09:30 debconf: --> GET apt-setup/overlay_host
Jul 10 18:09:30 debconf: <-- 10 apt-setup/overlay_host doesn't exist
Jul 10 18:09:30 debconf: --> GET apt-setup/overlay_directory
Jul 10 18:09:30 debconf: <-- 10 apt-setup/overlay_directory doesn't exist
Jul 10 18:09:30 debconf: --> GET debconf/priority
Jul 10 18:09:30 debconf: <-- 0 high
Jul 10 18:09:30 main-menu[219]: INFO: Menu item 'download-installer' succeeded but requested to be left unconfigured.


_________________
我本来不懂,装的多了,自然就懂了。
很久不更新RHCE课程笔记了,请多指教^_^


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译