Хочу LibreOffice вместо OpenOffice, случайно установил обоих

Я установил OpenOffice, но он понял, что мои старые файлы, вероятно, использовали LibreOffice, потому что функции, которые я имел в них внезапно, возвратили ошибки.

Так, я выполнил шаг на веб-сайте для замены OpenOffice LibreOffice.

sudo apt-get autoremove openoffice.org-*
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice

Вероятно, сделал что-то не так, потому что, когда я проверяю свои Меню и файлы, это все еще открывается в OpenOffice, и ярлыки LibreOffice находятся в моих Меню, но не работают.

Теперь, попытка обо всех шагах я нашел для удаления OpenOffice, чего-либо с apt-get кажется, возвращает что-то вроде этого (текущий пытается отступить, отслеживают мои шаги, не работает):

bigaisdgood1@HP-Aaron:~$ sudo apt-get remove --purge libreoffice
[sudo] password for bigaisdgood1: 
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-core : Depends: libreoffice-common (> 1:5.1.2~rc2) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common (= 1:5.1.2~rc2-0ubuntu1~wily0) but it is not going to be installed
 libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.1.2~rc2-0ubuntu1~wily0) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.2~rc2-0ubuntu1~wily0) 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 возвраты это:

bigaisdgood1@HP-Aaron:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-breeze libreoffice-style-hicontrast
  libreoffice-style-human libreoffice-style-oxygen libreoffice-style-sifr
  libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
21 not fully installed or removed.
Need to get 0 B/22.5 MB of archives.
After this operation, 84.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 166759 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.1.2~rc2-0ubuntu1~wily0_all.deb ...
Unpacking libreoffice-common (1:5.1.2~rc2-0ubuntu1~wily0) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.2~rc2-0ubuntu1~wily0_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-1ubuntu3) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for gnome-icon-theme (3.12.0-1ubuntu2) ...
Processing triggers for gnome-icon-theme-full (3.12.0-1ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.1.2~rc2-0ubuntu1~wily0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Так, что я могу сделать для удаления OpenOffice, затем имейте LibreOffice вместо этого?

Это - Lubuntu 15.10, 64 бита.

1
задан 2 April 2016 в 03:51

2 ответа

регистрация программного обеспечения и обновлений в панели администрирования и деактивирует ppa, например. Затем установите офис Весов drom Центр программного обеспечения Ubuntu.

Или в терминале:

apt-get update
sudo apt-get -f install
sudo apt-get purge openoffice.org-*
sudo apt-get purge libreoffice*
sudo add-apt-repository -r ppa:libreoffice/ppa
apt-get update
sudo apt-get install libreoffice*

, когда Вы теперь хотите довольно релейный на это ppa для более новой версии libroffice, можно добавить его снова.

sudo add-apt-repository ppa:libreoffice/ppa
apt-get update
sudo apt-get upgrade
2
ответ дан 7 December 2019 в 12:40

таким образом libreofffice не встретил зависимости, но он не позволит Вам вынудить установку исправить их. Диспетчер пакетов Debian dpkg (который является также диспетчером пакетов xbuntu) феноменален, но не прекрасен. Я произвел бы чистку и libreoffice и openoffice и начал бы заново. Что является результатами

sudo find / -iname "openoffice"*

, Если бы Вы произвели чистку его успешно, то это ничего не должно поднимать. Также удостоверьтесь, что openoffice не является Вашим приложением по умолчанию ни для чего.

В будущем я настоятельно рекомендую использующий синаптический диспетчер пакетов. Это - большой GUI для dpkg.

1
ответ дан 7 December 2019 в 12:40

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

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