apt-get comandos estão falhando com libpython3.3 dependências não atendidas

0

SO: Ubuntu 14.04, amd_x64.

Comandos

apt-get , como instalar, remover e eliminar falhar com o mesmo erro mostrado abaixo

No entanto, comandos como update e clean funcionam bem.

Não sabe como resolver o problema. Dê uma olhada na minha sessão de terminal.

$ sudo apt-get install --reinstall lightdm
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libpython3.3 : Depends: python3.3 (= 3.3.6-1+trusty1) but 3.3.2-7ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get -f install -y
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  evolution-common libevolution libgtkhtml-4.0-0 libgtkhtml-4.0-common
  libgtkhtml-editor-4.0-0 libkactivities-models1 libmail-spf-perl
  libnetaddr-ip-perl libpst4 libytnef0 re2c sa-compile spamassassin spamc
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python3.3 python3.3-minimal
Suggested packages:
  python3.3-doc
The following packages will be upgraded:
  python3.3 python3.3-minimal
2 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,356 kB of archives.
After this operation, 10.8 MB of additional disk space will be used.
(Reading database ... 403449 files and directories currently installed.)
Preparing to unpack .../python3.3_3.3.6-1+trusty1_amd64.deb ...
Unpacking python3.3 (3.3.6-1+trusty1) over (3.3.2-7ubuntu4) ...
dpkg: error processing archive /var/cache/apt/archives/python3.3_3.3.6-1+trusty1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3.3/asynchat.py', which is also in package libpython3.3-stdlib:amd64 3.3.2-7ubuntu4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: considering deconfiguration of python3.3, which would be broken by installation of python3.3-minimal ...
dpkg: yes, will deconfigure python3.3 (broken by python3.3-minimal)
Preparing to unpack .../python3.3-minimal_3.3.6-1+trusty1_amd64.deb ...
De-configuring python3.3 (3.3.2-7ubuntu4) ...
Unpacking python3.3-minimal (3.3.6-1+trusty1) over (3.3.2-7ubuntu4) ...
dpkg: error processing archive /var/cache/apt/archives/python3.3-minimal_3.3.6-1+trusty1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3.3/sre_compile.py', which is also in package libpython3.3-minimal:amd64 3.3.2-7ubuntu4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python3.3_3.3.6-1+trusty1_amd64.deb
 /var/cache/apt/archives/python3.3-minimal_3.3.6-1+trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ python --version
Python 2.7.6
$ python3 --version
Python 3.4.0
$ python3.3 --version
Python 3.3.2+
    
por Zanna 19.10.2014 / 21:00

1 resposta

3

Aparentemente, ninguém sinalizou as diferentes versões dos pacotes Python como conflitantes. Portanto, apt-get não pode resolver corretamente as dependências e substituir, remover e adicionar os pacotes na ordem correta.

Como solução alternativa, você pode remover os pacotes conflitantes manualmente enquanto sobrescreve os problemas de dependência. Você pode precisar brincar um pouco com a ordem (como eu não sei exatamente as cadeias de dependências aqui), mas a idéia geral é rodar

dpkg -r --force-depends libpython3.3-minimal libpython3.3-stdlib

Isso pode travar / interromper a execução de aplicativos ou serviços do sistema com base no Python 3.3 e talvez seja necessário reiniciá-los após a atualização.

    
por David Foerster 19.10.2014 / 22:05