Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 04/09/2008, à 12:12

Kaizoku35

problème aptitude et synaptic

Salut, je suis en ce moment sur Hardy et suite à une mise à jour qui c'est à priori mal passée, je ne peux plus utiliser ni synaptic ni "apt".
Sous synaptic je récupère comme message :

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: _cache->open() failed, please report.

Et lorsque j'essaye de faire quoi que ce soit avec apt j'ai le même message :

kaizoku@privateer:~$ sudo apt-get dist-upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Malheureusement lorsque je lance sudo dpkg --configure -a, cela ne corrige rien.

kaizoku@privateer:~$ sudo dpkg --configure -a
Paramétrage de initramfs-tools (0.85eubuntu39.2) ...
update-initramfs: deferring update (trigger activated)

Paramétrage de linux-image-2.6.24-19-generic (2.6.24-19.41) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
update-initramfs: lilo run failed for /boot/initrd.img-2.6.24-19-generic:

Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sdc")
Failed to create initrd image.
dpkg : erreur de traitement de linux-image-2.6.24-19-generic (--configure) :
 le sous-processus post-installation script a retourné une erreur de sortie d'état 2
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
update-initramfs: lilo run failed for /boot/initrd.img-2.6.24-19-generic:

Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sdc")
dpkg: le sous-processus post-installation script a retourné une erreur de sortie d'état 1

J'ai fait quelques recherches et je ne trouve pas de réponse à mon problème, je commence à me demander si je ne dois pas réinstaller complètement ubuntu parce que je ne sais pas trop quoi faire là.

#2 Le 04/09/2008, à 12:31

wido

Re : problème aptitude et synaptic

essaye d'installer les paquets suivants :

sudo apt-get install linux-image-2.6.24-19-generic linux-ubuntu-modules-2.6.24-19-generic linux-restricted-modules-2.6.24-19-generic

suis l'installation jusqu'à son terme même un redémarrage si possible
lance le terminal est tape:

uname -r

si tu as exactement le même chiffre que 2.6.24-19-generic

retourne dans le synaptic et efface les paquets les plus anciens SAUF le 2.6.24-19:

linux-ubuntu-modules-2.6.24-*-generic
linux-image-2.6.24-*-generic
linux-restricted-modules-2.6.24-*-generic

et fais un

sudo apt-get install

pour voir si tout fonctionne.
Sinon j'ai une méthode barbare (sauf l'idée du formatage)

Hors ligne

#3 Le 04/09/2008, à 12:46

Kaizoku35

Re : problème aptitude et synaptic

Merci pour ta réponse Wido, mais lorsque je lance "sudo apt-get install linux-image-2.6.24-19-generic linux-ubuntu-modules-2.6.24-19-generic linux-restricted-modules-2.6.24-19-generic" j'ai toujours mon message "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.".

Comme je l'ai dis dans mon premier post, je ne peux rien installer que ce soit par apt ou en passant par synaptic qui s'ouvre le même message d'erreur.

Alors si tu as une méthode barbare, je suis preneur smile

Hors ligne

#4 Le 04/09/2008, à 13:31

wido

Re : problème aptitude et synaptic

Bon ok,
lances :

gedit /boot/grub/menu.lst

et colles le résultat

aussi ton pc utilise le sata? le raid?

Dernière modification par wido (Le 04/09/2008, à 13:34)

Hors ligne

#5 Le 04/09/2008, à 13:45

Kaizoku35

Re : problème aptitude et synaptic

Alors voilà ce que j'ai dans mon menu.lst :

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=1dff787d-ed47-47e7-b5b0-71ef57006104 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.04, kernel 2.6.24-16-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=1dff787d-ed47-47e7-b5b0-71ef57006104 ro quiet splash
initrd		/boot/initrd.img-2.6.24-16-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=1dff787d-ed47-47e7-b5b0-71ef57006104 ro single
initrd		/boot/initrd.img-2.6.24-16-generic

title		Ubuntu 8.04, memtest86+
root		(hd0,0)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

Sinon, mes disques durs sont en sata, 1 avec la partie système et un autre avec mes données qui était en raid 1 avec un disque identique jusqu'à il y a quelques semaines.

Par contre si ça peut aider, j'avais pas mal de problème lors de l'installation avec le raid, j'ai du installer avec lilo parce qu'il ne boutait pas avec grub, et depuis que j'ai enlevé l'un des disques en raid (en prenant bien le soins de supprimer le raid logiciel), sans avoir de problèmes par la suite, il boot avec grub.

Dernière modification par Kaizoku35 (Le 04/09/2008, à 14:40)

Hors ligne

#6 Le 04/09/2008, à 17:35

wido

Re : problème aptitude et synaptic

j'ai vu aussi que des personnes ayant le même problème que toi avec aussi le fichier lilo et qu'ils étaient aussi en RAID
j'ai une commande  je ne sais pas si ça fonctionne alors fait des sauvegardes de tes données au cas où
:

update-initramfs -c -k 2.6.24-19-generic
ln -s boot/initrd.img-2.6.24-19-generic
lilo

vu sur http://zongo.be/wiki/MacBook/DebianEtch
il y a cette commande où je ne suis pas sur de la fin : update-initramfs -c -k 2.6.24-19-generic ou update-initramfs -c -k 2.6.24-19 à voir si ça prend.

Hors ligne

#7 Le 05/09/2008, à 10:40

Kaizoku35

Re : problème aptitude et synaptic

Salut, j'ai testé ce que tu as mis et voila ce que ça me donne :

root@privateer:/home/kaizoku# update-initramfs -c -k 2.6.24-19-generic
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
root@privateer:/home/kaizoku# ln -s boot/initrd.img-2.6.24-19-generic
root@privateer:/home/kaizoku# lilo
Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sdc")

apparemment cela n'a rien changé, j'ai quand même redémarré par la suite et relancé un "dpkg --configure -a", mais j'avais toujours le même message d'erreur.

LILO et le raid ont foutu un beau bordel et je crois que je vais opter pour une réinstallation bien propre avec grub pour être tranquille par la suite étant donnée que ce n'est pas mon ordi principal et qu'il n'y aura plus de raid dessus.

Merci quand même pour ton aide et bonne journée (^_^)

Hors ligne