On Mon, 19 May 2014 09:54:38 +0100 RichardBown <rich...@g8jvm.com> wrote:
> On Sun, 18 May 2014 19:55:11 -0400 > "Lennart Sorensen" <lsore...@csclub.uwaterloo.ca> wrote: > > > On Mon, May 19, 2014 at 12:49:44AM +0100, RichardBown wrote: > > > On Sun, 18 May 2014 19:44:22 -0400 > > > "Lennart Sorensen" <lsore...@csclub.uwaterloo.ca> wrote: > > > > > > > On Mon, May 19, 2014 at 12:24:33AM +0100, RichardBown wrote: > > > > > Hi > > > > > > > > > > As the squeeze version of debootstrap is sitting in the flash > > > > > and cant be over written > > > > > I've edited the kirwood.debian-wheezy.sh > > > > > > > > > > DEB_MIRROR="http://cdn.debian.net/debian" > > > > > > > > > > MKE2FS_URL="$MIRROR/debian/mke2fs" > > > > > PKGDETAILS_URL="$MIRROR/debian/pkgdetails" > > > > > URL_UBOOT="http://projects.doozan.com/uboot/install_uboot_mtd0.sh" > > > > > #DEBOOTSTRAP_VERSION=$(wget -q > > > > > "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -o > > > > > 'debootstrap[^"]*all.deb' | head -n1) > > > > > #DEBOOTSTRAP_VERSION=$(wget -q > > > > > "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -v > > > > > squeeze | grep -o 'debootstrap[^"]*all.deb' | head -n1 ) > > > > > #URL_DEBOOTSTRAP="$DEB_MIRROR/pool/main/d/debootstrap/$DEBOOTSTRAP_VERSION" > > > > > URL_DEBOOTSTRAP="$DEB_MIRROR/pool/main/d/debootstrap/debootstrap_1.0.60_all.deb" > > > > > > > > > > # > > > > > # Download debootstrap > > > > > # > > > > > ########## > > > > > ########## > > > > > > > > > > #if [ ! -e /usr/sbin/debootstrap ]; then > > > > > mkdir /tmp/debootstrap > > > > > cd /tmp/debootstrap > > > > > wget -O debootstrap.deb $URL_DEBOOTSTRAP > > > > > ar xv debootstrap.deb > > > > > tar xzvf data.tar.gz > > > > > > > > > > if [ "$RO_ROOT" = "1" ]; then > > > > > mount -o remount,rw / > > > > > fi > > > > > # mv ./usr/sbin/debootstrap /usr/sbin > > > > > # mv ./usr/share/debootstrap /usr/share > > > > > > > > You need those two lines to extract the new version though. > > > > > > > > > install "$PKGDETAILS" "$PKGDETAILS_URL" 755 > > > > > > > > > > if [ "$RO_ROOT" = "1" ]; then > > > > > mount -o remount,ro / > > > > > fi > > > > > #fi > > > > > > > > That should do it. Just removing the if should fix it for you. > > > > > > > > > > Thanks > > > nearly there, just what decompresses data.tar.xz ? > > > > > > tar doesn't like it > > > > > > Many thanks for the help so far, must get to bed > > > > Oh crap, that's a modern deb format with xz compression. Does that > > also happen if you leave it at using the 1.0.48 wheezy version? As > > far as I can tell the wheezy version is a data.tar.gz so it should > > work with the script, which the new debootstrap version won't. > > > > Yes going back to 1.0.48 allows decompression of the file. > > But then hits another problem > > ## Valid uBoot detected: [pinkpogo davygravy-2012-02-20-current] > ## The newest uBoot is already installed on mtd0. > > # uBoot installation has completed successfully. > Setting up swapspace version 1, size = 407715840 bytes > Connecting to cdn.debian.net (83.142.228.128:80) > debootstrap.deb 100% |*****************************| 60598 > --:--:-- ETA rw-r--r-- 0/0 4 Jun 3 15:00 2013 debian-binary > rw-r--r-- 0/0 1190 Jun 3 15:00 2013 control.tar.gz > rw-r--r-- 0/0 59215 Jun 3 15:00 2013 data.tar.gz > ./ > ./usr/ > ./usr/sbin/ > ./usr/sbin/debootstrap > ./usr/share/ > ./usr/share/doc/ > ./usr/share/doc/debootstrap/ > ./usr/share/doc/debootstrap/README > ./usr/share/doc/debootstrap/copyright > ./usr/share/doc/debootstrap/changelog.gz > ./usr/share/man/ > ./usr/share/man/man8/ > ./usr/share/man/man8/debootstrap.8.gz > ./usr/share/debootstrap/ > ./usr/share/debootstrap/scripts/ > ./usr/share/debootstrap/scripts/sarge.buildd > ./usr/share/debootstrap/scripts/dapper > ./usr/share/debootstrap/scripts/feisty > ./usr/share/debootstrap/scripts/woody > ./usr/share/debootstrap/scripts/hoary.buildd > ./usr/share/debootstrap/scripts/potato > ./usr/share/debootstrap/scripts/warty.buildd > ./usr/share/debootstrap/scripts/breezy > ./usr/share/debootstrap/scripts/sid > ./usr/share/debootstrap/scripts/gutsy > ./usr/share/debootstrap/scripts/sarge > ./usr/share/debootstrap/scripts/edgy > ./usr/share/debootstrap/scripts/hoary > ./usr/share/debootstrap/scripts/warty > ./usr/share/debootstrap/scripts/sarge.fakechroot > ./usr/share/debootstrap/scripts/woody.buildd > ./usr/share/debootstrap/functions > ./usr/share/debootstrap/devices.tar.gz > ./usr/share/debootstrap/scripts/raring > ./usr/share/debootstrap/scripts/intrepid > ./usr/share/debootstrap/scripts/stable > ./usr/share/debootstrap/scripts/wheezy > ./usr/share/debootstrap/scripts/etch-m68k > ./usr/share/debootstrap/scripts/unstable > ./usr/share/debootstrap/scripts/oldstable > ./usr/share/debootstrap/scripts/jaunty > ./usr/share/debootstrap/scripts/lenny > ./usr/share/debootstrap/scripts/precise > ./usr/share/debootstrap/scripts/hardy > ./usr/share/debootstrap/scripts/maverick > ./usr/share/debootstrap/scripts/quantal > ./usr/share/debootstrap/scripts/squeeze > ./usr/share/debootstrap/scripts/lucid > ./usr/share/debootstrap/scripts/karmic > ./usr/share/debootstrap/scripts/jessie > ./usr/share/debootstrap/scripts/oneiric > ./usr/share/debootstrap/scripts/testing > ./usr/share/debootstrap/scripts/natty > ./usr/share/debootstrap/scripts/etch > mv: cannot remove '/usr/share/debootstrap': Is a directory > # checking for /usr/share/debootstrap/pkgdetails... > > > # Starting debootstrap installation > ./kirkwood.debian-wheezy8.sh: line 358: /tmp/bootstrap/debootstrap: > No such file or directory debootstrap failed. > > > I can see why, as it chroots, it cant see /tmp any more :( > I suspect the answer may be to force uboot to be reinstalled, which > maybe will flush out /usr/bin/. may also turn it in to a brick. > > or to add a path statement to get /tmp/bootstrap found ???? > MORE- I decided to run the uboot loader, and afterwards debootstrap was shown as 1.0.48. and put the source location back to /usr/sbin/debootstrap in the script The script runs, but there are errors messages , line 398 command not recognised in debootstrap, four lines, see note at end of mail. plus its doing this when downloading packages I: Validating vim-tiny W: http://cdn.debian.net/debian/pool/main/v/vim/vim-tiny_7.3.547-7_armel.deb was corrupt W: Couldn't download package vim-tiny I: Retrieving wget W: Retrying failed download of http://cdn.debian.net/debian/pool/main/w/wget/wget_1.13.4-3+deb7u1_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/w/wget/wget_1.13.4-3+deb7u1_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/w/wget/wget_1.13.4-3+deb7u1_armel.deb I: Validating wget W: http://cdn.debian.net/debian/pool/main/w/wget/wget_1.13.4-3+deb7u1_armel.deb was corrupt W: Couldn't download package wget I: Retrieving xz-utils W: Retrying failed download of http://cdn.debian.net/debian/pool/main/x/xz-utils/xz-utils_5.1.1alpha+20120614-2_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/x/xz-utils/xz-utils_5.1.1alpha+20120614-2_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/x/xz-utils/xz-utils_5.1.1alpha+20120614-2_armel.deb I: Validating xz-utils W: http://cdn.debian.net/debian/pool/main/x/xz-utils/xz-utils_5.1.1alpha+20120614-2_armel.deb was corrupt W: Couldn't download package xz-utils I: Retrieving zlib1g W: Retrying failed download of http://cdn.debian.net/debian/pool/main/z/zlib/zlib1g_1.2.7.dfsg-13_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/z/zlib/zlib1g_1.2.7.dfsg-13_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/z/zlib/zlib1g_1.2.7.dfsg-13_armel.deb I: Validating zlib1g W: http://cdn.debian.net/debian/pool/main/z/zlib/zlib1g_1.2.7.dfsg-13_armel.deb was corrupt W: Couldn't download package zlib1g I: Chosen extractor for .deb packages: ar W: Failure trying to run: chroot /tmp/debian mount -t proc proc /proc debootstrap failed. See /tmp/debian/debootstrap/debootstrap.log for more information. Pogoplug:/tmp$ heres the end section of the log file I: Validating u-boot-tools W: http://cdn.debian.net/debian/pool/main/u/u-boot/u-boot-tools_2012.04.01-2_armel.deb was corrupt W: Couldn't download package u-boot-tools I: Retrieving udev W: Retrying failed download of http://cdn.debian.net/debian/pool/main/u/udev/udev_175-7.2_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/u/udev/udev_175-7.2_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/u/udev/udev_175-7.2_armel.deb I: Validating udev W: http://cdn.debian.net/debian/pool/main/u/udev/udev_175-7.2_armel.deb was corrupt W: Couldn't download package udev I: Retrieving util-linux W: Retrying failed download of http://cdn.debian.net/debian/pool/main/u/util-linux/util-linux_2.20.1-5.3_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/u/util-linux/util-linux_2.20.1-5.3_armel.deb W: Retrying failed download of http://cdn.debian.net/debian/pool/main/u/util-linux/util-linux_2.20.1-5.3_armel.deb I: Validating util-linux W: http://cdn.debian.net/debian/pool/main/u/util-linux/util-linux_2.20.1-5.3_armel.deb was corrupt ar: short read zcat: short read chroot: cannot execute mount: No such file or directory wget: can't open '/tmp/debian//var/cache/apt/archives/partial/libacl1_2.2.51-8_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/adduser_3.113+nmu3_all.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/apt_0.9.7.9+deb7u1_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/libapt-pkg4.12_0.9.7.9+deb7u1_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/libattr1_1%3a2.4.46-8_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/base-files_7.1wheezy5_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/base-passwd_3.5.26_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/bash_4.2+dfsg-0.1_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/libbz2-1.0_1.0.6-4_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable wget: can't open '/tmp/debian//var/cache/apt/archives/partial/coreutils_8.13-3.5_armel.deb': File exists wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable /tmp/debian/debootstrap/debootstrap.log I dont believe the files on the server are corrupted there is this as well early in the process:_ Starting debootstrap installation /usr/sbin/debootstrap: line 398: in_path: command not found /usr/sbin/debootstrap: line 401: in_path: command not found /usr/sbin/debootstrap: line 460: in_path: command not found /usr/sbin/debootstrap: line 460: in_path: command not found /usr/sbin/debootstrap: line 468: in_path: command not found Pogoplug:/tmp$ debootstrap --version debootstrap 1.0.48+deb7u1 Which the problems are in this section of debootstrap ########################################################################### if in_path dpkg && \ dpkg --print-architecture >/dev/null 2>&1; then HOST_ARCH=`/usr/bin/dpkg --print-architecture` elif in_path udpkg && \ udpkg --print-architecture >/dev/null 2>&1; then HOST_ARCH=`/usr/bin/udpkg --print-architecture` elif [ -e $DEBOOTSTRAP_DIR/arch ]; then HOST_ARCH=`cat $DEBOOTSTRAP_DIR/arch` fi HOST_OS="$HOST_ARCH" # basic host OS guessing for non-Debian systems if [ -z "$HOST_OS" ]; then case `uname` in Linux) HOST_OS=linux ;; GNU/kFreeBSD) HOST_OS=kfreebsd ;; GNU) HOST_OS=hurd ;; FreeBSD*) HOST_OS=freebsd ;; esac fi Looking in /usr/bin on the pogoplug the is NO dpkg, or in any other directory :( The only earlier version of debootstrap is 1.0.26 which wont run as found earlier. do not pass go, do not collect $100, go directly to jail , seems familiar. Now I'm stuck , it really is a pogopig after all. -- -- Best wishes /73 Richard Bown Email : rich...@g8jvm.com HTTP : http://www.g8jvm.com nil carborundum a illegitemis ################################################################################## Ham Call G8JVM . OS Linux Mint 16 x86_64 on a Dell Inspiron N5030 laptop Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W Microwave 23 cms 140W, 13 cms 100W, 6 cms 0W & 3cms 5W ################################################################################## -- To UNSUBSCRIBE, email to debian-arm-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140519120538.38a0a7ab@richard-laptop