Pagina 1 di 1

[Risolto] Problema a rimuovere radiotray

Inviato: venerdì 20 novembre 2020, 16:31
da Nickshw
Sono bloccato, non riesco a rimuovere radiotray che risulta dannaggiato.
Ho provato con:

Codice: Seleziona tutto

sudo apt --fix-broken install
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
Correzione delle dipendenze... Fatto
I seguenti pacchetti saranno RIMOSSI:
  radiotray
0 aggiornati, 0 installati, 1 da rimuovere e 0 non aggiornati.
1 non completamente installati o rimossi.
Dopo quest'operazione, verranno liberati 2.048 kB di spazio su disco.
Continuare? [S/n] s
(Lettura del database... 269241 file e directory attualmente installati.)
Rimozione di radiotray (0.7.3)...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2357, in <module>
    main()
  File "/usr/bin/pycentral", line 2351, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1673, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version
. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must b
e reset to point to python2.7
dpkg: errore nell'elaborare il pacchetto radiotray (--remove):
 il sottoprocesso installato pacchetto radiotray script pre-removal ha restituit
o lo stato di errore 1
dpkg: troppi errori, chiusura in corso
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2357, in <module>
    main()
  File "/usr/bin/pycentral", line 2351, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1493, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version
. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must b
e reset to point to python2.7
dpkg: errore durante la pulizia:
 il sottoprocesso installato pacchetto radiotray script post-installation ha res
tituito lo stato di errore 1
Si sono verificati degli errori nell'elaborazione:
 radiotray
L'operazione è stata bloccata perché si sono verificati troppi errori.
E: Sub-process /usr/bin/dpkg returned an error code (1)
ma nulla.
Ho provato anche:

Codice: Seleziona tutto

- sudo apt autoremove && sudo apt autoclean && sudo apt-get update --fix-missing && sudo apt-get update && sudo apt-get upgrade
- sudo dpkg --purge --force-remove-reinstreq radiotray
- sudo apt-get remove -f
ma nulla l'errore rimane.
Qualche suggerimento?
Grazie

Re: Problema a rimuovere radiotray

Inviato: venerdì 20 novembre 2020, 17:02
da freengin
prova con

Codice: Seleziona tutto

sudo dpkg -P --force-all radiotray
se non risolve posta output

Re: Problema a rimuovere radiotray

Inviato: venerdì 20 novembre 2020, 17:09
da Nickshw
sempre uguale

Codice: Seleziona tutto

 sudo dpkg -P --force-all radiotray
(Lettura del database... 269274 file e directory attualmente installati.)
Rimozione di radiotray (0.7.3)...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2357, in <module>
    main()
  File "/usr/bin/pycentral", line 2351, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1673, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
dpkg: errore nell'elaborare il pacchetto radiotray (--purge):
 il sottoprocesso installato pacchetto radiotray script pre-removal ha restituito lo stato di errore 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2357, in <module>
    main()
  File "/usr/bin/pycentral", line 2351, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1493, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
dpkg: errore durante la pulizia:
 il sottoprocesso installato pacchetto radiotray script post-installation ha restituito lo stato di errore 1
Si sono verificati degli errori nell'elaborazione:
 radiotray

Re: Problema a rimuovere radiotray

Inviato: martedì 24 novembre 2020, 21:30
da giulux
Sposto in applicazioni.
Leggere per favore la descrizione delle varie sezioni prima di postare, grazie.

Re: Problema a rimuovere radiotray

Inviato: martedì 24 novembre 2020, 22:29
da caturen

Codice: Seleziona tutto


sudo rm /usr/bin/python && sudo ln -s python2.7 /usr/bin/python

Re: Problema a rimuovere radiotray

Inviato: sabato 5 dicembre 2020, 10:24
da Nickshw
caturen ha scritto:
martedì 24 novembre 2020, 22:29

Codice: Seleziona tutto


sudo rm /usr/bin/python && sudo ln -s python2.7 /usr/bin/python
GRazie Risolto