I installed OpenOffice, but it realized my old files probably used LibreOffice because the functions I had in them suddenly returned errors.
So, I followed step on a website to replace OpenOffice with LibreOffice.
sudo apt-get autoremove openoffice.org-*
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice
Probably did something wrong, because when I check my Menus and files, it still opens into OpenOffice, and LibreOffice shortcuts are in my Menus, but don't work.
Now, trying about all the steps I've found to remove OpenOffice, anything with apt-get
seems to return something like this (current one is trying to back track my steps, doesn't work):
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
returns this:
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)
So, what can I do to remove OpenOffice, then have LibreOffice instead?
This is a Lubuntu 15.10, 64 bit.