Невозможно установить что-либо на Ubuntu 17.10 из-за libreoffice

Я обновил Ubuntu 17.04 до 17.10 сегодня. Это дало мне несколько ошибок при обновлении упоминания изображений _helpimg.zip.dpkg-new, libreoffice и еще 3-4. В последнем он подсказал, что обновился с ошибкой.

Теперь я не могу ничего устанавливать / обновлять. Это дает эту ошибку

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

Я уже пробовал следующие команды

sudo apt-get purge libreoffice* openoffice* 

Это дает

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).

Поэтому я попытался

sudo apt --fix-broken install

Который пытался установить, но не смог

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)

Поэтому я попытался установить его вручную

$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)

Так как это не помогло, я попытался следовать

$ 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

Но ничего не сработало.

0
задан 19 January 2018 в 20:04

1 ответ

Наконец, я установил Synaptic Package Manager из Ubuntu Software Center, который является альтернативой графического интерфейса для apt-get. Это позволило мне установить все пакеты, с которыми я столкнулся в APT. Поэтому я установил libreoffice, python3 и python3-minimal. Это решило мою проблему. Теперь я могу устанавливать и другие пакеты.

2
ответ дан 19 January 2018 в 20:04

Другие вопросы по тегам:

Похожие вопросы: