[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error happing near end of Ubuntu build that has to do with a bad url being targeted





On 08-08-2016 23:15, Rui Miguel P. Bernardo wrote:
Em 08/08/2016 22:59, "John Lewis" <oflameo2@gmail.com> escreveu:

I am using version 4.0.3-1.


Please take a look at live-build manual at <
http://debian-live.alioth.debian.org/live-manual/stable/manual/html/live-manual.en.html#372>.
Ubuntu mode support in version 4.x is not complete.

I would recommend an Ubuntu host and the live-build version 3.a~57
available in Ubuntu repositories. That's how I had success to build an
Ubuntu image without problems.


On 08/08/2016 04:54 PM, Rui Miguel P. Bernardo wrote:

Hi John,

Em 08/08/2016 19:38, "John Lewis" <oflameo2@gmail.com> escreveu:

I verified that live-config was in ubuntu mode. This may be a bug.

What version of live-build are you using? I think live-build 4.x and
more recent versions do not support Ubuntu mode anymore.



On 08/08/2016 02:11 PM, John Lewis wrote:
I know the issue now. Live-build is trying to pull a file from an
Ubuntu
repository that only exist in a Debian repository.


On 08/08/2016 08:10 AM, John Lewis wrote:
Error happing near end of Ubuntu build that has to do with a bad url
being targeted. What is the work around?

[2016-08-08 08:00:49] lb chroot_hostname install
P: Configuring file /etc/hostname
P: Configuring file /bin/hostname
[2016-08-08 08:00:49] lb chroot_apt install
P: Configuring file /etc/apt/apt.conf
[2016-08-08 08:00:50] lb chroot_archives chroot install
P: Configuring file /etc/apt/sources.list
Hit:1 http://mirror.us.leaseweb.net/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
ubuntu-keyring is already the newest version (2012.05.19).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://mirror.us.leaseweb.net/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
[2016-08-08 08:00:50] lb chroot_linux-image
[2016-08-08 08:00:50] lb chroot_firmware
--2016-08-08 08:00:50--

http://mirror.us.leaseweb.net/ubuntu//dists/xenial/main/Contents-amd64.gz
Resolving mirror.us.leaseweb.net (mirror.us.leaseweb.net)...
108.59.10.97, 2604:9a00:2010:a001:1:face:bad:c0de
Connecting to mirror.us.leaseweb.net
(mirror.us.leaseweb.net)|108.59.10.97|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-08-08 08:00:50 ERROR 404: Not Found.


gzip: stdin: unexpected end of file
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree... Done




If you are trying to build an Ubuntu image with live-build I recommend
you to use an Ubuntu host and use the live-build version present in the
Ubuntu repositories, which is version 3.~57 and is maintained by the Ubuntu
developers and not supported here officially. That version of live-build on
a Ubuntu host will build you an Ubuntu image without problems.

Hope to have helped a bit.

Cheers.




Hi again John,

I've used, earlier this year, live-build 4.x to build ubuntu images for debtailor (my derivative distro: <https://sourceforge.net/projects/debtailor/> ), but here is what I had to set in live-build 4.x to get ubuntu images built on a debian host:

lb config no auto \
--clean \
--ignore-system-defaults \
--mode ubuntu \
--archive-areas "main universe restricted multiverse" \
--linux-packages linux-image \
--apt-recommends false \
--bootappend-live "boot=casper splash quiet --" \
--parent-mirror-bootstrap http://archive.ubuntu.com/ubuntu \
--parent-mirror-chroot http://archive.ubuntu.com/ubuntu \
--parent-mirror-chroot-security http://security.ubuntu.com/ubuntu \
--parent-mirror-binary http://archive.ubuntu.com/ubuntu \
--parent-mirror-binary-security http://security.ubuntu.com/ubuntu \
--mirror-bootstrap http://archive.ubuntu.com/ubuntu \
--mirror-chroot http://archive.ubuntu.com/ubuntu \
--mirror-chroot-security http://security.ubuntu.com/ubuntu \
--mirror-binary http://archive.ubuntu.com/ubuntu \
--mirror-binary-security http://security.ubuntu.com/ubuntu \
--firmware-chroot false \
--firmware-binary false \
--linux-flavours generic \
--debian-installer false \
--apt-indices false \
--backports true \
--updates true \
--initramfs casper \
--zsync false

This live-build 4.x configuration for Ubuntu is also available at <http://paste.debian.net/787531/>.

NOTE: you will not have installer unless you install ubiquity and its graphical frontend, and you will get a syslinux boot screen instead of the gfxboot ubuntu bootscreen usually has. You would have to install gfxboot-theme-ubuntu and configure it and that's not working in live-build 4.x, IIRC.

I hope to have helped in someway.

Regards.


Reply to: