I’ve checked current answers to this question but none are working for me. I have Ubuntu 22.04 with 3 versions of Libreoffice on my computer. I want to delete the older 2 but can’t seem to get rid of them.
I’ve tried the options shown in ‘Ask Libreoffice’ but none of them work for me. For example, here are error messages I got when I ran sudo dpkg -P libreoffice*
dpkg: warning: ignoring request to remove libreoffice_icon.jpeg which isn’t installed
I also got these error messages when I tried to run sudo apt-get remove --purge libreoffice*:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package libreoffice_icon.jpeg
E: Couldn’t find any package by glob 'libreoffice_icon.jpeg’
E: Couldn’t find any package by regex 'libreoffice_icon.jpeg’
I also tried to run:
dpkg --list | awk '/ii/&&/libreoffice7.3/||/libobasis7.1/{print $2}' | sudo xargs apt purge
which gave me this result:
**Reading package lists... Done**
**Building dependency tree... Done**
**Reading state information... Done**
**The following packages were automatically installed and are no longer required:**
** libflashrom1 libftdi1-2 libllvm13 libmozjs-91-0**
**Use 'sudo apt autoremove' to remove them.**
**The following packages will be REMOVED:**
** libobasis7.3-base* libobasis7.3-calc* libobasis7.3-core* libobasis7.3-draw***
** libobasis7.3-en-us* libobasis7.3-extension-beanshell-script-provider***
** libobasis7.3-extension-javascript-script-provider***
** libobasis7.3-extension-mediawiki-publisher***
** libobasis7.3-extension-nlpsolver* libobasis7.3-extension-pdf-import***
** libobasis7.3-extension-report-builder* libobasis7.3-firebird***
** libobasis7.3-gnome-integration* libobasis7.3-graphicfilter***
** libobasis7.3-images* libobasis7.3-impress* libobasis7.3-kde-integration***
** libobasis7.3-librelogo* libobasis7.3-libreofficekit-data* libobasis7.3-math***
** libobasis7.3-ogltrans* libobasis7.3-onlineupdate***
** libobasis7.3-ooolinguistic* libobasis7.3-postgresql-sdbc***
** libobasis7.3-python-script-provider* libobasis7.3-pyuno***
** libobasis7.3-writer* libobasis7.3-xsltfilter* libreoffice7.3***
** libreoffice7.3-base* libreoffice7.3-calc* libreoffice7.3-debian-menus***
** libreoffice7.3-dict-en* libreoffice7.3-dict-es* libreoffice7.3-dict-fr***
** libreoffice7.3-draw* libreoffice7.3-en-us* libreoffice7.3-impress***
** libreoffice7.3-math* libreoffice7.3-ure* libreoffice7.3-writer***
**0 to upgrade, 0 to newly install, 41 to remove and 0 not to upgrade.**
**After this operation, 618 MB disk space will be freed.**
**Do you want to continue? [Y/n] Abort.**
However, after all this, I still have the old versions installed. How do I get rid of them?
Alan