GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come rimuovere un pacchetto rotto (in questo caso "fare clic")?

Come rimuovere il pacchetto danneggiato clicca ? Sto provando a installare ubuntu-sdk nel mio Ubuntu 14.04. Ricevo troppi errori.

sudo apt-get autoremove -f click
Reading package lists ... Done
Building dependency tree
Is read status information ... Done
The following packages will be REMOVED:
   click
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation released 166 ks of disk space.
Do you want to continue? [Y/n] y
(Reading database ... 350824 files and directories currently installed.)
Removing click (0.4.38.5-0~457~ ubuntu14.04.1) ...
Trace Back (most recent call last):
   File "/usr/bin/click", line 31, in <module>
     from click import commands
Import Error: can not import name 'commands'
dpkg: error processing package click (--remove):
  subprocess command file pre-removal installed returned error exit status 1
Reading was too many errors:
  click
E: Sub-process /usr/bin/dpkg Returned an error code (1)

Se sto provando il comando sudo apt-get purge -f

Si sono verificati gli stessi errori.

Risposta accettata:

Dopo che non ha avuto successo, l'ho testato "nel modo più duro" ... e ... funziona!

sudo rm /usr/bin/click
sudo apt-get autoremove -f click

Il file ha un problema durante l'importazione di un modulo Python e vuoi comunque rimuovere il pacchetto. Pertanto il file può essere rimosso manualmente.


Ubuntu
  1. Installazione Ubuntu | Come installare Ubuntu?

  2. Come aggiungere una stampante in Ubuntu 11.10 | Aggiungi stampante in Ubuntu

  3. Come risolvere il problema di non aggiornamento di Ubuntu a causa dei pacchetti rotti

  4. Debian – Come ottenere tutti i tipi di dipendenze di pacchetti inversi:pendente a dipendenza inversa per distribuzioni non Ubuntu?

  5. Come installare la termite?

Come disinstallare Teamviewer su Ubuntu

Come installare GitLab su Ubuntu 20.04

Come installare Minecraft su Ubuntu 20.04

Come abilitare Fai clic per ridurre a icona su Ubuntu

Come usare l'Hud?

Come sbarazzarsi di questa linea verticale in Geany