[Bug 775670] Re: Using local mirror fails, preseed always hits us.archive.ubuntu.com
Zubin
zparihar at gmail.com
Fri Jun 21 23:02:49 UTC 2013
Does anybody have an update on this?
I created a mirror repository of precise, both 32 bit and 64bit on one
of my local servers using apt-mirror. I'm trying to do a preseed
install from it, but it fails to work...
It says:
[!!] Download installer components
The installer failed to download a file from the mirror. This may be a
problem with your network, or with the mirror. You can choose to retry
the download, select a different mirror, or cancel and choose another
installation method.
Downloading a file failed:
- Retry
- Change mirror
- Cancel
My Preseed file looks like this:
d-i debian-installer/locale string en_US
d-i console-keymaps-at/keymap select us
# NETWORK
# --- Turn on the following to do manual network config --- #
d-i netcfg/disable_autoconfig boolean true
# --------------------------------------------------------- #
d-i netcfg/get_nameservers string 64.28.104.51
d-i netcfg/get_ipaddress string 207.200.57.126
d-i netcfg/get_netmask string 255.255.255.224
d-i netcfg/get_gateway string 207.200.57.97
d-i netcfg/choose_interface select eth0
d-i netcfg/disable_dhcp boolean true
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/confirm_static boolean true
d-i netcfg/get_hostname string test
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string virt-install
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string ubuntu.myserver.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
d-i clock-setup/utc boolean true
d-i time/zone string America/Chicago
d-i clock-setup/ntp boolean true
# ---- Partitioning ---- #
d-i partman-auto/disk string /dev/vda
d-i partman-lvm/devide_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/method string regular
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
# --- Installation all in one partition --- #
#d-i partman-auto/choose_recipe select atomic
# --- Custom Partitioning --- #
# --- One Big Partition --- #
d-i partman-auto/expert_recipe string \
condpart :: \
1024 2048 10000000 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
2048 1024 2048 linux-swap \
method{ swap } format{ } \
. \
d-i partman/default_filesystem string ext4
d-i partman/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
# ---- Users ---- #
d-i passwd/user-fullname string Hello World
d-i passwd/username string helloworld
d-i passwd/user-password-crypted password $abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef
d-i user-setup/allow-password-weak boolean true
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server vim sysstat ntp ntpdate munin munin-node munin-common snmp snmpd aptitude bash-completion bash bwm-ng acpid acpi-support
d-i pkgsel/upgrade select safe-upgrade
d-i pkgsel/language-packs multiselect en
d-i pkgsel/update-policy select none
d-i pkgsel/updatedb boolean false
popularity-contest popularity-contest/participate boolean false
d-i finish-install/keep-consoles boolean true
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/reboot_in_progress note
# --- The following Line allows networking configuration of the vm to be set from a Network Preseed --- #
#d-i preseed/early_command string /bin/killall.sh; /bin/netcfg
# ----------------------------------------------------------------------------------------------------- #
d-i preseed/late_command string \
chroot /target wget download.myserver.com/ttyS0.conf ; \
chroot /target mv ttyS0.conf /etc/init ; \
chroot /target wget download.myserver.com/default-script ; \
chroot /target chmod +x default-script ; \
chroot /target ./default-script
I've substituted out all sensitive information ;-)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to preseed in Ubuntu.
https://bugs.launchpad.net/bugs/775670
Title:
Using local mirror fails, preseed always hits us.archive.ubuntu.com
Status in “preseed” package in Ubuntu:
Confirmed
Bug description:
At some point, using a preseed to select a local mirror has stopped working.
I'm attempting to use a preseed on Ubuntu 11.04 Natty Narwhal. Using the following preseed language:
d-i mirror/protocol string http
d-i mirror/country string US
d-i mirror/http/mirror string local-mirror.url
d-i mirror/http/hostname string local-mirror.url
d-i apt-setup/security_host string local-mirror.url
d-i mirror/http/directory string /ubuntu
d-i mirror/suite string natty
d-i mirror/http/proxy string
I still get us.archive.ubuntu.com as my mirror, which completely
defeats the purpose of having a local mirror.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/775670/+subscriptions
More information about the foundations-bugs
mailing list