Welcome! Log In Create A New Profile

Advanced

Wheezy install, E: unrecognized or invalid option --no-check-gpg

Posted by Dieter 
Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 26, 2015 05:46PM
Hello,

REMARK:STOP READING, found the problem, had to delete /tmp/debootstrap!


i tried now several times to install wheezy. But it does not work.
I used:
mount -o remount,rw /
mv /usr/sbin/debootstrap /usr/sbin/debootstrap.OLD
mv /usr/share/debootstrap /usr/share/debootstrap.OLD

and i tried both:
Quote

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)

However, I do not get beyond the error message:
E: unrecognized or invalid option --no-check-gpg

Can anybody please help? I would like to continue using my dockstar! (my old usb stick died)
Regards, Dieter



Edited 1 time(s). Last edit at 03/26/2015 05:54PM by Dieter.
Re: Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 26, 2015 09:47PM
I am having the exact same problem with a new install on a recently reclaimed Dockstar and a new USB stick (1 Gig).
I do not have anything in /tmp/debootstrap and my USB is formatted roughly 512M bootable Linux (83) and 512M Linux Swap (82).
The current uboot is installed.

Any help would be appreciated.

Here's a dump of my console:

Pogoplug:~$ cd /tmp
<projects.doozan.com/debian/kirkwood.debian-wheezy.sh
Connecting to projects.doozan.com (50.116.34.13:80)
kirkwood.debian-whee 100% |*******************************| 11159  --:--:-- ETA
Pogoplug:/tmp$ chmod +x kirkwood.debian-wheezy.sh
Pogoplug:/tmp$ export PATH=$PATH:/usr/sbin:/sbin
Pogoplug:/tmp$ ./kirkwood.debian-wheezy.sh


!!!!!!  DANGER DANGER DANGER DANGER DANGER DANGER  !!!!!!

This script will replace the bootloader on /dev/mtd0.

If you lose power while the bootloader is being flashed,
your device could be left in an unusable state.


This script will configure your Dockstar to boot Debian
from a USB device.  Before running this script, you should have
used fdisk to create the following partitions:

/dev/sda1 (Linux ext2, at least 400MB)
/dev/sda2 (Linux swap, recommended 256MB)


This script will DESTROY ALL EXISTING DATA on /dev/sda1
Please double check that the device on /dev/sda1 is the correct device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If everything looks good, type 'ok' to continue: ok
Connecting to projects.doozan.com (50.116.34.13:80)
install_uboot_mtd0.s 100% |*******************************| 18406  --:--:-- ETA
Installing Bootloader
# checking for /usr/sbin/nandwrite...
# checking for /usr/sbin/nanddump...
# checking for /usr/sbin/flash_erase...
# checking for /usr/sbin/fw_printenv...
# checking for /etc/fw_env.config...

# Validating existing uBoot...
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
Connecting to jeff.doozan.com (50.116.34.13:80)
valid-uboot.md5      100% |*******************************|  1133  --:--:-- ETA
## Valid uBoot detected: [dockstar davygravy-2012-02-12-current]
## The newest uBoot is already installed on mtd0.

# uBoot installation has completed successfully.
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
33360 inodes, 133308 blocks
6665 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=138412032
5 block groups
32768 blocks per group, 32768 fragments per group
6672 inodes per group
Superblock backups stored on blocks:
        32768, 98304

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
Setting up swapspace version 1, size = 478997504 bytes


# Starting debootstrap installation
E: unrecognized or invalid option --no-check-gpg
debootstrap failed.
See /tmp/debian/debootstrap/debootstrap.log for more information.
Pogoplug:/tmp$
Re: Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 27, 2015 06:57PM
Ack210 Wrote:
-------------------------------------------------------
> I am having the exact same problem with a new
> install on a recently reclaimed Dockstar and a new
> USB stick (1 Gig).
> I do not have anything in /tmp/debootstrap and my
> USB is formatted roughly 512M bootable Linux (83)
> and 512M Linux Swap (82).
> The current uboot is installed.
>
> Any help would be appreciated.
>
> Here's a dump of my console:
>
>
> Pogoplug:~$ cd /tmp
> <projects.doozan.com/debian/kirkwood.debian-wheezy
> .sh
> Connecting to projects.doozan.com
> (50.116.34.13:80)
> kirkwood.debian-whee 100%
> |*******************************| 11159  --:--:--
> ETA
> Pogoplug:/tmp$ chmod +x kirkwood.debian-wheezy.sh
> Pogoplug:/tmp$ export PATH=$PATH:/usr/sbin:/sbin
> Pogoplug:/tmp$ ./kirkwood.debian-wheezy.sh
> 
> 
> !!!!!!  DANGER DANGER DANGER DANGER DANGER DANGER 
> !!!!!!
> 
> This script will replace the bootloader on
> /dev/mtd0.
> 
> If you lose power while the bootloader is being
> flashed,
> your device could be left in an unusable state.
> 
> 
> This script will configure your Dockstar to boot
> Debian
> from a USB device.  Before running this script,
> you should have
> used fdisk to create the following partitions:
> 
> /dev/sda1 (Linux ext2, at least 400MB)
> /dev/sda2 (Linux swap, recommended 256MB)
> 
> 
> This script will DESTROY ALL EXISTING DATA on
> /dev/sda1
> Please double check that the device on /dev/sda1
> is the correct device.
> 
> By typing ok, you agree to assume all liabilities
> and risks
> associated with running this installer.
> 
> If everything looks good, type 'ok' to continue:
> ok
> Connecting to projects.doozan.com
> (50.116.34.13:80)
> install_uboot_mtd0.s 100%
> |*******************************| 18406  --:--:--
> ETA
> Installing Bootloader
> # checking for /usr/sbin/nandwrite...
> # checking for /usr/sbin/nanddump...
> # checking for /usr/sbin/flash_erase...
> # checking for /usr/sbin/fw_printenv...
> # checking for /etc/fw_env.config...
> 
> # Validating existing uBoot...
> Block size 131072, page size 2048, OOB size 64
> Dumping data starting at 0x00000000 and ending at
> 0x00080000...
> Connecting to jeff.doozan.com (50.116.34.13:80)
> valid-uboot.md5      100%
> |*******************************|  1133  --:--:--
> ETA
> ## Valid uBoot detected: [dockstar
> davygravy-2012-02-12-current]
> ## The newest uBoot is already installed on mtd0.
> 
> # uBoot installation has completed successfully.
> mke2fs 1.41.12 (17-May-2010)
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> Stride=0 blocks, Stripe width=0 blocks
> 33360 inodes, 133308 blocks
> 6665 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=138412032
> 5 block groups
> 32768 blocks per group, 32768 fragments per group
> 6672 inodes per group
> Superblock backups stored on blocks:
>         32768, 98304
> 
> Writing inode tables: done
> Writing superblocks and filesystem accounting
> information: done
> 
> This filesystem will be automatically checked
> every 27 mounts or
> 180 days, whichever comes first.  Use tune2fs -c
> or -i to override.
> Setting up swapspace version 1, size = 478997504
> bytes
> 
> 
> # Starting debootstrap installation
> E: unrecognized or invalid option --no-check-gpg
> debootstrap failed.
> See /tmp/debian/debootstrap/debootstrap.log for
> more information.
> Pogoplug:/tmp$
>

You can use my latest released 3.16 rootfs (link in my signature). Or if you rather build your own mainline Debian, run the squeeze script mentioned in Jeff's instruction, and then upgrade to wheezy.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 28, 2015 11:45AM
Hello Ack210,

have you tried to exchange head and tail as I wrote above?
Before, do the above mentioned moves. (mv)

Regards, Dieter
Re: Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 28, 2015 06:38PM
Thanks for the advice. As you probably have guessed, I'm a relative noob to this.

I did not do the moves on my initial install, since I had never attempted a Debian install before on this device and therefore, they should't exist. (I checked, they didn't)

I have done that since but still received the same error.

After I changed head to tail, I got past the --no-check-gpg error, but wheezy still failed on install.

The last few lines of /tmp/debian/debootstrap/debootstrap.logd were as follows:

Connecting to cdn.debian.net (46.4.205.44:80)
wget_1.13.4-3+deb7u2 100% |*******************************|   735k 00:00:00 ETA
Connecting to cdn.debian.net (46.4.205.44:80)
xz-utils_5.1.1alpha+ 100% |*******************************|   233k 00:00:00 ETA
Connecting to cdn.debian.net (46.4.205.44:80)
zlib1g_1%3a1.2.7.dfs 100% |*******************************| 87460  --:--:-- ETA
FATAL: kernel too old

I tried all this on a second USB flash drive and while the wheezy script reported success (go figure), on reboot I was right back at the original software. :-(


I am now trying again using squeeze.
Re: Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 28, 2015 10:06PM
No luck.

Squeeze installs, but on reboot I'm right back to the pogoplug software.

I'm at a loss.
Re: Wheezy install, E: unrecognized or invalid option --no-check-gpg
March 29, 2015 04:41AM
Hello,

it seems, that you are exactly following my steps. As next, I activated netcat to see what is happening, then continue here:

http://forum.doozan.com/read.php?2,20732,20743#msg-20743

Regards, Dieter
SUCCESS!
March 29, 2015 07:53PM
Thank you for that last link, Dieter. In it I found the source of my problem.

I didn't use netcat or netconsole, as I've been interacting with the Dockstar boot via the internal serial port.

As in your link above, uImage and uInitrd were not being loaded on the USB drive for some odd reason.

Bodhi:
Many thanks as well.

I used your rootfs image and it booted right up.
I didn't understand a couple of things but apparently it didn't matter

For example:
I had no idea waht to do with this:
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
rootfstype=ext2

Also, when I went in to edit /media/sdb1/etc/fstab (actually on my computer it was /media/rootfs/etc/fstab), I found no reference to
/dev/root      /               ext2    noatime,errors=remount-ro 0 1

But it booted right up with no major errors.

I'm now waiting for my Dockstar (I think I'll rename it DEBstar) to finish updating and then I can start adding things to it like samba, minidlna and maybe work on attaching a wireless dongle and a USB sound card.

Anyone have other suggestions what to do with this neat toy?

Again, many thanks.
Re: SUCCESS!
March 29, 2015 08:39PM
Ack210,

> set_bootargs_usb=setenv bootargs console=$console
> root=$usb_root rootdelay=$rootdelay
> rootfstype=$rootfstype $mtdparts
> rootfstype=ext2
>
> Also, when I went in to edit /media/sdb1/etc/fstab
> (actually on my computer it was
> /media/rootfs/etc/fstab), I found no reference to
>
> /dev/root / ext2
> noatime,errors=remount-ro 0 1
>
> But it booted right up with no major errors.

We really don't need the fstab part at all. The kernel bootarg root= already take care of where the root device is located. However, fstab would be important in case the kernel bootarg is missing. So I included both for completeness.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

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: