Problemi Python3

Configurazione e uso delle applicazioni del desktop manager alla base di Ubuntu MATE.
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Problemi Python3

Messaggio da Miciobao »

Salve

normalmente leggendo sul forum e nel wiki riesco a risolvere l maggior parte dei problemi.. ma questo mi sta tormentando non poco.. e ora mi trova in questa situazione:

Codice: Seleziona tutto

$ sudo apt-get install -f
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti aggiuntivi saranno inoltre installati:
  python3-distupgrade
I seguenti pacchetti saranno aggiornati:
  python3-distupgrade
1 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
4 non completamente installati o rimossi.
È necessario scaricare 0 B/151 kB di archivi.
Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
Continuare? [S/n] s
(Lettura del database... 321100 file e directory attualmente installati.)
Preparativi per estrarre .../python3-distupgrade_1%3a20.04.30_all.deb...
Estrazione di python3-distupgrade (1:20.04.30) su (1:20.04.29)...
dpkg: errore nell'elaborare il pacchetto python3 (--configure):
 il pacchetto si trova in uno stato di inconsistenza critico: è consigliato
 installarlo nuovamente prima di tentare la configurazione.
Segnalazione apport non scritta poiché il messaggio di errore indica la presenza di un fallimento precedente.
                             dpkg: problemi con le dipendenze impediscono la configurazione di python3-distupgrade:
 python3-distupgrade dipende da python3:any; tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto python3-distupgrade (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di python3-libapparmor:
 python3-libapparmor dipende da python3 (<< 3.9); tuttavia:
  Il pacchetto python3 non è ancora configurato.
 python3-libapparmor dipende da python3 (>= 3.8~); tuttavia:
  Il pacchetto python3 non è ancora configurato.
 python3-libapparmor dipende da python3:any; tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto python3-libapparmor (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di update-notifier-common:
 update-notifier-common dipende da python3:any; Segnalazione apport non scritta poiché il messaggio di errore indica la presenza di un fallimento precedente.
                                                                             Segnalazione apport non scritta poiché è stato raggiunto il valore massimo di MaxReports
     tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto update-notifier-common (--configure):
 problemi con le dipendenze - lasciato non configurato
Si sono verificati degli errori nell'elaborazione:
 python3
 python3-distupgrade
 python3-libapparmor
 update-notifier-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Qualcuno è così gentile da potermi dare una mano.. sono in Mate 20.04
Thanks

Premessa: il problema si è creato in quanto stavo provando ad installare i plugin hplip 3.20.3 per lo scanner sulla stampante..
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Hola!!

Forse qualcosa si è mosso, ma ora ho questa situazione:

Codice: Seleziona tutto

sudo apt update
...
sh: 1: /usr/lib/cnf-update-db: not found
Lettura elenco dei pacchetti... Fatto
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

posta qui i comandi da terminale

Codice: Seleziona tutto

sudo dpkg ––configure –a
sudo apt install -f
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Hola!!
ecco i risultati

Codice: Seleziona tutto

dpkg: errore: necessaria un'opzione che indichi un'azione

Usare dpkg --help per un aiuto sull'installazione e la rimozione dei pacchetti [*].
Usare "apt" o "aptitude" per un'interfaccia alla gestione dei pacchetti.
Usare dpkg -Dhelp per l'elenco delle opzioni di debug per dpkg.
Usare dpkg --force-help per l'elenco delle opzioni di forzatura.
Usare dpkg-deb --help per un aiuto sulla manipolazione dei file *.deb.

Le opzioni indicate con [*] producono output prolisso - creare una pipe con "less" o "more".

Codice: Seleziona tutto

$ sudo apt install -f
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 6 non aggiornati.
7 non completamente installati o rimossi.
È necessario scaricare 0 B/212 kB di archivi.
Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
dpkg: errore nell'elaborare il pacchetto python3 (--configure):
 il pacchetto si trova in uno stato di inconsistenza critico: è consigliato
 installarlo nuovamente prima di tentare la configurazione.
Segnalazione apport non scritta poiché il messaggio di errore indica la presenza
 di un fallimento precedente.
                             dpkg: problemi con le dipendenze impediscono la con
figurazione di python3-distupgrade:
 python3-distupgrade dipende da python3:any; tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto python3-distupgrade (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di python3-comman
dnotfound:
 python3-commandnotfound dipende da python3:any (>= 3.2~); tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto python3-commandnotfound (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di python3-libapp
armor:
 python3-libapparmor dipende da python3 (<< 3.9); tuttavia:
  Il pacchetto python3 non è ancora configurato.
 python3-libapparmor dipende da python3 (>= 3.8~); tuttavia:
  Il pacchetto python3 non è ancora conSegnalazione apport non scritta poiché il
 messaggio di errore indica la presenza di un fallimento precedente.
                                                                    Segnalazione
 apport non scritta poiché è stato raggiunto il valore massimo di MaxReports
                                                                            Segn
alazione apport non scritta poiché è stato raggiunto il valore massimo di MaxRep
orts
    Segnalazione apport non scritta poiché è stato raggiunto il valore massimo d
i MaxReports
            Segnalazione apport non scritta poiché è stato raggiunto il valore m
assimo di MaxReports
                    figurato.
 python3-libapparmor dipende da python3:any; tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto python3-libapparmor (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di python3-apt:
 python3-apt dipende da python3 (<< 3.9); tuttavia:
  Il pacchetto python3 non è ancora configurato.
 python3-apt dipende da python3 (>= 3.8~); tuttavia:
  Il pacchetto python3 non è ancora configurato.
 python3-apt dipende da python3:any; tuttavia:
  Il pacchetto python3 non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto python3-apt (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di update-notifie
r-common:
 update-notifier-common dipende da python3:any; tuttavia:
  Il pacchetto python3 non è ancora configurato.
 update-notifier-common dipende da python3-apt; tuttavia:
  Il pacchetto python3-apt non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto update-notifier-common (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di command-not-fo
und:
 command-not-found dipende da python3-commandnotfound (= 20.04.4); tuttavia:
  Il pacchetto python3-commandnotfound non è ancora configurato.

dpkg: errore nell'elaborare il pacchetto command-not-found (--configure):
 problemi con le dipendenze - lasciato non configurato
Si sono verificati degli errori nell'elaborazione:
 python3
 python3-distupgrade
 python3-commandnotfound
 python3-libapparmor
 python3-apt
 update-notifier-common
 command-not-found
E: Sub-process /usr/bin/dpkg returned an error code (1)
caturen
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17935
Iscrizione: giovedì 8 aprile 2010, 18:41
Desktop: diversi
Distribuzione: debian

Re: Problemi Python3

Messaggio da caturen »

Codice: Seleziona tutto

sudo apt-get install --reinstall python3
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Si questo comando avevo già provato..

Codice: Seleziona tutto

sudo apt-get install --reinstall python3
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 1 reinstallati, 0 da rimuovere e 6 non aggiornati.
7 non completamente installati o rimossi.
È necessario scaricare 0 B/212 kB di archivi.
Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
(Lettura del database... 321100 file e directory attualmente installati.)
Preparativi per estrarre .../python3_3.8.2-0ubuntu2_amd64.deb...
/var/lib/dpkg/info/python3.prerm: 5: py3clean: not found
dpkg: attenzione: il sottoprocesso vecchio pacchetto python3 script pre-removal ha restituito lo stato di errore 127
dpkg: viene provato lo script dal nuovo pacchetto...
/var/lib/dpkg/tmp.ci/prerm: 5: py3clean: not found
dpkg: errore nell'elaborare l'archivio /var/cache/apt/archives/python3_3.8.2-0ubuntu2_amd64.deb (--unpack):
 il sottoprocesso nuovo pacchetto python3 script pre-removal ha restituito lo stato di errore 127
/var/lib/dpkg/info/python3.postinst: 47: py3compile: not found
dpkg: errore durante la pulizia:
 il sottoprocesso installato pacchetto python3 script post-installation ha restituito lo stato di errore 127
Si sono verificati degli errori nell'elaborazione:
 /var/cache/apt/archives/python3_3.8.2-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reply:

Ho provato anche questo comando... non so se possa servire..

Codice: Seleziona tutto

sudo dpkg --audit
I seguenti pacchetti presentano degli errori a causa di gravi problemi durante
l'installazione. È necessario reinstallarli, assieme a qualsiasi pacchetto che
vi dipenda, affinché funzionino correttamente:
 python3              interactive high-level object-oriented language (default 
 python3-apt          Python 3 interface to libapt-pkg
 python3-commandnotfound Python 3 bindings for command-not-found.

I seguenti pacchetti sono stati estratti, ma non ancora configurati.
È necessario configurarli usando "dpkg --configure" o l'opzione di
configurazione nel menù di dselect affinché funzionino:
 command-not-found    Suggest installation of packages in interactive bash sess

I seguenti pacchetti risultano parzialmente configurati. La configurazione
dovrebbe essere ritentata usando "dpkg --configure <pacchetto>" o con
l'opzione di configurazione nel menù di dselect:
 python3-distupgrade  manage release upgrades
 python3-libapparmor  AppArmor library Python3 bindings
 update-notifier-common Files shared between update-notifier and other packages

e questo

Codice: Seleziona tutto

sudo dpkg --configure python3
dpkg: errore nell'elaborare il pacchetto python3 (--configure):
 il pacchetto si trova in uno stato di inconsistenza critico: è consigliato
 installarlo nuovamente prima di tentare la configurazione.
Si sono verificati degli errori nell'elaborazione:
 python3
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

dai questi comandi e copia qui l'output

Codice: Seleziona tutto

dpkg -l | grep python3
dpkg -l | grep command
dpkg -l | grep update
cosa risponde il sistema?

Codice: Seleziona tutto

sudo apt update && sudo apt full-upgrade
edit: modificato comando full update
Ultima modifica di ivantu il sabato 23 gennaio 2021, 11:41, modificato 1 volta in totale.
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Ecco

Codice: Seleziona tutto

dpkg -l | grep python3
ii  libpython3-stdlib:amd64                       3.8.2-0ubuntu2                      amd64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.8:amd64                            3.8.5-1~20.04                       amd64        Shared Python runtime library (version 3.8)
ii  libpython3.8-minimal:amd64                    3.8.5-1~20.04                       amd64        Minimal subset of the Python language (version 3.8)
ii  libpython3.8-stdlib:amd64                     3.8.5-1~20.04                       amd64        Interactive high-level object-oriented language (standard library, version 3.8)
iFR python3                                       3.8.2-0ubuntu2                      amd64        interactive high-level object-oriented language (default python3 version)
ii  python3-apport                                2.20.11-0ubuntu27.14                all          Python 3 library for Apport crash report handling
iFR python3-apt                                   2.0.0ubuntu0.20.04.3                amd64        Python 3 interface to libapt-pkg
ii  python3-aptdaemon                             1.1.1+bzr982-0ubuntu32.3            all          Python 3 module for the server and client of aptdaemon
ii  python3-aptdaemon.gtk3widgets                 1.1.1+bzr982-0ubuntu32.3            all          Python 3 GTK+ 3 widgets to run an aptdaemon client
ii  python3-bcrypt                                3.1.7-2ubuntu1                      amd64        password hashing library for Python 3
ii  python3-blinker                               1.4+dfsg1-0.3ubuntu1                all          fast, simple object-to-object and broadcast signaling library
ii  python3-brlapi:amd64                          6.0+dfsg-4ubuntu6                   amd64        Braille display access via BRLTTY - Python3 bindings
ii  python3-cairo:amd64                           1.16.2-2ubuntu2                     amd64        Python3 bindings for the Cairo vector graphics library
ii  python3-caja                                  1.24.0-2                            amd64        Python3 binding for Caja components
ii  python3-certifi                               2019.11.28-1                        all          root certificates for validating SSL certs and verifying TLS hosts (python3)
ii  python3-cffi-backend                          1.14.0-1build1                      amd64        Foreign Function Interface for Python 3 calling C code - runtime
ii  python3-chardet                               3.0.4-4build1                       all          universal character encoding detector for Python3
ii  python3-click                                 7.0-3                               all          Wrapper around optparse for command line utilities - Python 3.x
ii  python3-colorama                              0.4.3-1build1                       all          Cross-platform colored terminal text in Python - Python 3.x
iFR python3-commandnotfound                       20.04.4                             all          Python 3 bindings for command-not-found.
ii  python3-configobj                             5.0.6-4                             all          simple but powerful config file reader and writer for Python 3
ii  python3-crypto                                2.6.1-13ubuntu2                     amd64        cryptographic algorithms and protocols for Python 3
ii  python3-cryptography                          2.8-3ubuntu0.1                      amd64        Python library exposing cryptographic recipes and primitives (Python 3)
ii  python3-cups                                  1.9.73-3build1                      amd64        Python3 bindings for CUPS
ii  python3-cupshelpers                           1.5.12-0ubuntu1.1                   all          Python utility modules around the CUPS printing system
ii  python3-dateutil                              2.7.3-3ubuntu1                      all          powerful extensions to the standard Python 3 datetime module
ii  python3-dbus                                  1.2.16-1build1                      amd64        simple interprocess messaging system (Python 3 interface)
ii  python3-debconf                               1.5.73                              all          interact with debconf from Python 3
ii  python3-debian                                0.1.36ubuntu1                       all          Python 3 modules to work with Debian-related data formats
ii  python3-defer                                 1.0.6-2.1                           all          Small framework for asynchronous programming (Python 3)
ii  python3-distro                                1.4.0-1                             all          Linux OS platform information API
ii  python3-distro-info                           0.23ubuntu1                         all          information about distributions' releases (Python 3 module)
iF  python3-distupgrade                           1:20.04.30                          all          manage release upgrades
ii  python3-entrypoints                           0.3-2ubuntu1                        all          Discover and load entry points from installed packages (Python 3)
ii  python3-fasteners                             0.14.1-2                            all          provides useful locks - Python 3.x
ii  python3-future                                0.18.2-2                            all          Clean single-source support for Python 3 and 2 - Python 3.x
ii  python3-gdbm:amd64                            3.8.5-1~20.04.1                     amd64        GNU dbm database support for Python 3.x
ii  python3-gi                                    3.36.0-1                            amd64        Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo                              3.36.0-1                            amd64        Python 3 Cairo bindings for the GObject library
ii  python3-gpg                                   1.13.1-7ubuntu2                     amd64        Python interface to the GPGME GnuPG encryption library (Python 3)
ii  python3-httplib2                              0.14.0-1ubuntu1                     all          comprehensive HTTP client library written for Python3
ii  python3-idna                                  2.8-1                               all          Python IDNA2008 (RFC 5891) handling (Python 3)
ii  python3-jwt                                   1.7.1-2ubuntu2                      all          Python 3 implementation of JSON Web Token
ii  python3-keyring                               18.0.1-2ubuntu1                     all          store and access your passwords safely - Python 3 version of the package
ii  python3-launchpadlib                          1.10.13-1                           all          Launchpad web services client library (Python 3)
ii  python3-lazr.restfulclient                    0.14.2-2build1                      all          client for lazr.restful-based web services (Python 3)
ii  python3-lazr.uri                              1.0.3-4build1                       all          library for parsing, manipulating, and generating URIs
ii  python3-ldb                                   2:2.0.10-0ubuntu0.20.04.2           amd64        Python 3 bindings for LDB
ii  python3-lib2to3                               3.8.5-1~20.04.1                     all          Interactive high-level object-oriented language (lib2to3)
iF  python3-libapparmor                           2.13.3-7ubuntu5.1                   amd64        AppArmor library Python3 bindings
ii  python3-lockfile                              1:0.12.2-2ubuntu2                   all          file locking library for Python — Python 3 library
ii  python3-louis                                 3.12.0-3                            all          Python bindings for liblouis
ii  python3-mako                                  1.1.0+ds1-1ubuntu2                  all          fast and lightweight templating for the Python 3 platform
ii  python3-markupsafe                            1.1.0-1build2                       amd64        HTML/XHTML/XML string library for Python 3
ii  python3-mediainfodll                          19.09+dfsg-2build1                  all          library for reading metadata from media files -- shared library
ii  python3-minimal                               3.8.2-0ubuntu2                      amd64        minimal subset of the Python language (default python3 version)
ii  python3-monotonic                             1.5-0ubuntu2                        all          implementation of time.monotonic() - Python 3.x
ii  python3-nacl                                  1.3.0-5                             amd64        Python bindings to libsodium (Python 3)
ii  python3-netifaces                             0.10.4-1ubuntu4                     amd64        portable network interface information - Python 3.x
ii  python3-oauthlib                              3.1.0-1ubuntu2                      all          generic, spec-compliant implementation of OAuth for Python3
ii  python3-olefile                               0.46-2                              all          Python module to read/write MS OLE2 files
ii  python3-paramiko                              2.6.0-2                             all          Make ssh v2 connections (Python 3)
ii  python3-pexpect                               4.6.0-1build1                       all          Python 3 module for automating interactive applications
ii  python3-pil:amd64                             7.0.0-4ubuntu0.2                    amd64        Python Imaging Library (Python3)
ii  python3-pkg-resources                         45.2.0-1                            all          Package Discovery and Resource Access using pkg_resources
ii  python3-problem-report                        2.20.11-0ubuntu27.14                all          Python 3 library to handle problem reports
ii  python3-psutil                                5.5.1-1ubuntu4                      amd64        module providing convenience functions for managing processes (Python3)
ii  python3-ptyprocess                            0.6.0-1ubuntu1                      all          Run a subprocess in a pseudo terminal from Python 3
ii  python3-pyatspi                               2.36.0-1                            all          Assistive Technology Service Provider Interface - Python3 bindings
ii  python3-pymacaroons                           0.13.0-3                            all          Macaroon library for Python 3
ii  python3-pyxattr                               0.6.1-2                             amd64        module for manipulating filesystem extended attributes (Python3)
ii  python3-renderpm:amd64                        3.5.34-1ubuntu1                     amd64        python low level render interface
ii  python3-reportlab                             3.5.34-1ubuntu1                     all          ReportLab library to create PDF documents using Python3
ii  python3-reportlab-accel:amd64                 3.5.34-1ubuntu1                     amd64        C coded extension accelerator for the ReportLab Toolkit
ii  python3-requests                              2.22.0-2ubuntu1                     all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-requests-unixsocket                   0.2.0-2                             all          Use requests to talk HTTP via a UNIX domain socket - Python 3.x
ii  python3-samba                                 2:4.11.6+dfsg-0ubuntu1.6            amd64        Python 3 bindings for Samba
ii  python3-secretstorage                         2.3.1-2ubuntu1                      all          Python module for storing secrets - Python 3.x version
ii  python3-setproctitle:amd64                    1.1.10-1ubuntu1                     amd64        Setproctitle implementation for Python 3
ii  python3-simplejson                            3.16.0-2ubuntu2                     amd64        simple, fast, extensible JSON encoder/decoder for Python 3.x
ii  python3-six                                   1.14.0-2                            all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-software-properties                   0.98.9.3                            all          manage the repositories that you install software from
ii  python3-speechd                               0.9.1-4                             all          Python interface to Speech Dispatcher
ii  python3-systemd                               234-3build2                         amd64        Python 3 bindings for systemd
ii  python3-talloc:amd64                          2.3.0-3ubuntu1                      amd64        hierarchical pool based memory allocator - Python3 bindings
ii  python3-tdb                                   1.4.2-3build1                       amd64        Python3 bindings for TDB
ii  python3-uno                                   1:6.4.6-0ubuntu0.20.04.1            amd64        Python-UNO bridge
ii  python3-update-manager                        1:20.04.10.1                        all          python 3.x module for update-manager
ii  python3-urllib3                               1.25.8-2ubuntu0.1                   all          HTTP library with thread-safe connection pooling for Python3
ii  python3-wadllib                               1.3.3-3build1                       all          Python 3 library for navigating WADL files
ii  python3-xapp                                  1.8.1-2                             all          Python 3 XApp library
ii  python3-xdg                                   0.26-1ubuntu1                       all          Python 3 library to access freedesktop.org standards
ii  python3-xkit                                  0.5.0ubuntu4                        all          library for the manipulation of xorg.conf files (Python 3)
ii  python3-xlib                                  0.23-2build1                        all          interface for Python 3 to the X11 protocol
ii  python3-yaml                                  5.3.1-1                             amd64        YAML parser and emitter for Python3
ii  python3.8                                     3.8.5-1~20.04                       amd64        Interactive high-level object-oriented language (version 3.8)
ii  python3.8-minimal                             3.8.5-1~20.04                       amd64        Minimal subset of the Python language (version 3.8)

Codice: Seleziona tutto

dpkg -l | grep command
ii  apt                                           2.0.2ubuntu0.2                      amd64        commandline package manager
iU  command-not-found                             20.04.4                             all          Suggest installation of packages in interactive bash sessions
ii  cryptsetup-bin                                2:2.2.2-3ubuntu2.3                  amd64        disk encryption support - command line tools
ii  cups-bsd                                      2.3.1-9ubuntu1.1                    amd64        Common UNIX Printing System(tm) - BSD commands
ii  curl                                          7.68.0-1ubuntu2.4                   amd64        command line tool for transferring data with URL syntax
ii  gvfs-bin                                      1.44.1-1ubuntu1                     amd64        userspace virtual filesystem - deprecated command-line tools
ii  kpackagelauncherqml                           5.68.0-0ubuntu2                     amd64        commandline tool for launching kpackage QML application
ii  kpackagetool5                                 5.68.0-0ubuntu1                     amd64        command line kpackage tool
ii  libipc-system-simple-perl                     1.26-1                              all          Perl module to run commands simply, with detailed diagnostics
ii  libsgutils2-2                                 1.44-1ubuntu2                       amd64        utilities for devices using the SCSI command set (shared libraries)
ii  libss2:amd64                                  1.45.5-2ubuntu1                     amd64        command-line interface parsing library
ii  logsave                                       1.45.5-2ubuntu1                     amd64        save the output of a command in a log file
ii  mate-hud                                      19.10.1-0ubuntu1                    all          Run menubar commands, much like the Unity 7 HUD
ii  packagekit-tools                              1.1.13-2ubuntu1.1                   amd64        Provides PackageKit command-line tools
ii  pulsemixer                                    1.5.0-1                             all          command-line mixer for PulseAudio with a curses interface
ii  python3-click                                 7.0-3                               all          Wrapper around optparse for command line utilities - Python 3.x
iFR python3-commandnotfound                       20.04.4                             all          Python 3 bindings for command-not-found.
ii  smbclient                                     2:4.11.6+dfsg-0ubuntu1.6            amd64        command-line SMB/CIFS clients for Unix
ii  tcpdump                                       4.9.3-4                             amd64        command-line network traffic analyzer

Codice: Seleziona tutto

dpkg -l | grep update
ii  fwupd                                         1.3.11-1~focal1                     amd64        Firmware update daemon
ii  gtk-update-icon-cache                         3.24.20-0ubuntu1                    amd64        icon theme caching utility
ii  language-pack-en                              1:20.04+20200709                    all          translation updates for language English
ii  language-pack-gnome-en                        1:20.04+20200709                    all          GNOME translation updates for language English
ii  language-pack-gnome-it                        1:20.04+20200709                    all          GNOME translation updates for language Italian
ii  language-pack-it                              1:20.04+20200709                    all          translation updates for language Italian
ii  libfwupd2:amd64                               1.3.11-1~focal1                     amd64        Firmware update daemon library
ii  libfwupdplugin1:amd64                         1.3.11-1~focal1                     amd64        Firmware update daemon plugin library
ii  libutempter0:amd64                            1.1.6-4                             amd64        privileged helper for utmp/wtmp updates (runtime)
ii  python3-update-manager                        1:20.04.10.1                        all          python 3.x module for update-manager
ii  secureboot-db                                 1.5                                 amd64        Secure Boot updates for DB and DBX
ii  update-inetd                                  4.50                                all          inetd configuration file updater
ii  update-manager                                1:20.04.10.1                        all          GNOME application that manages apt updates
ii  update-manager-core                           1:20.04.10.1                        all          manage release upgrades
ii  update-notifier                               3.192.30.4                          amd64        Daemon which notifies about package updates
iF  update-notifier-common                        3.192.30.4                          all          Files shared between update-notifier and other packages
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

e questo

Codice: Seleziona tutto

sudo apt update && sudo apt full upgrade
Trovato:1 http://ch.archive.ubuntu.com/ubuntu focal InRelease
Trovato:2 http://dl.google.com/linux/chrome/deb stable InRelease               
Trovato:3 http://ch.archive.ubuntu.com/ubuntu focal-updates InRelease          
Trovato:4 http://ch.archive.ubuntu.com/ubuntu focal-backports InRelease        
Trovato:5 https://dl.winehq.org/wine-builds/ubuntu focal InRelease             
Trovato:6 https://repo.skype.com/deb stable InRelease                          
Trovato:7 http://security.ubuntu.com/ubuntu focal-security InRelease   
sh: 1: /usr/lib/cnf-update-db: not found
Lettura elenco dei pacchetti... Fatto
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

posta il comando

Codice: Seleziona tutto

ls -la /usr/bin/python
ho trovato qualcosa https://askubuntu.com/questions/1074763 ... on-related
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Codice: Seleziona tutto

ls -la /usr/bin/python
lrwxrwxrwx 1 root root 18 gen 21 20:06 /usr/bin/python -> /usr/bin/python3.6
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

la versione 3.6 in ubuntu Focal non esiste, ... almeno nel mio sistema.

dai questi comandi

Codice: Seleziona tutto

sudo rm -f /usr/bin/python
e poi

Codice: Seleziona tutto

sudo ln -s /usr/bin/python3 /usr/bin/python
riavvia il sistema

dopo il riavvio dai il comando

Codice: Seleziona tutto

sudo apt update
copia qui l'output del terminale
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Dopo riavvio...

Codice: Seleziona tutto

sudo apt update
Trovato:1 http://ch.archive.ubuntu.com/ubuntu focal InRelease
Trovato:2 http://ch.archive.ubuntu.com/ubuntu focal-updates InRelease          
Trovato:3 http://dl.google.com/linux/chrome/deb stable InRelease               
Trovato:4 http://ch.archive.ubuntu.com/ubuntu focal-backports InRelease        
Trovato:5 https://dl.winehq.org/wine-builds/ubuntu focal InRelease             
Trovato:6 https://repo.skype.com/deb stable InRelease                          
Trovato:7 http://security.ubuntu.com/ubuntu focal-security InRelease          
sh: 1: /usr/lib/cnf-update-db: not found
Lettura elenco dei pacchetti... Fatto
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

per favore riposta qui l'altro comando

Codice: Seleziona tutto

ls -la /usr/bin/python
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Codice: Seleziona tutto

ls -la /usr/bin/python
lrwxrwxrwx 1 root root 16 gen 23 11:56 /usr/bin/python -> /usr/bin/python3
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

ok. facciamo un altro tentativo di prima
dai questo comando

Codice: Seleziona tutto

sudo dpkg --configure python3
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Codice: Seleziona tutto

sudo dpkg --configure python3
dpkg: errore nell'elaborare il pacchetto python3 (--configure):
 il pacchetto si trova in uno stato di inconsistenza critico: è consigliato
 installarlo nuovamente prima di tentare la configurazione.
Si sono verificati degli errori nell'elaborazione:
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Problemi Python3

Messaggio da ivantu »

posta quindi il comando

Codice: Seleziona tutto

sudo apt install --reinstall python3
Buona giornata utenti del forum. :ciao: ivantu
Miciobao
Prode Principiante
Messaggi: 38
Iscrizione: giovedì 29 dicembre 2005, 12:02

Re: Problemi Python3

Messaggio da Miciobao »

Codice: Seleziona tutto

sudo apt install --reinstall python3
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 1 reinstallati, 0 da rimuovere e 6 non aggiornati.
7 non completamente installati o rimossi.
È necessario scaricare 0 B/212 kB di archivi.
Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
(Lettura del database... 321100 file e directory attualmente installati.)
Preparativi per estrarre .../python3_3.8.2-0ubuntu2_amd64.deb...
/var/lib/dpkg/info/python3.prerm: 5: py3clean: not found
dpkg: attenzione: il sottoprocesso vecchio pacchetto python3 script pre-removal 
ha restituito lo stato di errore 127
dpkg: viene provato lo script dal nuovo pacchetto...
/var/lib/dpkg/tmp.ci/prerm: 5: py3clean: not found
dpkg: errore nell'elaborare l'archivio /var/cache/apt/archives/python3_3.8.2-0ub
untu2_amd64.deb (--unpack):
 il sottoprocesso nuovo pacchetto python3 script pre-removal ha restituito lo st
ato di errore 127
/var/lib/dpkg/info/python3.postinst: 47: py3compile: not found
dpkg: errore durante la pulizia:
 il sottoprocesso installato pacchetto python3 script post-installation ha resti
tuito lo stato di errore 127
Si sono verificati degli errori nell'elaborazione:
 /var/cache/apt/archives/python3_3.8.2-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
caturen
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17935
Iscrizione: giovedì 8 aprile 2010, 18:41
Desktop: diversi
Distribuzione: debian

Re: Problemi Python3

Messaggio da caturen »

Scrivi risposta

Ritorna a “MATE”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti