Como instalar e atualizar outros softwares apesar dos erros de dependência não atendidos no libreoffice? [fechadas]

1

TLDR: Quando tento executar apt-get install ou apt-get upgrade , a ação desejada não ocorre e recebo uma mensagem errônea sobre as dependências não atendidas do libreoffice.

Ultimamente, quando tento instalar um programa via linha de comando digitando sudo apt-get install etc., o programa NÃO é instalado e recebo uma mensagem de erro sobre o libreoffice:

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:
 libreoffice-style-breeze : Depends: libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial2) but 1:5.1.6~rc2-0ubuntu1~xenial1 is to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial2) but 1:5.1.6~rc2-0ubuntu1~xenial1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu recebo a mesma resposta quando tento executar sudo apt-get upgrade .

Quando, em seguida, executo sudo apt-get -f install , isso me diz:

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:
  linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic linux-image-4.4.0-71-generic
  linux-image-extra-4.4.0-71-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-hicontrast libreoffice-style-human libreoffice-style-oxygen
  libreoffice-style-sifr libreoffice-style-tango
The following packages will be upgraded:
  libreoffice-common
1 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
2 not fully installed or removed.
Need to get 0 B/22.2 MB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n]

Eu digo ao terminal Y . Responde:

(Reading database ... 273520 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial2_all.deb ...
Unpacking libreoffice-common (1:5.1.6~rc2-0ubuntu1~xenial2) over (1:5.1.6~rc2-0ubuntu1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial2_all.deb (--unpack):
 unable to open '/usr/lib/libreoffice/share/template/wizard/bitmap/euro_3.bmp.dpkg-new': Operation not permitted
Segmentation fault (core dumped)

Quando tento instalar outros programas, recebo este erro:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

Por isso, corro sudo dpkg --configure -a e obtenho esta resposta:

dpkg: dependency problems prevent configuration of libreoffice-style-galaxy:
 libreoffice-style-galaxy depends on libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial2); however:
  Version of libreoffice-common on system is 1:5.1.6~rc2-0ubuntu1~xenial1.

dpkg: error processing package libreoffice-style-galaxy (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.5-1) ...
Setting up shared-mime-info (1.5-2ubuntu0.1) ...
dpkg: dependency problems prevent configuration of libreoffice-style-breeze:
 libreoffice-style-breeze depends on libreoffice-style-galaxy; however:
  Package libreoffice-style-galaxy is not configured yet.
 libreoffice-style-breeze depends on libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial2); however:
  Version of libreoffice-common on system is 1:5.1.6~rc2-0ubuntu1~xenial1.

dpkg: error processing package libreoffice-style-breeze (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libreoffice-style-galaxy
 libreoffice-style-breeze

Eu ainda não consigo executar apt-get install ou apt-get upgrade , então eu tento remover o libreoffice inteiramente via sudo apt-get remove --purge libreoffice* e recebo uma resposta longa terminando no seguinte ...

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 python3-uno : Depends: libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu novamente tento sudo apt-get -f install e obtenho o seguinte:

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:
  linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic linux-image-4.4.0-71-generic
  linux-image-extra-4.4.0-71-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-hicontrast libreoffice-style-human libreoffice-style-oxygen
  libreoffice-style-sifr libreoffice-style-tango
The following packages will be upgraded:
  libreoffice-common
1 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
2 not fully installed or removed.
Need to get 0 B/22.2 MB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 273520 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial2_all.deb ...
Unpacking libreoffice-common (1:5.1.6~rc2-0ubuntu1~xenial2) over (1:5.1.6~rc2-0ubuntu1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial2_all.deb (--unpack):
 unable to open '/usr/lib/libreoffice/share/gallery/htmlexpo/grenav.gif.dpkg-new': Operation not permitted
Segmentation fault (core dumped)

Examinei questões semelhantes on-line, mas pareço estar andando em círculos. Como posso corrigir o problema para poder instalar outros programas?

    
por Be Brilliant 19.05.2017 / 04:26

1 resposta

1

Eu consegui fazer isso funcionar. Parece que meu Sophos AV estava impedindo a atualização.

 sudo /opt/sophos-av/bin/savdctl disable
 sudo apt-get install -f
 sudo apt-get upgrade
 sudo /opt/sophos-av/bin/savdctl enable
    
por remoteitguy 09.06.2017 / 17:48