Welcome! Log In Create A New Profile

Advanced

Error when reinstalling Debian from Recovery

Posted by chris5h 
Error when reinstalling Debian from Recovery
April 12, 2014 10:27AM
Hi everyone,

Let me preface this with 2 things:
1) My working knowledge of Linux is a basic user at best, and
2) I searched, searched, and searched again to no avail.

So all that being said, I really need help. I am able to boot into the Rescue System, but when I try to reinstall Debian Wheezy or Squeeze I get an error message:

# Starting debootstrap installation
E: unrecognized or invalid option --no-check-gpg
debootstrap failed.
See /tmp/debian/debootstrap/debootstrap.log for more information.


I am really at a loss for what to do to fix this. If anyone has any insights or suggestion it would be very much appreciated.



Edited 3 time(s). Last edit at 04/12/2014 10:28AM by chris5h.
Attachments:
open | download - error.png (15.3 KB)
Re: Error when reinstalling Debian from Recovery
April 12, 2014 11:37AM
I made some headway, I fixed the original problem by following this step:
Quote

it seems that the install script itself failed to handle this.

Now, in my case I wanted to install debian wheezy. debootstrap is already in NAND, so the script doesn't even try to install it, but the debootstrap version in NAND was too old, giving an error when trying to install wheezy, so I did also the following: Rename debootstrap and related files

mv /usr/sbin/debootstrap /usr/sbin/debootstrap.OLD
mv /usr/share/debootstrap /usr/share/debootstrap.OLD

And then the install script should run fine.
From this post:
http://forum.doozan.com/read.php?4,12835

Unfortunately, now I am getting a different error. :(

tar: can't open 'data.tar.gz': No such file or directory
mv: can't rename './usr/sbin/debootstrap': No such file or directory
mv: can't rename './usr/share/debootstrap': No such file or directory
# checking for /usr/share/debootstrap/pkgdetails...

# Installing /usr/share/debootstrap/pkgdetails...
Connecting to download.doozan.com (50.116.34.13:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or directory
Connecting to download.doozan.com (50.116.34.13:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or directory
## Could not install /usr/share/debootstrap/pkgdetails from http://download.doozan.com/debian/pkgdetails, exiting.

Re: Error when reinstalling Debian from Recovery
April 12, 2014 11:50AM
I tried this step:
Quote

This requires an updated debootstrap configurations. If your system already has debootstrap installed in /usr/sbin/debootstrap (from an earlier Squeeze install, or if you're running the rescue system) you'll need to uninstall that first with the following commands:
rm /usr/sbin/debootstrap
rm -rf /usr/share/debootstrap

-- Jeff

From here:
http://forum.doozan.com/read.php?2,8722

And it is still not working, I get this error:

Connecting to cdn.debian.net (128.30.2.36:80)
debootstrap.deb      100% |*******************************| 56258  00:00:00 ETA
rw-r--r-- 0/0      4 Feb 13 13:44 2014 debian-binary
rw-r--r-- 0/0   1257 Feb 13 13:44 2014 control.tar.gz
rw-r--r-- 0/0  54808 Feb 13 13:44 2014 data.tar.xz
tar: can't open 'data.tar.gz': No such file or directory
mv: can't rename './usr/sbin/debootstrap': No such file or directory
mv: can't rename './usr/share/debootstrap': No such file or directory
# checking for /usr/share/debootstrap/pkgdetails...

# Installing /usr/share/debootstrap/pkgdetails...
Connecting to download.doozan.com (50.116.34.13:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or direct                                                                                                 ory
Connecting to download.doozan.com (50.116.34.13:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or direct                                                                                                 ory
## Could not install /usr/share/debootstrap/pkgdetails from http://download.dooz                                                                                                 an.com/debian/pkgdetails, exiting.
rescue:/tmp#
Re: Error when reinstalling Debian from Recovery
April 12, 2014 04:19PM
chris5h,

Currently, wheezy sctript has problem with debootstrap. So run the squeeze script, and then later upgrade it to wheezy

Quote
Jeff
Alternatively, you can choose to install Debian Squeeze with the following commands:

cd /tmp
wget http://projects.doozan.com/debian/dockstar.debian-squeeze.sh
chmod +x dockstar.debian-squeeze.sh
export PATH=$PATH:/usr/sbin:/sbin
./dockstar.debian-squeeze.sh

After you can boot with the squeeze on your USB into Debian, change apt source to wheezy (point the distribution to somewhere near your locale):

/etc/apt/sources.list
deb http://ftp.us.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main contrib non-free
and then
apt-get update
apt-get dist-upgrade

Alternatively, you can also use this latest rootfs:
http://forum.doozan.com/read.php?2,12096

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 04/12/2014 04:21PM by bodhi.
Re: Error when reinstalling Debian from Recovery
April 13, 2014 04:15PM
Hi bodhi, thanks so much for the reply.

Unfortunately I am still getting the same error.

Setting up swapspace version 1, size = 797847 kB
Connecting to cdn.debian.net (149.20.20.135:80)
debootstrap.deb      100% |*******************************| 56258  --:--:-- ETA
rw-r--r-- 0/0      4 Feb 13 13:44 2014 debian-binary
rw-r--r-- 0/0   1257 Feb 13 13:44 2014 control.tar.gz
rw-r--r-- 0/0  54808 Feb 13 13:44 2014 data.tar.xz
tar: can't open 'data.tar.gz': No such file or directory
mv: can't rename './usr/sbin/debootstrap': No such file or directory
mv: can't rename './usr/share/debootstrap': No such file or directory
# checking for /usr/share/debootstrap/pkgdetails...

# Installing /usr/share/debootstrap/pkgdetails...
Connecting to download.doozan.com (50.116.34.13:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or directory
Connecting to download.doozan.com (50.116.34.13:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or directory
## Could not install /usr/share/debootstrap/pkgdetails from http://download.doozan.com/debian/pkgdetails, exiting.
Re: Error when reinstalling Debian from Recovery
May 26, 2014 07:05PM
@chris5h
Regarding your original error (E: unrecognized or invalid option --no-check-gpg) I've figured out it's due to the script fetching an old debootstrap version.

Change this line in the installation script:

DEBOOTSTRAP_VERSION=$(wget -q "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -o 'debootstrap[^"]*all.deb' | head -n1)

To:
DEBOOTSTRAP_VERSION=$(wget -q "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -o 'debootstrap[^"]*all.deb' | tail -n1)

Which will make the script fetch the latest deboostrap, rather than the oldest.

(FWIW I've used this script: http://www.rudiswiki.de/debian/kirkwood.debian-wheezy.new.sh)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: