dpkg-divert: erro: renomear envolve sobrescrever '/usr/lib/xorg/protocol.txt' com arquivo diferente '/usr/lib/xorg/protocol-precise.txt', não permitido

4

Acabei de instalar o Ubuntu (12.04.4) e atualizei para 13.10

Não tenho ideia de como corrigir isto: /

$ sudo apt-get install -f

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  xserver-common-lts-saucy
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 1,718 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 175174 files and directories currently installed.)
Removing xserver-common-lts-saucy ...
Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-saucy'
dpkg-divert: error: rename involves overwriting '/usr/lib/xorg/protocol.txt' with
  different file '/usr/lib/xorg/protocol-precise.txt', not allowed
dpkg: error processing xserver-common-lts-saucy (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 xserver-common-lts-saucy
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Terho 11.02.2014 / 07:55

1 resposta

7

Experimente os comandos abaixo,

sudo mv /usr/lib/xorg/protocol-precise.txt /usr/lib/xorg/protocol-precise.txt.bak
sudo apt-get -f install

Os comandos acima renomeiam o arquivo de texto protocol-precise.txt para protocol-precise.txt.bak e corrigem as dependências.

    
por Avinash Raj 11.02.2014 / 08:14