#1 Le 21/01/2008, à 00:13
- ewok2
pb pour deinstaller / reinstaller un logciel
Bonjour
En voulant desintaller pop3 via apt-get remove --purge j'ai eu le message suivant :
# apt-get remove courier-pop --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libmono-data-tds2.0-cil python-virtkey libmono-security2.0-cil libndesk-dbus1.0-cil python-at-spi
libmono-system2.0-cil libmono0 python-orca-brlapi libpt-plugins-alsa libmono-sqlite2.0-cil libgtkhtml2.0-cil
libmono-corlib2.0-cil cli-common libndesk-dbus-glib1.0-cil guile-1.6-libs libgmime2.2-cil xsane-common
mono-runtime mono-common gnome-cards-data libguile-ltdl-1 libgail-gnome-module librsvg2.0-cil
libmono-system-data2.0-cil libgnome-vfs2.0-cil libmono2.0-cil mono-gac libglade2.0-cil libart2.0-cil
libglib2.0-cil mono-jit libmono-system1.0-cil libgconf2.0-cil netpbm libmono-sharpzip2.84-cil libopal-2.2
libgnome-speech7 libmono-corlib1.0-cil wwwconfig-common libmono-system-web2.0-cil libmono-cairo1.0-cil
libnetpbm10 gnome-games-data libgtk2.0-cil libgnome2.0-cil
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
courier-pop*
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 233kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 104389 files and directories currently installed.)
Removing courier-pop ...
* ERR: config file missing
invoke-rc.d: initscript courier-pop, action "stop" failed.
dpkg: error processing courier-pop (--purge):
subprocess pre-removal script returned error exit status 1
* ERR: config file missing
invoke-rc.d: initscript courier-pop, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
courier-pop
E: Sub-process /usr/bin/dpkg returned an error code (1)
Que faut il faire pour reussir a le desinstaller pour ensuite le reinstaller ???
Merci de votre aide
Hors ligne
#2 Le 21/01/2008, à 08:27
- helios91940
Re : pb pour deinstaller / reinstaller un logciel
Si t'essayes de réinstaller le paquet
apt-get install --reinstall courier-pop
et ensuite de le désinstaller
apt-get remove --purge courier-pop
t'as toujours un mess d'erreur?
Dernière modification par helios91940 (Le 21/01/2008, à 08:32)
There is no system but GNU, and Linux is one of its kernels.
Adhérez à l'APRIL!
http://www.april.org/adherer
Hors ligne
#3 Le 21/01/2008, à 09:29
- ewok2
Re : pb pour deinstaller / reinstaller un logciel
Pas mieux
j'ai l'erreur a l'install et au remove
a l'install :
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up courier-pop (0.56.0-2ubuntu2) ...
* ERR: config file missing
invoke-rc.d: initscript courier-pop, action "start" failed.
dpkg: error processing courier-pop (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
courier-pop
E: Sub-process /usr/bin/dpkg returned an error code (1)
et le remove
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 233kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 104389 files and directories currently installed.)
Removing courier-pop ...
* ERR: config file missing
invoke-rc.d: initscript courier-pop, action "stop" failed.
dpkg: error processing courier-pop (--purge):
subprocess pre-removal script returned error exit status 1
* ERR: config file missing
invoke-rc.d: initscript courier-pop, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
courier-pop
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hors ligne
#4 Le 21/01/2008, à 19:34
- helios91940
Re : pb pour deinstaller / reinstaller un logciel
ouvres un terminal et tapes
sudo gedit /var/lib/dpkg/info/courier-pop.postinst
Puis remplace "exit 1" par "exit 0" et s'il n'y a pas "exit 1" mets "exit 0" à la fin du fichier.
Fais la même chose pour ce fichier
sudo gedit /var/lib/dpkg/info/courier-pop.postrm
enfin sauvegarde puis réessaye
sudo apt-get remove courier-pop --purge
Dernière modification par helios91940 (Le 21/01/2008, à 19:36)
There is no system but GNU, and Linux is one of its kernels.
Adhérez à l'APRIL!
http://www.april.org/adherer
Hors ligne
#5 Le 21/01/2008, à 20:29
- ewok2
Re : pb pour deinstaller / reinstaller un logciel
Nickel
j'ai edité comme t'as dit le fichier :
/var/lib/dpkg/info/courier-pop.postinst
et comme il testait la presence de :
/etc/init.d/courier-pop
je l'ai supprimé
puis un apt-get remove
puis un apt-get install
et tout marche nickel
Merci beaucoup
Hors ligne
#6 Le 21/01/2008, à 20:30
- helios91940
Re : pb pour deinstaller / reinstaller un logciel
Cool
There is no system but GNU, and Linux is one of its kernels.
Adhérez à l'APRIL!
http://www.april.org/adherer
Hors ligne