Erro ao atualizar

0

Quando estou executando o comando

sudo apt-get upgrade

Mostra o erro:

dpkg: error processing package libexiv2-14:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 libexiv2-14:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu tentei executar:

sudo dpkg --configure -a
sudo apt-get install -f

e estou recebendo o mesmo erro. Então eu tentei remover o pacote:

sudo apt remove libexiv2-14:amd64
[sudo] password for pas:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libraw15 libset-scalar-perl shotwell-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  libexiv2-14 libgexiv2-2 shotwell
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 9,233 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 250847 files and directories currently installed.)
Removing shotwell (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Removing libgexiv2-2:amd64 (0.10.3-2) ...
dpkg: error processing package libexiv2-14:amd64 (--remove):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
 libexiv2-14:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Estou entendendo isso;

    
por cold1746 22.04.2017 / 06:28

1 resposta

0

Eu finalmente consegui resolver o problema, primeiro removi o pacote inteiro usando este comando:

sudo dpkg --remove --force-all libexiv2-14

E depois de atualizar as fontes:

sudo apt-get update

Eu reinstalei o pacote mencionado.

sudo apt-get --reinstall install libexiv2-14
    
por cold1746 24.04.2017 / 05:56