PDA

View Full Version : Errori rimozione pacchetto


Dgames
04-08-2005, 20:51
Non riesco a rimuovere un pachhetto e neanche a reinstallarlo visto che mi ha messo fuori uso l'apt-get



DPKG


root@Dgames:~ # dpkg -r amule-adunanza
(Reading database ... 106567 files and directories currently installed.)
Removing amule-adunanza ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/bin/ed2k by amule-adunanza'
found `diversion of /usr/bin/ed2k to /usr/bin/ed2k.xmule by amule'
dpkg: error processing amule-adunanza (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
amule-adunanza
root@Dgames:~ #


apt-get -f install


Preconfiguring packages ...
(Reading database ... 106567 files and directories currently installed.)
Removing amule-adunanza ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/bin/ed2k by amule-adunanza'
found `diversion of /usr/bin/ed2k to /usr/bin/ed2k.xmule by amule'
dpkg: error processing amule-adunanza (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
amule-adunanza
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Dgames:~ # apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libgd2-xpm
Suggested packages:
libgd-tools
The following packages will be REMOVED:
amule-adunanza
The following NEW packages will be installed:
libgd2-xpm
0 upgraded, 1 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B/193kB of archives.
After unpacking 12.3MB disk space will be freed.
Do you want to continue [Y/n]? y

Preconfiguring packages ...
(Reading database ... 106567 files and directories currently installed.)
Removing amule-adunanza ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/bin/ed2k by amule-adunanza'
found `diversion of /usr/bin/ed2k to /usr/bin/ed2k.xmule by amule'
dpkg: error processing amule-adunanza (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
amule-adunanza
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Dgames:~ #



che posso fare?.....mi ha messo fuori uso l'apt-get

Dgames
05-08-2005, 21:38
up

wubby
05-08-2005, 21:45
Hai controllato il file /var/lib/dpkg/diversions ?

Dgames
06-08-2005, 22:15
Hai controllato il file /var/lib/dpkg/diversions ?


Cosa devo controllare in quel file?

Dgames
06-08-2005, 23:18
ho fatto questa prova

root.@Dgames:~ # apt-get remove --purge amule-adunanza
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:
python2.4-gd: Depends: libgd2-noxpm (>= 2.0.33) but it is not going to be installed or
libgd2-xpm (>= 2.0.33) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root.@Dgames:~ #




Ancora niente....cavolo ma posso fare per rimettere in piedi l'apt-get è fondamentale.
Grazie



Se può essere d'aiuto il tool grafico di installazione mi dà questi 2 pacchetti difettosi:
amule-adunanza(non reinstalla)
python2.4-gd(non reinstalla però mi dà la possibilità di reinstallarlo)

Dgames
26-08-2005, 11:15
up

Dgames
29-08-2005, 10:56
Up non mi funziona più l'apt-gettt

helpppppppppppp

RaouL_BennetH
29-08-2005, 12:21
No, non è che non ti funziona apt-get,e i messaggi che ti da ne sono la prova.

Quello che non va sono i repository che stai usando.Che Debian hai?

Poi,eventualmente dai prima:

apt-get clean
apt-get update

e riprova.

Ma sono sicuro che il tutto dipende da qualche repository scazzato.

pinball
29-08-2005, 13:33
prova questi in successione, ame han sempre risolto tutto o almeno così mi pare di ricordare :D

apt-get -f install
apt-get -f upgrade
dpkg --configure -a


eventualmente se volessi rimuovere dei pacchetti che non ti riesce col metodo normale, così non dovresti + incontrare problemi


dpkg --purge --force-all pacchetto


ciauz