TLDR:apt-get install
またはapt-get upgrade
を実行しようとすると、目的のアクションが発生せず、libreofficeの満たされていない依存関係に関するエラーメッセージが表示されます。
最近、コマンドラインからSudo apt-get install
などと入力してプログラムをインストールしようとすると、プログラムがインストールされず、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).
Sudo apt-get upgrade
を実行しようとすると、同じ応答が返されます。
次にSudo apt-get -f install
を実行すると、次のことがわかります。
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/template/wizard/bitmap/euro_3.bmp.dpkg-new': Operation not permitted
Segmentation fault (core dumped)
その後、他のプログラムをインストールしようとすると、次のエラーが発生します。
E: dpkg was interrupted, you must manually run 'Sudo dpkg --configure -a' to correct the problem.
したがって、私はSudo dpkg --configure -a
を実行して次の応答を受け取ります。
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
それでもapt-get install
またはapt-get upgrade
を正常に実行できないため、Sudo apt-get remove --purge libreoffice*
を使用してlibreofficeを完全に削除しようとすると、次のような長い応答が返されます...
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).
私はもう一度Sudo apt-get -f install
を試して、以下を取得します。
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)
私は同様の質問をオンラインで調べましたが、ちょうど循環しているようです。他のプログラムをインストールできるように問題を修正するにはどうすればよいですか?
これを機能させることができました。 Sophos AVがアップデートを妨げていたようです。
Sudo /opt/sophos-av/bin/savdctl disable
Sudo apt-get install -f
Sudo apt-get upgrade
Sudo /opt/sophos-av/bin/savdctl enable