I need to remove old versions of LibreOffice in my Debian. Used the command sudo apt-get remove --purge libreoffice* but the directory with two folders is still there. The property shows that it is a inode/directory.
I run the command to remove again and the message is “Unable to locate package libreoffice_24.8.4.2_Linux_x86-64.deb”
It seems that without removing this directory, I cannot install a newer version, which I already tried, but it did not launch 26.2.4.
What am I not doing correctly? Thank you for any help. Thelma
If they uninstaller needs the installation file then you can download the file from Index of /libreoffice/old
What folder is still there? Something below your home-folder?
.
And: Your OS is really Debian? Is your LibreOffice installed via snap/flatpack ? IMHO containers are not removed via apt.
.
Ok, I found the info in your first question:
sudo apt remove libreoffice removes the version delivered by the distribution keeping the user profile folder ~/.config/libreoffice/4/user/ with all your extensions, macros, personal settings.
The following routine installs LibreOffice from downloaded packages:
cd Downloads
tar -xzvf LibreOf [TAB]--> LibreOffice_26.2.4_Linux_x86-64_deb.tar.gz
cd LibreOf [TAB] --> LibreOffice_26.2.4.2_Linux_x86-64_deb/
cd DEBS
sudo dpkg -i *.deb
Hello All,
I had LO installed from Synaptic, old version 7.0.4 and uninstall it to run a newer version 24.8 which worked fine till for some reason could not open an .odt file saying that it was corrupted. It could not be fine because this file worked fine in LO 7.2 running in my Windows machine. I tried many times and did not work. So, I decided to download LO version 26.2.4 from the website and installed it without removing version 24.8.
I was in a hurry to finish a translation and thought that this would not be a problem, but I could not open the newest version.
Tried to remove the directory with two folders DEBS and Readme from version 24.8, but the command rm -r directory name did nothing.
Meantime I ran out of space in my /root directory and had to deal with xsession unable to write to tmp error.
In the last 12 hours I did many cleaning procedures in /tmp, /var create more space for Debian 11.
Now I have two directories of LO in /opt and both versions 24.8 and 26.2.4 are listed in the Applications/Office… but only 24.8 is launching, which is fine for me to finish a job. Then I can relax and go over your messages to get the details to manage keeping the latest LO version.
Thank you for your help. Much appreciated.
I was trying to remove LO 24.8 directory from Downloads, where I could see the two folders (DEBS and Readime). I had installed it manually from tar.gz file. I think I have to go to /opt and remove the folders from there.
I still can see both versions in /opt showing help, presets, program, readmes, share plus 4 files.
In a couple of days I will learn more about removing previous LO version from the system.
Thanks a lot.
I assume one problem is your Debian-11, whenn we now have Debian-13. The libraries may still be available, but there may be changes in API, behaviour or seemingly simple stuff like required versions of python… You may try backports, but I recommend to upgrade Debian.
I don’t know many persons running debian on Desktop. Maybe Mints LMDE7 would be an option and you could use Flatpaks there…
PS: If you used dpgk to install, try to start here. A general hint:
Take noted of the manual commands you used for manual install, so you can find out how to go backwarfs…
You are right, it is time to upgrade to Debian 13 or Mint LMDE7. Another thing to review is the system partition table.
I always make notes when installing packages out of Synaptic, but could not reach my Gnote due to the Xsession error.
Learning in the hard way…
Thanks a lot for your help.
Cheers,