Expected Behavior:

Installer continues without warning about a corrupt Packages file.


Behavior actually encountered:

During install a red warning screen appears with the following message:

[!!] Install the base system
Debootstrap warning
Warning:
http://192.168.0.1/ubuntu/dists/lucid/restricted/binary-amd64/Packages was 
corrupt
<Go Back> <Continue>

Pressing enter to continue allows the installer to continue installing.


Reproduction steps:


To reproduce this bug, create a pxe boot server and apt repo.

Build a vm with 2 nics for the server.

Configure the second nic (eth1) for a private network we will use to
test netbooting the installer on a separate vm.

Install Ubuntu with 10.04.04 amd64 alternate install cd for our server:
http://releases.ubuntu.com/lucid/ubuntu-10.04.4-alternate-amd64.iso

Boot Ubuntu and add the following lines to /etc/network/interfaces to
configure eth1 with a static address replacing gateway with your
internet gateway:

auto eth1
iface eth1 inet static
  address 192.168.0.1
  netmask 255.255.255.0
  gateway 192.168.1.1

Reboot Ubuntu so that the second nic is configured at boot.

Attach/insert the Ubuntu 10.04.04 cd to the vm so we can use it later.

Install dnsmasq for dhcp and tftp servers:

apt-get install dnsmasq

Edit /etc/dnsmasq.conf adding the following lines to enable dhcp and
tftp:

dhcp-boot=pxelinux.0
dhcp-range=192.168.0.50,192.168.0.150,12h
enable-tftp
interface=eth1

Restart dnsmasq:

service dnsmasq restart

Mount the Ubuntu 10.04 cd’s install/tftpboot directory under
/var/lib/tftpboot:

mkdir /var/lib/tftpboot
mount --bind /media/Ubuntu\ 10.04.4\ LTS\ amd64/install/netboot/ 
/var/lib/tftpboot

Create pxe boot config file /root/mydefault containing the following
lines:

TIMEOUT 50
PROMPT 1
default netboot
 nabel netboot
 kernel ubuntu-installer/amd64/linux
 append vga=normal local=en_US setup/layoutcode=en_US 
console-setup/layoutcode=us initrd=ubuntu-installer/amd64/initrd.gz 
ks=http://192.168.0.1/ks.cfg

Note above, ks=http://192.168.0.1/ks.cfg points to the kickstart file.

Mount mydefault under /var/lib/tftpboot:

mount --bind /root/mydefault /var/lib/tftpboot/pxelinux.cfg/default

To set up apt repo, mount the Ubuntu cd under /var/www/ubuntu:

mkdir -p /var/www/ubuntu
mount --bind /media/Ubuntu\ 10.04.4\ LTS\ amd64/ /var/www/ubuntu

Install apache to serve packages via http for apt repo:

apt-get install apache2

Create the kickstart config file in /var/www/ks.cfg containing the
following lines:

###########################################################################
# Installer Section
###########################################################################
#--------------------------------------------------------------------------
# Installation Options
#--------------------------------------------------------------------------
#
# Install OS in text mode
#
install
text

#
# System Language
#
lang en_US
langsupport en_US

#
# System Keyboard and Mouse Settings
#
keyboard us

#
# Timezone Setting
#
timezone America/Chicago

#--------------------------------------------------------------------------
# License Key
#--------------------------------------------------------------------------
key none
url --url http://192.168.0.1/ubuntu/

network --device=eth0 --bootproto=dhcp --nameserver 8.8.8.8,8.8.4.4

rootpw --plaintext ubuntu

user --disabled
reboot

firewall --disabled

#--------------------------------------------------------------------------
# Partitions
#--------------------------------------------------------------------------
bootloader --location=mbr 
zerombr 
clearpart --all --initlabel 
part / --fstype ext4 --size=1 --grow --asprimary 
part /boot --fstype ext4 --size=250 --asprimary 
part /var --fstype ext4 --size=5120 
part /var/log --fstype ext4 --size=5120 
part /var/log/audit  --fstype ext4 --size=1024 
part swap  --size=4096 --asprimary

#--------------------------------------------------------------------------
# Packages
#--------------------------------------------------------------------------
%packages
ubuntu-desktop
%pre
%post

Boot a second vm instance via PXE. The installer should netboot and
begin installing. A red screen will appear after while with the
following warning:

[!!] Install the base system
Debootstrap warning
Warning:
http://192.168.0.1/ubuntu/dists/lucid/restricted/binary-amd64/Packages was 
corrupt
<Go Back> <Continue>

Pressing enter to continue allows the installer to continue installing.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1023069

Title:
  Packages was corrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1023069/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to