Проблема с Кв. - получает установку-f

Я пытался установить рысь, чтобы показать кому-то, как рысь работает, но когда я работал apt-get install lynx, это - то, что происходит.

sudo apt-get install lynx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lynx is already the newest version (2.8.9dev8-4ubuntu1).
lynx set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libreoffice-core : Depends: libreoffice-common (> 1:5.1.4) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-breeze : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-oxygen : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-tango : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) 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, вот то, что происходит:

sudo apt-get -f 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-human libreoffice-style-sifr
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
21 not fully installed or removed.
Need to get 0 B/22.3 MB of archives.
After this operation, 84.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 345619 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb ...
Unpacking libreoffice-common (1:5.1.4-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.2-9782
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
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Таким образом, теперь я застреваю. У меня нет подсказки, как решить эту проблему. Поиск с помощью Google не предлагает справки как всего, что все предлагают, чтобы сбои работали.

Люди предлагают работать sudo apt-get remove libreoffice* --purge но снова, нет apt-get команды работают, потому что это одержимо этой загаженной ошибкой, которая говорит мне фиксировать его путем выполнения -f install.

Если кто-либо знает, как зафиксировать, это сообщило мне. Я действительно очень не хотел бы должным быть отформатировать и запуститься.


Когда я пытаюсь удалить побочную установку OpenOffice.org:

$ sudo apt-get remove -f 'openoffice.*'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'openoffice.org-debian-menus' for glob 'openoffice.*'
[...snip...]
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libreoffice-core : Depends: libreoffice-common (> 1:5.1.4) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-breeze : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-oxygen : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-tango : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice5.2-base : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-calc : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-dict-en : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-dict-es : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-dict-fr : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-draw : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-en-us : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                        Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-impress : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-math : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-writer : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                         Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

(несокращенная версия)

1
задан 12 January 2017 в 02:48

5 ответов

В нашем взаимодействии в комментариях мы определили LibreOffice v5.2.* установка и остатки установки OpenOffice.org в дополнение к частичному LibreOffice v5.1.* установка от хранилищ пакетов Ubuntu по умолчанию. Мы могли решить выпуск

  1. удаление (остатки) LibreOffice v5.2.* и OpenOffice.org вручную:

    dpkg-query -Wf '${Status;1} ${Package}\n' openoffice\* libreoffice5.2\* libobasis5.2\* |
    sed -ne 's/^i //p' |
    xargs sudo dpkg --remove
    

    (Объяснение согласно просьбе: первое поле на каждой строке dpkg-query вывод является состоянием пакета (как определено -f параметр формата). i означает "установленный", таким образом, sed -ne 's/^i //p' только распечатает строки, запускающиеся с i и также удалите ту часть.)

  2. и затем фиксируя остающиеся проблемы управления пакета с Кв. и обеспечивая подсказку для выбора решения, которое включает установку libreoffice-common (из репозиториев по умолчанию):

    sudo apt-get install -f libreoffice-common
    
0
ответ дан 7 November 2019 в 04:38

Похоже, что ваша папка с данными приложения LibreOffice испортилась, их легко обойти:

sudo rm /usr/bin/soffice
sudo rm -r /var/lib/libreoffice

Если вы хотите продолжить использовать LibreOffice, было бы разумно удалить OpenOffice, возможно, поэтому Есть пакет openoffice-debian-menus:

sudo apt-get purge openoffice
sudo apt-get purge openoffice-debian-menus

После установки последней версии LibreOffice:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt update; sudo apt dist-upgrade
sudo apt install libreoffice-gtk2 libreoffice-gnome

Источник: apt застрял с ошибками libreoffice

1
ответ дан 7 November 2019 в 04:38

Кажется, вы пытаетесь использовать Openoffice и Libreoffice вместе ... (?) Apt не может сконфигурировать libreoffice-common, потому что он перезапишет openoffice-debian-menus, который тоже установлен.

dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.2-9782

Попробуйте удалить openoffice (openoffice-debian-menus) и снова выполнить «install -f» ...

Привет

0
ответ дан 7 November 2019 в 04:38

Можно выполнить эту команду в терминале

apt-get remove -f

, который Вы хотите удалить

Спасибо!

-1
ответ дан 7 November 2019 в 04:38

Попытайтесь удалить libreoffice с dpkg:

sudo dpkg -r 'libreoffice*'

можно также перечислить информацию для libreoffice со следующей командой:

sudo dpkg -l 'libreoffice*'

И я думаю, что у Вас уже есть Lynx, установленный

lynx is already the newest version (2.8.9dev8-4ubuntu1).
lynx set to manually installed.
-1
ответ дан 7 November 2019 в 04:38

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

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