Não é possível atualizar o Python e outros softwares

0

Estou atualizando meu Python e não consigo acessar. Os sistemas sugerem usar o sudo apt-get -f install, no entanto, ele também não funciona. Como posso resolver este problema?

$sudo apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  python3-update-manager update-manager
The following packages will be upgraded:
  python3-update-manager update-manager
2 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
11 not fully installed or removed.
Need to get 0 B/574 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 405655 files and directories currently installed.)
Preparing to unpack .../python3-update-manager_1%3a16.04.4_all.deb ...
/var/lib/dpkg/info/python3-update-manager.prerm: 6: /var/lib/dpkg/info/python3-update-manager.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/python3-update-manager_1%3a16.04.4_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python3-update-manager.postinst: 6: /var/lib/dpkg/info/python3-update-manager.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../update-manager_1%3a16.04.4_all.deb ...
/var/lib/dpkg/info/update-manager.prerm: 6: /var/lib/dpkg/info/update-manager.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/update-manager_1%3a16.04.4_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/update-manager.postinst: 6: /var/lib/dpkg/info/update-manager.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/python3-update-manager_1%3a16.04.4_all.deb
 /var/cache/apt/archives/update-manager_1%3a16.04.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por DEu 22.10.2016 / 20:37

1 resposta

1

Certifique-se de atualizar seus repositórios e, em seguida, os arquivos do sistema. Em seguida, execute um reinstall of python3 .

(O $ representa o prompt de comando que você vê na tela do terminal. O comando é o que segue o prompt $ .):

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install python3-minimal
$ sudo apt install --reinstall python3

Em seguida, adicione alguns dos outros pacotes que você pode precisar do repositório. Você pode obter uma lista dos pacotes de repositórios padrão com:

$ apt-cache search "^python3" | less
    
por L. D. James 27.10.2016 / 04:08