Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

apt-get remove: Package 'libreoffice' is not installed.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
stf92
Posts: 41
Joined: 2018-05-27 20:16

apt-get remove: Package 'libreoffice' is not installed.

#1 Post by stf92 »

Code: Select all

root@debian:~# apt-get remove libreoffice
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libreoffice' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
root@debian:~# 
However --I have Xfce 4-- in Applications>Office there is LibreOffice and, if I press Enter, it runs. Any way to explain this behavior of apt-get?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: apt-get remove: Package 'libreoffice' is not installed.

#2 Post by bw123 »

https://duckduckgo.com/html/?q=apt+remove+libreoffice

third result don't even need to click it for an answer.

If you have installed task-xfce-desktop then looking at it's depends/recommends will explain it. Aptitude is very good at this.

or you can try
$ apt show task-xfce-desktop
resigned by AI ChatGPT

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: apt-get remove: Package 'libreoffice' is not installed.

#3 Post by debiman »

also

Code: Select all

apt search libreoffice|grep installed
don't evn need no search engine.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: apt-get remove: Package 'libreoffice' is not installed.

#4 Post by Dai_trying »

If you actually want to remove libreoffice entirely you could use the following command which should remove them all (as root)

Code: Select all

apt remove --purge libreoffice*
I haven't tested this command exactly but I used it a short wile back when cleaning a system of unwanted packages. You could also add the -s switch to simulate what it does without actually changing anything (a good way to ensure purging a package won't remove something you want to keep.

Code: Select all

apt -s remove --purge libreoffice*
No need for root for this as it changes nothing.

EDIT:
You could also change the remove to autoremove to clear orphaned dependencies too (in either of the two commands)

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: apt-get remove: Package 'libreoffice' is not installed.

#5 Post by Lysander »

stf92 wrote:Any way to explain this behavior of apt-get?
Any way to explain your inability to use a search engine?

czeekaj
Posts: 16
Joined: 2018-01-09 10:18

Re: apt-get remove: Package 'libreoffice' is not installed.

#6 Post by czeekaj »

You have to tell it exactly what you remove.
Warning though, if you use wild card
So for example

apt-get purge *libreoffice* Read what your removing.

apt-get purge libreoffice should do the trick. than
apt-get autoremove

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: apt-get remove: Package 'libreoffice' is not installed.

#7 Post by Wheelerof4te »

Package "libreoffice" is just a metapackage, it is there to make full Libre Office suite easier to install. Actual packages are libreoffice-core, libreoffice-writer, etc.
Doing something like:

Code: Select all

apt install libreoffice-gnome libreoffice-writer libreoffice-calc libreoffice-draw libreoffice-base libreoffice-impress
will pull in way less stuff and still install full LibreOffice.

stf92
Posts: 41
Joined: 2018-05-27 20:16

Re: apt-get remove: Package 'libreoffice' is not installed.

#8 Post by stf92 »

Well I did

Code: Select all

apt-get remove --purge libreoffice-*
apt-get clear [unknown command]
apt-get autoremove
and this did it. At last I am free of a thing which only is of use to office people. Instead the installer (firmware-netinst.iso) does not install such essential a thing as the GNU compiler and linker.

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: apt-get remove: Package 'libreoffice' is not installed.

#9 Post by Wheelerof4te »

^Easy fix for that:

Code: Select all

apt install build-essential

Post Reply