Welcome! Log In Create A New Profile

Advanced

Squeeze not installing - corrupt .debs?

Posted by jfp550 
Re: Squeeze not installing - corrupt .debs?
April 09, 2011 05:06PM
=> darethehair

Tried your method and modified '/usr/share/debootstrap/functions' as suggested.
And it worked without problems :-)

Thanks !
Re: Squeeze not installing - corrupt .debs?
April 10, 2011 07:58AM
sawaguna Wrote:
-------------------------------------------------------
> => darethehair
>
> Tried your method and modified
> '/usr/share/debootstrap/functions' as suggested.
> And it worked without problems :-)
>
> Thanks !

Cool! I hadn't heard from anyone that had tried my approach -- it sounds like it takes much less time than installing Lenny and upgrading to Squeeze. I am puzzled, though, why there is this apparent mixup of deb checksums styles, and if it is being dealt with (?).
Re: Squeeze not installing - corrupt .debs?
April 10, 2011 12:23PM
I always keep a back-up copy of the USB sticks containing Debian/Dockstar for any major revisions using Acronis on my PC. I dug out one of these and made a .tar.gz file and restore it to a clean USB stick and verified it works. The file is about 144MB, slightly larger than the Lenny tarball (118MB). I don't know why no one has made these available for sharing with others. If anyone is interested to host it, please let me know.
The restoring process is one on a Linux virtual machine on PC. I have not try it using Dockstar directly yet but using Linux is simple enough, I guess. To keep the size small, it does not have the latest upgrade but it can be done by simply do apt-get update and upgrade. You can also update the kernel as described on this Forum.
MattiP
Re: Squeeze not installing - corrupt .debs?
April 10, 2011 09:43PM
> I am puzzled, though, why there is this
> apparent mixup of deb checksums styles, and if it
> is being dealt with (?).

In their endless wisdom some of the Debian devs decided that MD5 was old and date and not safe enough. The releases only uses SHA256 and SHA1 now. The problem with some programs like debootstrap is know and is being worked on.
savje
Re: Squeeze not installing - corrupt .debs?
April 11, 2011 03:27PM
@darethehair (and anyone how knows):

This may be very simple, but I'm quite new to debian/linux.

I tried your solution (changing the "verify_checksum" function in /usr/share/debootstrap/functions) however when I try to write my changes to the disk I get a Read-only error. And we I run "chmod 644 /usr/share/debootstrap/functions" I get "Read-only file system".

So how can I change the functions file?

Thanks!
Re: Squeeze not installing - corrupt .debs?
April 11, 2011 04:29PM
savje Wrote:
-------------------------------------------------------
> So how can I change the functions file?

mount -o rw,remount /


Regards,
Christian
Re: Squeeze not installing - corrupt .debs?
April 11, 2011 04:37PM
killerbees19 Wrote:
-------------------------------------------------------
> savje Wrote:
> --------------------------------------------------
> -----
> > So how can I change the functions file?
>
>
> mount -o rw,remount /
>

Strange! I didn't have to do anything (that I recall) to make my file system 'writable' so that I could implement that script change, but thanks for answering the question that was posed :)
Martin
Re: Squeeze not installing - corrupt .debs?
April 16, 2011 07:24AM
Thanks, darethehair. Your method did work for me. I think it is the most appropriate workaround under the circumstances.
Re: Squeeze not installing - corrupt .debs?
April 16, 2011 04:42PM
Here is the best solultion as I posted in the other thread:

Using gorgone's script can install Debian Squeeze without problem. It is as simple as Jeff's script, but there is no problem as mentioned by many people here. It is much faster than the other ways recommended in another thread: installing lenny and upgrading to squeeze (only about 25 min.). Here is the link:

The commands to install squeeze (from the link below) are:

cd /tmp
wget http://ss4200.homelinux.com/dockstar/gogo-dock.sh
chmod 777 gogo-dock.sh
./gogo-dock.sh

Thanks a lot, gorgone.

http://forum.doozan.com/read.php?2,582
Re: Squeeze not installing - corrupt .debs?
April 17, 2011 10:08AM
I did it another way: http://forum.doozan.com/read.php?2,4244,4587#msg-4587

--
shyd

Goflex Net 3.9.5 | Dockstar 3.9.5 | http://dev.shyd.de
Re: Squeeze not installing - corrupt .debs?
April 21, 2011 01:06AM
shyd Wrote:
-------------------------------------------------------
> I did it another way:
> http://forum.doozan.com/read.php?2,4244,4587#msg-4
> 587

Yes. I tried. It works! Thanks.
Angelo Neuschitzer
Re: Squeeze not installing - corrupt .debs?
April 26, 2011 05:05PM
@darethehair
Thank you. I just tried your attempt and its working fine.
From my point of view its irrelevant if the checksum is md5 or sha, but its important to have any check algorithm working.

Thanks for your script.

Angelo
Re: Squeeze not installing - corrupt .debs?
April 30, 2011 01:16AM
There was no "verify_checksum" function is the "functions" file. Should I add it into the functions file?



Edited 1 time(s). Last edit at 04/30/2011 01:19AM by twinclouds.
james wilson
Re: Squeeze not installing - corrupt .debs?
July 12, 2011 05:58PM
i got errrors with apt-get list-upgrade.
trying standard apt-get upgrade ...
after changing sources..
dunno.



debian:~# apt-get list-upgrade
E: Invalid operation list-upgrade
debian:~# apt-get update
Get:1 http://ftp.us.debian.org squeeze Release.gpg [1672B]
Ign http://ftp.us.debian.org squeeze/main Translation-en_US
Ign http://ftp.us.debian.org squeeze/contrib Translation-en_US
Ign http://ftp.us.debian.org squeeze/non-free Translation-en_US
Hit http://ftp.us.debian.org squeeze Release
Hit http://ftp.us.debian.org squeeze/main Packages
Hit http://ftp.us.debian.org squeeze/contrib Packages
Hit http://ftp.us.debian.org squeeze/non-free Packages
Hit http://ftp.us.debian.org squeeze/main Sources
Hit http://ftp.us.debian.org squeeze/contrib Sources
Hit http://ftp.us.debian.org squeeze/non-free Sources
Fetched 1672B in 1s (1155B/s)
Reading package lists... Done
debian:~# apt-get list-upgrade
E: Invalid operation list-upgrade
debian:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
apt apt-utils aptitude at bash bc bind9-host bsdmainutils coreutils cpio
cron dc debianutils dhcp3-client dhcp3-common diff dnsutils dpkg e2fslibs
e2fsprogs ed exim4 exim4-base exim4-config exim4-daemon-light file findutils
ftp gcc-4.3-base gettext-base gnupg gpgv grep groff-base gzip info iproute
iptables iputils-ping ispell less libapt-pkg-perl libblkid1 libc6
libcwidget3 libdevmapper1.02.1 libedit2 libgcc1 libgdbm3 libkrb53
liblocale-gettext-perl libmagic1 libnewt0.52 libpam-modules libpam-runtime
libpopt0 libsasl2-2 libsigc++-2.0-0c2a libslang2 libsqlite3-0 libssl0.9.8
libstdc++6 libtext-charwidth-perl libtext-iconv-perl libuuid-perl libuuid1
locales login logrotate m4 man-db mdadm mktemp mount mutt nano nfs-common
ntpdate openssh-client openssh-server patch perl perl-base perl-modules
procps python python-minimal python2.5 python2.5-minimal readline-common
reportbug rsyslog sed sysv-rc tar udev update-inetd util-linux vim-common
vim-tiny w3m wget whiptail zlib1g
The following packages will be upgraded:
adduser base-files base-passwd bash-completion bsd-mailx bsdutils busybox
bzip2 console-tools debconf debconf-i18n debian-faq devio
dictionaries-common doc-debian flash-kernel hostname iamerican ibritish
ifupdown initramfs-tools initscripts installation-report klibc-utils libacl1
libattr1 libbz2-1.0 libcap2 libcomerr2 libconsole libdb4.6 libgc1c2
libgcrypt11 libgnutls26 libgpg-error0 libgpm2 libgssglue1 libidn11
libkeyutils1 libklibc libldap-2.4-2 liblockfile1 libncurses5 libncursesw5
libnfsidmap2 libpam0g libpci3 libpcre3 libreadline5 librpcsecgss3
libselinux1 libsepol1 libss2 libtasn1-3 libtext-wrapi18n-perl libusb-0.1-4
libwrap0 libxml2 linux-base linux-image-2.6-kirkwood
linux-image-2.6.32-5-kirkwood linux-image-kirkwood lockfile-progs lsb-base
lsof makedev manpages mawk mime-support mlocate module-init-tools
ncurses-base ncurses-bin ncurses-term net-tools netbase openbsd-inetd passwd
pciutils portmap procmail python-central sysvinit sysvinit-utils tasksel
tasksel-data tcpd texinfo time traceroute tzdata ucf usbutils wamerican
whois
95 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.
Need to get 33.6MB of archives.
After this operation, 2373kB of ad
Re: Squeeze not installing - corrupt .debs?
July 12, 2011 07:23PM
There is no "list-upgrade". I think you meant "dist-upgrade" ?
Benoitb
Re: Squeeze not installing - corrupt .debs?
July 20, 2011 10:27AM
The fix of darethehair worked for me.

Thank you !
Re: Squeeze not installing - corrupt .debs?
July 21, 2011 10:10AM
Benoitb Wrote:
-------------------------------------------------------
> The fix of darethehair worked for me.
>
> Thank you !

Cool! I was wondering about that i.e. if I had to re-install from scratch, would the method I used back then still work? Sounds like it would, which is good! :)
I'd like to thank darethehair for the nice "try both" checksum. It worked for me.
Re: Squeeze not installing - corrupt .debs?
July 28, 2011 01:34PM
nop Wrote:
-------------------------------------------------------
> I'd like to thank darethehair for the nice "try
> both" checksum. It worked for me.

Great! I am actually surprised that there are so many different solutions to this problem -- ideally the base scripts themselves could somehow be permanently 'fixed' so that newcomers would not run into these difficulties...
Re: Squeeze not installing - corrupt .debs?
August 04, 2011 05:51AM
Hi Folks,

on installing Squeeze I followed twinclouds recipie.
Worked nice.

One question is still open:
I edited the source.list as he said but still there are links to "Lenny" included.

I assume, this leads to the following:

When I tried to install minidlna as mentioned here , it missed dependent libraries (as to be expected),
which weren't found by the package manager and so trying
"apt-get -f install", it rather de-installed minidlna instead of installing the missing libs.

This leads back to the first part and the resulting question:
What has to be stated in the source.list to be sure the package manager sees all available packages for squeeze

I'n no total noob re linux, working a while with ubuntu by now, but there are still unknown corners :)

THX

Martin
Re: Squeeze not installing - corrupt .debs?
August 04, 2011 07:55AM
cat /etc/debian_version
if its 5.x then you're still running lenny.

to upgrade to squeeze, replace all instances of "lenny" with "squeeze" in etc/apt/sources.list
sudo apt-get update
sudo apt-get dist-upgrade

the last step would be to create new uImage and uInitrd images from the new kernel and initrd images in /boot
backup the existing /boot/uImage and /boot/uInitrd files first!

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n linux-x.y.z -d /boot/vmlinuz-x.y.z /boot/uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-x.y.z -d /boot/initrd.img-x.y.z /boot/uInitrd

replace x.y.z with the version number found on the new files.
for example. on my dockstar they are:
(kernel) vmlinuz-2.6.32-5-kirkwood
(initrd) initrd.img-2.6.32-5-kirkwood
Re: Squeeze not installing - corrupt .debs?
August 04, 2011 04:42PM
Hi,

if followed your advice and got squeeze installed..
this solved my basic installation

I still fight with minidlna though but i open a different thread for that issue

THX

Martin
Super
Re: Squeeze not installing - corrupt .debs?
November 12, 2011 07:21AM
Hi all,

done as "darethehair" told us, dirty but effective:

0. cd /tmp
1. wget http://jeff.doozan.com/debian/dockstar.debian-squeeze.sh
2. chmod +x dockstar.debian-squeeze.sh
3. export PATH=$PATH:/usr/sbin:/sbin
4. ./dockstar.debian-squeeze.sh

5. lock at all the error messages ... nice isn't it ;-)

6. mount -o remount,rw /
7. cd /usr/share/debootstrap
8. vi ./functions

9. move down with the curser to 'verify_checksum ()' and comment out code in the function - write by typing 'i' and then comment a line out with '#'. In the last line write 'return 0'. Press [ESC] and type :wq to save it. and leave vi

10. mount -o remount,ro /
11. cd /tmp
12. ./dockstar.debian-squeeze.sh

Everything should run fine ... hopefully the transmission is ok ;-)

Have a nice day...
Re: Squeeze not installing - corrupt .debs?
November 27, 2011 02:58PM
Thanks Super/darethehair - the instructions worked fine for me.

I finally got around to installing my fourth dockstar :-)

-PG
Re: Squeeze not installing - corrupt .debs?
January 15, 2012 07:15PM
Thanks, darethehair for this tip.

I was trying to use Jeff Doozan's script to install the current Kirkwood version as of today (Kernel version 2.6.32-5) and I was getting all kinds of packages corrupt errors.

Like you said, I just remounted the root fs (to make it read-write) with this:
mount -o remount,rw /
and then I used vi to edit this file:
/usr/share/debootstrap/functions

I commented out the section called verify_checksum () { blah blah }
and I pasted in your code (a few posts ahead) which replaces the "verify_checksum" function.

That was the only file that I had to edit.

Not only did this work flawlessly without doing anything else, but when I screwed things up later, I was able to re-run Jeff's script because my edit was persistent.

Note: Right after the install of debian (which took about as long as it took me to make a peanut-butter and jelly sandwich)
I downloaded the "setup_kernel.sh" script from: http://jeff.doozan.com/debian/lcd/ to upgrade the kernel to gorgone's version: "2.6.35.7-dockstar"
someone
Re: Squeeze not installing - corrupt .debs?
February 14, 2012 01:36AM
The problem is actually the pkgdetails binary that Jeff's scripts download. This always grabs the md5 out of the packages file instead of the sha1 that it should according to DEBOOTSTRAP_CHECKSUM_FIELD environmental field.

The easiest solution is to switch the version of debootstrap that is downloaded. The top of Jeff's script includes a variable for this that grabs the most recent version of debootstrap based on a wget. Change this to just be debootstrap_1.0.26+squeeze1_all.deb and all is peachy. Apparently that was the version before the change to sha based checksums.
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: