Welcome! Log In Create A New Profile

Advanced

apt-get upgrade does not work :

Posted by acognard 
apt-get upgrade does not work :
May 10, 2014 06:01AM
Hi all,
i am facing an issue while upgrading my debian on a Dockstar.

 apt-get upgrade  -y
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Paramétrage de linux-image-2.6.32-5-kirkwood (2.6.32-48squeeze5) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-kirkwood
E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
update-initramfs: failed for /boot/initrd.img-2.6.32-5-kirkwood
update-initramfs failed to create initrd image.
Failed to create initrd image.
dpkg : erreur de traitement de linux-image-2.6.32-5-kirkwood (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 2
configured to not write apport reports
                                      Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-2.6.32-5-kirkwood
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@DockStar:/boot# ls -l
total 18632
-rw-r--r-- 1 root root   84134  9 avril 23:02 config-2.6.32-5-kirkwood
-rw-r--r-- 1 root root 4537126  1 janv.  1970 initrd.img-2.6.32-5-kirkwood
-rw-r--r-- 1 root root 1006354  9 avril 23:02 System.map-2.6.32-5-kirkwood
-rw-r--r-- 1 root root 1435696  1 janv.  1970 uImage
-rw-r--r-- 1 root root 1437272  9 sept.  2013 uImage.bak
-rw-r--r-- 1 root root 4537190  1 janv.  1970 uInitrd
-rw-r--r-- 1 root root 4536740  9 sept.  2013 uInitrd.bak
-rw-r--r-- 1 root root 1436920  9 avril 23:01 vmlinuz-2.6.32-5-kirkwood

root@DockStar:/# ls -l
total 61608
drwxr-xr-x   2 root    root        4096  9 nov.  22:38 bin
...
lrwxrwxrwx   1 root    root          33 17 sept.  2013 initrd.img -> boot/initrd.img-2.6.32-5-kirkwood
...
-rw-rw-rw-   1 root    root         180  1 déc.  18:38 -m00:00:00:00:00:01
-rw-rw-rw-   1 root    root    62915866 10 mai   11:20 -m00:00:00:00:00:02
-rw-rw-rw-   1 root    root        4205  1 déc.  18:00 -m00:10:75:1a:d6:d3
...
lrwxrwxrwx   1 root    root          30 17 sept.  2013 vmlinuz -> boot/vmlinuz-2.6.32-5-kirkwood
-rw-r--r--   1 root    root        2202 11 avril 22:51 webmin-setup.out

Any idea / help solution on this problem ?

Sincerly.
Arnaud
Re: apt-get upgrade does not work :
May 12, 2014 11:57PM
Arnaud,

You should check your USB rootfs for errors with fsck.

Also list your files with so that it sorted by time stamp, ls -l is a little hard to read (while I am trying to read French :).
ls -lart

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: apt-get upgrade does not work :
May 22, 2014 02:12PM
hi bodhy, hi all,
here are the results.

root@DockStar:/boot# ls -lart
total 18640
-rw-r--r--  1 root root 4537126  1 janv.  1970 initrd.img-2.6.32-5-kirkwood
-rw-r--r--  1 root root 1435696  1 janv.  1970 uImage
-rw-r--r--  1 root root 4537190  1 janv.  1970 uInitrd
-rw-r--r--  1 root root 4536740  9 sept.  2013 uInitrd.bak
-rw-r--r--  1 root root 1437272  9 sept.  2013 uImage.bak
-rw-r--r--  1 root root 1437280 13 mai   21:03 vmlinuz-2.6.32-5-kirkwood
-rw-r--r--  1 root root 1006354 13 mai   21:03 System.map-2.6.32-5-kirkwood
-rw-r--r--  1 root root   84134 13 mai   21:03 config-2.6.32-5-kirkwood
drwxr-xr-x  2 root root    4096 22 mai   21:08 .
drwxrwxrwx 23 root root    4096 22 mai   21:08 ..


root@DockStar:/# ls -lart
total 61612
drwxr-xr-x 12 root    root           0  1 janv.  1970 sys
dr-xr-xr-x 98 root    root           0  1 janv.  1970 proc
drwxr-xr-x  7 root    root        4096  1 janv.  1970 run
drwxr-xr-x  2 root    root        4096 21 juil.  2010 selinux
drwx------  2 root    root       16384  9 sept.  2013 lost+found
drwxr-xr-x 10 root    root        4096  9 sept.  2013 usr
drwxr-xr-x  2 root    root        4096  9 sept.  2013 opt
drwxr-xr-x  2 root    root        4096 10 sept.  2013 media
lrwxrwxrwx  1 root    root          30 17 sept.  2013 vmlinuz -> boot/vmlinuz-2.6.32-5-kirkwood
lrwxrwxrwx  1 root    root          33 17 sept.  2013 initrd.img -> boot/initrd.img-2.6.32-5-kirkwood
drwxr-xr-x  3 root    root        4096 21 oct.   2013 srv
drwxr-xr-x  2 root    root        4096  9 nov.   2013 bin
-rw-rw-rw-  1 root    root        4205  1 déc.  18:00 -m00:10:75:1a:d6:d3
-rw-rw-rw-  1 root    root         180  1 déc.  18:38 -m00:00:00:00:00:01
drwxr-xr-x 10 root    root        4096 31 mars  23:49 home
drwxr-xr-x 16 root    root        4096 11 avril 22:44 var
-rw-r--r--  1 root    root        2202 11 avril 22:51 webmin-setup.out
drwxr-xr-x  4 mobotix mobotix     4096 13 avril 17:03 Replication
drwxr-xr-x  3 root    root        4096  9 mai   22:56 mnt
drwxr-xr-x 11 root    root        4096  9 mai   23:22 lib
drwxr-xr-x  2 root    root        4096  9 mai   23:22 sbin
drwxr-xr-x 15 root    root        2680 10 mai   11:23 dev
-rw-rw-rw-  1 root    root    62915914 15 mai   05:19 -m00:00:00:00:00:02
drwx------ 10 root    root        4096 22 mai   20:52 root
drwxr-xr-x  2 root    root        4096 22 mai   21:08 boot
drwxr-xr-x 86 root    root        4096 22 mai   21:08 etc
drwxrwxrwx 23 root    root        4096 22 mai   21:08 ..
drwxrwxrwx 23 root    root        4096 22 mai   21:08 .
drwxrwxrwt 15 root    root         500 22 mai   21:10 tmp

ok for the check, but i will have to stop it :(

Sincerly.
Arnaud



Edited 1 time(s). Last edit at 05/22/2014 02:41PM by acognard.
Re: apt-get upgrade does not work :
May 22, 2014 11:28PM
Arnaud,

You kernel is too old. I'd suggest:

1. Run complete fsck. Let the system fix any filesystem errors that you might have.
2. Backup your USB rootfs.

3. If you can boot into Debian, then download and install new kernel from this thread (the latest is linux-3.14.0-kirkwood-tld-2-bodhi.tar.bz2 dated 21 April 2014):
http://forum.doozan.com/read.php?2,12096

4. If you can not boot into Debian, then use a different USB stick, create a new rootfs using the download tarball from the same thread above (the latest rootfs is Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (dated 15 April 2014). Boot with this new USB stick and fix your rootfs stick while inside Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: apt-get upgrade does not work :
July 19, 2014 03:37AM
hello, many tks for your response.
Well, i will need some help from the community because i am not able to understand all that actions to do.
1-fsck is ok
2-backup your USB rootfs.
==> what do you mean by backup the roots ?
3. If you can boot into Debian, then download and install new kernel from this thread (the latest is linux-3.14.0-kirkwood-tld-2-bodhi.tar.bz2 dated 21 April 2014):
http://forum.doozan.com/read.php?2,12096
==>how to boot into debian ???? do you mean on my usb system ? if it that, my system is running quite good.
4. If you can not boot into Debian, then use a different USB stick, create a new rootfs using the download tarball from the same thread above (the latest rootfs is Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (dated 15 April 2014). Boot with this new USB stick and fix your rootfs stick while inside Debian.

Tks in advance. Arnaud
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: