#1 Le 09/04/2007, à 22:13
- chapi
[Résolu] migration Edgy "Package is in a very bad inconsistent state"
Bonjour,
je soupçonnais avoir besoin d'une version plus récente d'un de mes packages, j'ai donc entrepris de migrer ma version de xUbuntu 6.06 installée en mode minimal vers la version 6.10. (tant qu'à faire autant tout mettre à jour, ha l'erreur !)
Pour faire cette mise à jour j'ai remplacé "dapper" par "edgy" dans sources.list et j'ai ensuite utilisé les commandes "sudo apt-get update" puis "sudo apt-get dist-upgrade".
Mais maintenant voilà, j'ai un problème avec le package courier-authdaemon. Si je veux l'installer j'ai le message suivant :
$ sudo apt-get install courier-authdaemon
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
courier-authdaemon: Depends: courier-authlib (>= 0.58) but it is not going to be installed
courier-authlib-userdb: Depends: courier-authlib but it is not going to be installed
Depends: courier-authlib (>= 0.58) but it is not going to be installed
courier-base: Depends: courier-authlib but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Donc, j'obéis, je fait un "apt-get -f install" :
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
courier-authdaemon courier-authlib
The following NEW packages will be installed:
courier-authlib
The following packages will be upgraded:
courier-authdaemon
1 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
Need to get 0B/83.9kB of archives.
After unpacking 164kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing courier-authdaemon (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted
admin@servweb:~$ Errors were encountered while processing:
courier-authdaemon
Puisque apt me recommande de réinstaller le package avant de le désinstaller, je force son installation :
$ sudo dpkg -i --force-all /var/cache/apt/archives/courier-authdaemon_0.58-4ubuntu1_i386.deb
Selecting previously deselected package courier-authdaemon.
(Reading database ... 24928 files and directories currently installed.)
Preparing to replace courier-authdaemon 0.47-13ubuntu5.1 (using .../courier-authdaemon_0.58-4ubuntu1_i386.deb) ...
* Stopping Courier authdaemon...
exec: 31: /usr/sbin/courierlogger: not found
[fail]
invoke-rc.d: initscript courier-authdaemon, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
* Stopping Courier authdaemon...
exec: 31: /usr/sbin/courierlogger: not found
[fail]
invoke-rc.d: initscript courier-authdaemon, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/courier-authdaemon_0.58-4ubuntu1_i386.deb (--install):
subprocess new pre-removal script returned error exit status 1
* Starting Courier authdaemon...
exec: 31: /usr/sbin/courierlogger: not found
[fail]
invoke-rc.d: initscript courier-authdaemon, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/courier-authdaemon_0.58-4ubuntu1_i386.deb
Donc si je force l'installation ça ne marche pas non plus. Je ne peux pas non plus forcer une désinstallation. Je ne sais plus quoi essayer ...
Dans l'idéal, je souhaiterai revenir à la version 6.06 si c'est possible.
Ce qui est bien avec Linux c'est qu'il n'y a (presque) jamais besoin de réinstaller ! Je compte fortement sur votre aide pour le prouver !
Merci d'avance pour votre aide.
Dernière modification par chapi (Le 09/04/2007, à 23:20)
Hors ligne
#2 Le 09/04/2007, à 22:56
- chapi
Re : [Résolu] migration Edgy "Package is in a very bad inconsistent state"
Désolé pour le dérangement, après une plus ample recherche le problème a déjà été traité. La solution se trouve ici : http://www.cedric-augustin.eu/index.php … -vers-edgy
Hors ligne