Como eu corrijo o problema de dependência com o apport e o apt-get (ubuntu 16.04 atualizado de 14.04)

0

Estou tendo problemas com dependências e apt-get upgrade. Eu olhei em volta e tentei um grupo de approches deste site e outras coisas encontradas no google.

b@asus:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 apport : Depends: python3-apport (>= 2.20.1-0ubuntu2.1) but 2.20.1-0ubuntu2 is installed
 apport-gtk : Depends: python3-apport (>= 2.20.1-0ubuntu2.1) but 2.20.1-0ubuntu2 is installed
E: Unmet dependencies. Try using -f.

Eu tentei usar o sudo apt-get -f install e outras coisas como autoremove e autoclean, mas não estou tendo sorte.

Isso também surgiu quando eu fiz o upgrade do apt-get:

Get:124 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 compizconfig-settings-manager all 1:0.9.12.2+16.04.20160526-0ubuntu1 [576 kB]
Fetched 160 MB in 2min 47s (955 kB/s)                                          
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 252887 files and directories currently installed.)
Preparing to unpack .../python3-problem-report_2.20.1-0ubuntu2.1_all.deb ...
  File "/usr/bin/py3clean", line 106

          ^
SyntaxError: unexpected EOF while parsing
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/py3clean", line 106

          ^
SyntaxError: unexpected EOF while parsing
dpkg: error processing archive /var/cache/apt/archives/python3-problem-report_2.20.1-0ubuntu2.1_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Preparing to unpack .../python3-apport_2.20.1-0ubuntu2.1_all.deb ...
  File "/usr/bin/py3clean", line 106

          ^
SyntaxError: unexpected EOF while parsing
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/py3clean", line 106

          ^
SyntaxError: unexpected EOF while parsing
dpkg: error processing archive /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.1_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Preparing to unpack .../init-system-helpers_1.29ubuntu2_all.deb ...
Unpacking init-system-helpers (1.29ubuntu2) over (1.29ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python3-problem-report_2.20.1-0ubuntu2.1_all.deb
 /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)    
    
por Barefoot Boblio 06.06.2016 / 20:50

1 resposta

0

Eu resolvi o mesmo problema apenas usando o python 2.7 em vez do python 3.4:

 sudo rm python
 sudo ln -s python2.7 python
 sudo apt-get update
 sudo apt-get upgrade
 sudo rm python
 sudo ln -s python3.4 python
    
por Ana 23.06.2016 / 09:47