O pacote python-samba precisa ser reinstalado, mas não consigo encontrar um arquivo para ele

0

Obtendo a mensagem de erro:

E: The package python-samba needs to be reinstalled, but I can't find an archive for it.

Pouco fácil, se não posso instalar, também não consigo instalar novamente.

Se eu executar sudo apt-get -f install

Reading package lists... Done 
Building dependency tree        
Reading state information... Done 
The following additional packages will be installed: python-samba 
The following packages will be upgraded: python-samba 1 upgraded, 0 newly installed, 0 to remove and 24 not upgraded. 4 not fully installed or removed. 
Need to get 0 B/1,062 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 ... 245710 files and directories currently installed.) 
Preparing to unpack .../python-samba_2%3a4.3.11+dfsg-ubuntu0.16.04.7_amd64.deb ...   
File "/usr/bin/pyclean", line 63
 except (IOError, OSError), e: SyntaxError: invalid syntax dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ...   
File "/usr/bin/pyclean", line 63
 except (IOError, OSError), e: SyntaxError: invalid syntax dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.7_amd64.deb
(--unpack):  subprocess new pre-removal script returned error exit
status 1 
Traceback (most recent call last):   
File "/usr/bin/pycompile", line 35, in <module> from debpython.version import SUPPORTED, debsorted, vrepr,     
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error while cleaning up:  
 subprocess installed post-installation script returned error exit status 1   
Errors were encountered while processing:  
  /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.7_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por DovMor 01.06.2017 / 16:52

1 resposta

1

Meu problema surgiu quando troquei a versão padrão do Python do Python2.7 para o Python3. Quando voltei, os problemas de dependência desapareceram.

    
por DovMor 05.06.2017 / 11:15