[lxc-devel] gentoo container building fails during wget.

Jäkel, Guido G.Jaekel at dnb.de
Wed Feb 18 08:56:58 UTC 2015


--- lxc-gentoo.in.20150218-095329       2015-02-18 09:53:29.160903000 +0100
+++ lxc-gentoo.in       2015-02-18 09:54:03.823073000 +0100
@@ -160,7 +160,7 @@
         printf "Determining path to latest Gentoo %s (%s) stage3 archive...\n" "${arch}" "${variant}"
         printf " => downloading and processing %s\n" "${stage3_pointer}"
 
-        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 ) \
+        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 | cut -d' ' -f1) \
             || die 6 "Error: unable to fetch\n"
 
         printf " => Got: %s\n" "${stage3_latest_tarball}"

with greetings

Guido Jäkel

>-----Original Message-----
>From: lxc-devel [mailto:lxc-devel-bounces at lists.linuxcontainers.org] On Behalf Of lxc-develop at noci.xs4all.nl
>Sent: Wednesday, February 18, 2015 12:10 AM
>To: LXC development mailing-list
>Subject: [lxc-devel] gentoo container building fails during wget.
>
>The Gentoo template for lxc-1.1.0 is failing...
>
>The link file contains
>20141204/stage3-amd64-20141204.tar.bz2 207889127
>
>The file should be:
>http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64-20141204.tar.bz2
>
>the 207889127 part is the size. which should not be in the filename, for wget.
>
>Example:
>
>
>Determining path to latest Gentoo amd64 (amd64) stage3 archive...
> => downloading and processing
>http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt
> => Got: 20141204/stage3-amd64-20141204.tar.bz2 207889127
>Downloading/untarring the actual stage3 tarball...
>--2015-02-17 22:18:30--
>http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64-20141204.tar.bz2%20207889127
>Resolving distfiles.gentoo.org (distfiles.gentoo.org)... 156.56.247.195,
>64.50.233.100, 137.226.34.42, ...
>Connecting to distfiles.gentoo.org (distfiles.gentoo.org)|156.56.247.195|:80...
>connected.
>HTTP request sent, awaiting response... 404 Not Found
>2015-02-17 22:18:30 ERROR 404: Not Found.
>
>http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64-20141204.tar.bz2
>
>
>bzip2: Compressed file ends unexpectedly;
>        perhaps it is corrupted?  *Possible* reason follows.
>bzip2: Inappropriate ioctl for device
>        Input file = (stdin), output file = (stdout)
>
>It is possible that the compressed file(s) have become corrupted.
>You can use the -tvv option to test integrity of such files.
>
>You can use the `bzip2recover' program to attempt to recover
>data from undamaged sections of corrupted files.
>
>tar: Child returned status 2
>tar: Error is not recoverable: exiting now
>
>
>_______________________________________________
>lxc-devel mailing list
>lxc-devel at lists.linuxcontainers.org
>http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list