Eu instalei o OpenOffice, mas percebi que meus arquivos antigos provavelmente usavam o LibreOffice porque as funções que eu tinha nele de repente retornavam erros.
Então, eu segui o passo em um site para substituir o OpenOffice pelo LibreOffice.
sudo apt-get autoremove openoffice.org-*
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice
Provavelmente fez algo errado, porque quando eu verifico meus menus e arquivos, ele ainda abre no OpenOffice, e os atalhos do LibreOffice estão nos meus menus, mas não funcionam.
Agora, tentando todas as etapas que eu encontrei para remover o OpenOffice, qualquer coisa com apt-get
parece retornar algo assim (a atual está tentando rastrear meus passos, não funciona):
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
retorna isso:
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)
Então, o que posso fazer para remover o OpenOffice e depois usar o LibreOffice?
Este é um Lubuntu 15.10, 64 bits.