Erro de atualização (usando o apt-get install -f)?

1

Então, tentei atualizar meu sistema para encontrar esse erro pop-up na tentativa

The package system is broken

Check if you are using third party repositories. If so disable them,
since they are a common source of problems. Furthermore run the
following command in a Terminal: apt-get install -f

Eu corri o comando em sudo no prompt de comando, para encontrar esse problema,

Reading package lists... Done Building dependency tree        Reading
state information... Done Correcting dependencies... Done The
following packages were automatically installed and are no longer
required:   nvidia-settings-updates libudev0:i386 Use 'apt-get
autoremove' to remove them. The following extra packages will be
installed:   tor Suggested packages:   mixmaster xul-ext-torbutton
socat tor-arm apparmor-utils The following NEW packages will be
installed:   tor 0 upgraded, 1 newly installed, 0 to remove and 243
not upgraded. 1 not fully installed or removed. Need to get 0 B/1,097
kB of archives. After this operation, 2,571 kB of additional disk
space will be used. Do you want to continue [Y/n]? y (Reading database
... 388724 files and directories currently installed.) Unpacking tor
(from .../tor_0.2.4.21-1~precise+1_amd64.deb) ... dpkg: error
processing /var/cache/apt/archives/tor_0.2.4.21-1~precise+1_amd64.deb
(--unpack):  trying to overwrite '/usr/bin/tor', which is also in
package tor-browser 2.3.25-12 dpkg-deb: error: subprocess paste was
killed by signal (Broken pipe) Processing triggers for man-db ...
Errors were encountered while processing: 
/var/cache/apt/archives/tor_0.2.4.21-1~precise+1_amd64.deb E:
Sub-process /usr/bin/dpkg returned an error code (1)

O que posso fazer para corrigir esse erro e atualizar minha atualização?

    
por sharksfan98 20.04.2014 / 22:06

2 respostas

1

  1. Depois de obter esse erro, tente o sudo apt-get -f install para forçar um

instalação dos arquivos que não foram carregados devido ao erro.

Em seguida, tente sudo apt-get update novamente, sudo apt-get -f install back e até que apenas o pacote que tem o erro é deixado.

sudo dpkg --configure -a

and clean the cache

sudo apt-get clean
    
por sohel4r 20.04.2014 / 22:16
0

Remova o pacote tor-browser e corrija as dependências.

sudo dpkg -P tor-browser
sudo apt-get install -f
    
por Avinash Raj 22.04.2014 / 08:48