Topic: [Resolved] Impossible to upgrade packages

When I try to do an upgrade I have this message:

"E: Sub-process /usr/bin/dpkg received a segmentation fault."

So no upgrade at all is done. How can I solve this ?

Re: [Resolved] Impossible to upgrade packages

Do you overclock? In my experience, too high an overclock can be one of many causes for a Segmentation Fault

Linux Expresso -My collection of Computer madness
HTML5 Responsive Webpage

Re: [Resolved] Impossible to upgrade packages

the real dave wrote:

Do you overclock? In my experience, too high an overclock can be one of many causes for a Segmentation Fault

I must say, that doesn't make sense. A segmentation fault, 9/10 is caused by memory access violations. I can't think how that would relate to overclocking at all.

just call me...
~FSM~

Re: [Resolved] Impossible to upgrade packages

I confirm that I don't over-clock, or it is totally involuntary big_smile

I thought it could be one of the package that have a matter, but I don't know which one (there are about 40 package to upgrade). And even if I knew which one it is I don't know how to upgrade all the packages except this one.

Re: [Resolved] Impossible to upgrade packages

(I don't know anything about this but): when I searched the error on Google I saw three different causes.  One was it tried to update a package (sudo) in the wrong order.  Second was something about clearing available memory or rebooting because of RAM.  Third was a dpkg file for the package (galeon) needed a small edit.

I suggest marking all of them, then uncheck 20.  If that doesn't work try again and uncheck the other 20.  I'm expecting if you keep cutting them down in half, the error package shall correctly install when there isn't a bunch of other ones at the same time.

I think I've had this happen to me before maybe a few months ago.

Last edited by jobester (2010-03-25 00:44:12)

Re: [Resolved] Impossible to upgrade packages

could you paste a more complete input / output of the upgrade process? Can't promise anything but that one line is just too generic.

a.

Last edited by alon_h (2010-03-25 07:36:31)

Re: [Resolved] Impossible to upgrade packages

Alon_h I will do it this evening when I am back home wink

jobester wrote:

(I don't know anything about this but): when I searched the error on Google I saw three different causes.  One was it tried to update a package (sudo) in the wrong order.  Second was something about clearing available memory or rebooting because of RAM.  Third was a dpkg file for the package (galeon) needed a small edit.

I suggest marking all of them, then uncheck 20.  If that doesn't work try again and uncheck the other 20.  I'm expecting if you keep cutting them down in half, the error package shall correctly install when there isn't a bunch of other ones at the same time.

I think I've had this happen to me before maybe a few months ago.

I tried to search things on google but I didn't find a real solution. I will try to upgrade the packages not in the same time to see what appends, but I am not sure to know how to do. Since now I only use sudo apt-get update + sudo apt-get upgrade (also tried aptitude with same result) so I never choose what have to be upgrade or not. I can do it with synaptic I guess ?

Last edited by Nicky (2010-03-25 13:51:54)

Re: [Resolved] Impossible to upgrade packages

Nicky wrote:

I cab do it with synaptic I guess ?

Yes! Synaptic can show you all upgradeble packages...

Re: [Resolved] Impossible to upgrade packages

Ok, thanks, I check this tonight.

Re: [Resolved] Impossible to upgrade packages

So this is what appends when I do a sudo apt-get upgrade :

Everything is ok till it ask me if I want to continue (the first line I quoted)

Souhaitez-vous continuer [O/n] ? o
Extraction des modèles depuis les paquets : 100%
Préconfiguration des paquets...
(Lecture de la base de données... E: Sub-process /usr/bin/dpkg received a segmentation fault.

Translation

Do you want to continue [Y/n] ? y
Extraction of models from the packages : 100%
Preconfiguration of packages...
(reading of the data base.... The famous sentence that I don't understand

I tried to do an upgrade via synaptic. Whatever the package I try to upgrade it fails for the same reason (synaptic give me the exact same sentence that the last line I quoted)

dpkg is to upgrade also and it fails even if I try this one alone.

Re: [Resolved] Impossible to upgrade packages

I wonder if you might have some corrupted data on your disk? That can cause these mysterious faults. (Just guessing here you understand)

Try

sudo touch /forcefsck

in a terminal, then reboot your computer. This will make it do a file system check and repair any damage while booting up. I don't know if it will fix your problem, but it shouldn't do any damage! smile

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: [Resolved] Impossible to upgrade packages

Thanks I will try this.
I have found also a forum (in french) where somebody has this problem and made some complex operations to repair. It looks quiet hazardous... but he won against the computer big_smile
I will show you when I am back home.

Re: [Resolved] Impossible to upgrade packages

fsck doesn't change anything hmm


What a man did and how he succeed, but it is complicated and dangerous I guess, I think that I will do a re-install one of these days and it will be ok.
I make an approx translation for understanding here.

La solution ultime / the ultimate solution
(celle par laquelle je suis passé)
plusieurs étapes :
i/ faire une sauvegarde de la liste des paquets / Save the package list

# mkdir /root/SAUVEGARDE
# dpkg --get-selections > /root/SAUVEGARDE/liste_paquets


et de tous les fichiers de conf, au cas où ca se passe mal ... / And of conf files in case something is going wrong...

# cp -R /var/log /var/cache/{debconf,apt/archives} /var/lib/dpkg/{info,parts,alternatives,methods,updates} /root/SAUVEGARDE


(là on a sauvé la liste des paquets que l'on avait d'installé sur le systeme) / At this point we saved the list of the packages we have installed on the system

ii/ on vire ces fichiers / dossiers. / Remove the files / directories

# rm -rf /var/log /var/cache/{debconf,apt/archives} /var/lib/dpkg/{info,parts,alternatives,methods,updates}



iii/surtout on ne s'arrete pas ici : en ce moment, le systeme pense qu'il n'y a rien d'installé....ce qui n'est pas terrible...
donc on recrée les fameux dossiers, vides :
Important to not stop here as at this time the system thinks that nothing is installed... this is not very good...
So we create back the empty directories


# mkdir /var/log /var/cache/{debconf,apt/archives} /var/lib/dpkg/{info,parts,alternatives,methods,updates}


il faut ensuite recréer le fichier status de base.
on édite /var/lib/dpkg/status et on y entre juste une entrée très simplifiée de la libc6

Then you have to create the basic status file
Edit /var/lib/dpkg/status and make just one entry very simple of the libc6

Package: libc6
Status: install ok installed
Version: 2.3.1-9




ensuite on remet apt-get a jour et on fait un dist-upgrade. Ca va lamentablement merder a la fin, mais c'est juste pour télécharger les paquets de base nécessaires sur la machine.

Then update apt-get and make a dist-upgrade. It will fail at the end but the aim is just to download the necessary basics packages on the computer

# apt-get update
# apt-get dist-upgrade


On réinstalle les paquets de base histoire uniquement de les remettre dans la base d'apt :

Re-install the basic packages just to put them back in the data base of apt

# dpkg --clear-avail
# apt-get update
# apt-get dist-upgrade
# cd /var/cache/apt/archives
# dpkg -i libncurses*
# dpkg -i perl-base*
# dpkg -i libstdc++*
# dpkg -i dselect*
# dpkg -i dpkg*


et on re-enregistre libc6 dans la base : / and re-record libc6 in the base


# apt-get install --reinstall libc6


et on se refait un coup des paquets de base de la distrib : / And one time more the basic packages of the distribution

# apt-get dist-upgrade



iv/ Il ne reste plus qu'a tout "reinstaller" (en réalité, ca sert surtout a tout re-rentrer dans la base de configuration de dpkg) grâce à la sauvegarde de la liste de paquets précédente...

Then there is just to "re-install" everything thanks to the precedent save of the packages list (in reality it is just useful to re-enter everything in the config data base of dpkg)

# apt-get --set-selections < /root/SAUVEGARDE/liste_paquets



J'ai du ensuite broder un peu pour la derniere étape, downgrader certains paquets pour les reinstaller plus tard, ou autre, mais avec certaines indications dans la konsole, ca devrait etre explicite.
en tout cas, à reserver à la "derniere chance"

Then I had to make some adjustments during the last step, downgrade some packages to re-install them later or other, but with some indications in the terminal it should be explicit.
Anyway this is to do as a last chance try

Bon courage si qqn a besoin de ca un jour....
Good luck if anybody need this one day...

Last edited by Nicky (2010-03-28 13:08:44)

Re: [Resolved] Impossible to upgrade packages

^ blimey, well done! smile

Re: [Resolved] Impossible to upgrade packages

Then there is just to "re-install" everything thanks to the precedent save of the packages list (in reality it is just useful to re-enter everything in the config data base of dpkg)

# apt-get --set-selections < /root/liste_paquets

Are you sure this part isn't:

# apt-get --set-selections < /root/SAUVEGARDE/liste_paquets

?

Anyway, you could try it...

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: [Resolved] Impossible to upgrade packages

Yes I thinks it should be this, I just copy/past the message from another forum.

I didn't try anything for the moment, my computer works even if the updates are blocked so I continue for the moment. I indicate the solution only if somebody have the same problem and want to try it. I will maybe try this for the curiosity just before re-installing a new system (I will give you the result if it works or not wink ). I am waiting for the ubuntu LTS as I would like to have a system that is maintained longer.

But I will continue to read this forum which is very friendly and full of information.