Não é possível instalar nada no Ubuntu 17.10 devido ao libreoffice

0

Eu atualizei o Ubuntu 17.04 para 17.10 hoje. Deu-me alguns erros durante a atualização mencionando imagens _helpimg.zip.dpkg-new , libreoffice e 3-4 mais. Por último, solicitou que fosse atualizado com erro.

Agora não consigo instalar / atualizar nada. Isso dá esse erro

unable to open '/usr/share/libreoffice/share/config/images_helpimg.zip.dpkg-new':
Operation not permitted

Já experimentei os seguintes comandos

sudo apt-get purge libreoffice* openoffice* 

Isso dá

Package 'libreoffice-wiki-publisher' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
   gir1.2-lokdocview-0.1 :
      Depends: libreoffice-core (= 1:5.4.2-0ubuntu0.17.10.1) but it is not going to be installed  
   liblibreofficekitgtk :
      Depends: libreofficekit-data but it is not going to be installed
      Depends: libreoffice-core (= 1:5.4.2-0ubuntu0.17.10.1) but it is not going to be installed
      Recommends: libreoffice-gtk3 but it is not going to be installed
   python3-uno :
      Depends: libreoffice-core (= 1:5.4.2-0ubuntu0.17.10.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Então eu tentei

sudo apt --fix-broken install

Que tentou instalar, mas falhou

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-hicontrast libreoffice-style-oxygen libreoffice-style-sifr
The following packages will be upgraded:
  libreoffice-common
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
28 not fully installed or removed.
Need to get 0 B/20.8 MB of archives.
After this operation, 15.7 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 292277 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.4.2-0ubuntu0.17.10.1_all.deb ...
Unpacking libreoffice-common (1:5.4.2-0ubuntu0.17.10.1) over (1:5.3.1-0ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.4.2-0ubuntu0.17.10.1_all.deb (--unpack):
 unable to open '/usr/share/libreoffice/share/config/images_helpimg.zip.dpkg-new': Operation not permitted
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.4.2-0ubuntu0.17.10.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Por isso, tentei instalá-lo manualmente

$sudo gdebi  /var/cache/apt/archives/libreoffice-common_1%3a5.4.2-
0ubuntu0.17.10.1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Failed to satisfy all dependencies (broken cache)

Como isso não ajudou, tentei seguir

$ sudo dpkg --configure -a
:
Errors were encountered while processing:
 libreoffice-style-galaxy
 libreoffice-l10n-hi
 libreoffice-core
 libreoffice-calc
 libreoffice-l10n-ja
 libreoffice-l10n-en-gb
 libreofficekit-data
 libreoffice-style-elementary
 gir1.2-lokdocview-0.1
 libreoffice-l10n-en-za
 libreoffice-style-tango
 gnome-menus
 libreoffice-gtk3
 libreoffice-style-breeze
 libreoffice-gnome
 libreoffice-pdfimport
 libreoffice-draw
 libreoffice-help-en-us
 libreoffice-avmedia-backend-gstreamer
 libreoffice-ogltrans
 libreoffice-writer
 libreoffice-help-ja
 libreoffice-impress
 liblibreofficekitgtk
 libreoffice-help-hi
 libreoffice-math
 libreoffice-help-en-gb
 libreoffice-base-core

Mas nada funcionou.

    
por Amit Kumar Gupta 19.01.2018 / 12:13

1 resposta

2

Por fim, instalei o Synaptic Package Manager do Ubuntu Software Center, que é basicamente uma alternativa de GUI para apt-get . Deixou-me instalar todos os pacotes com os quais eu estava enfrentando dificuldades no APT. Então eu instalei o libreoffice, python3 e python3-minimal. Isso resolveu meu problema. Agora também posso instalar outros pacotes.

    
por Amit Kumar Gupta 19.01.2018 / 15:44