TL; DR: когда я пытаюсь запустить 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
, поэтому я пытаюсь полностью удалить libreoffice с помощью sudo apt-get remove --purge 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