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

New to Debian (Or Linux in general)? Ask your questions here!

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

Postby stf92 » 2018-06-03 23:36

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?
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

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

Postby bw123 » 2018-06-03 23:48

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
User avatar
bw123
 
Posts: 3389
Joined: 2011-05-09 06:02
Location: TN_USA

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

Postby debiman » 2018-06-04 05:27

also
Code: Select all
apt search libreoffice|grep installed
don't evn need no search engine.
User avatar
debiman
 
Posts: 2900
Joined: 2013-03-12 07:18

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

Postby Dai_trying » 2018-06-04 06:14

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)
Dai_trying
 
Posts: 548
Joined: 2016-01-07 12:25

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

Postby Lysander » 2018-06-04 07:47

stf92 wrote:Any way to explain this behavior of apt-get?


Any way to explain your inability to use a search engine?
User avatar
Lysander
 
Posts: 558
Joined: 2017-02-23 10:07
Location: London

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

Postby czeekaj » 2018-06-07 13:18

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
czeekaj
 
Posts: 16
Joined: 2018-01-09 10:18

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

Postby Wheelerof4te » 2018-06-07 15:30

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.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

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

Postby stf92 » 2018-06-08 20:33

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.
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

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

Postby Wheelerof4te » 2018-06-09 07:03

^Easy fix for that:
Code: Select all
apt install build-essential
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable