Friday, June 24, 2011

Installing LibreOffice in Debian Squeeze from Backports without a hitch


Strict Standards: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /home1/passjoe/public_html/debian/fp-plugins/bbcode/inc/stringparser.class.php on line 358

It’s not the least eventful package installation I’ve ever done in Linux and BSD, but tapping into Debian Backports to install the Document Foundation’s new LibreOffice suite and replace the formerly Oracle-controlled, now-in-limbo OpenOffice is fairly easy if you follow the steps, refrain from panic and just type in the letter “y” a few times.

I added the Backports repository to my sources, issued the Aptitude command and then watched as the system removed OpenOffice and replaced it with LibreOffice.

I didn’t use the Synaptic Package Manager for this installation. Instead I used Aptitude, which I tend to trust more when things get complicated.

————————————-

Here are my comments on the installation as well as the terminal session. In the short preamble, commands or text I entered in the system as well as their locations are in italic. Once the terminal output starts, my additions/comments are in bold.

————————————-

Installing LibreOffice from squeeze-backports

First, using the Debian Backports instructions as a reference, I added squeeze-backports to my sources.

To manage my growing list of repositories, instead of cramming everything into /etc/apt/sources.list (still not the worst idea, but I’m going another way) I have been creating separate files in /etc/apt/sources.list.d/ for all of my various repositories, and I did the same for Debian Backports, entering this repository line:

deb http://backports.debian.org/debian-backports squeeze-backports main

into this new file that you can create with either su to root or sudo:

/etc/apt/sources.list.d/squeeze-backports.list

Then I updated all repositories (I use Aptitude, you can use apt-get instead if you wish). I could have used sudo, but in this case I chose to use su, yielding root’s # prompt:

# aptitude update

————————————-

Then I issued the command to install LibreOffice:

# aptitude -t squeeze-backports install libreoffice
The following NEW packages will be installed:
libreoffice libreoffice-base{a} libreoffice-base-core{a}
libreoffice-calc{a} libreoffice-common{ab} libreoffice-core{a}
libreoffice-draw{a} libreoffice-emailmerge{a}
libreoffice-filter-binfilter{a} libreoffice-filter-mobiledev{a}
libreoffice-impress{a} libreoffice-java-common{a} libreoffice-math{a}
libreoffice-report-builder-bin{a} libreoffice-style-galaxy{a}
libreoffice-writer{a} xfonts-mathml{a}
The following packages will be upgraded:
ttf-opensymbol uno-libs3 ure{b}
3 packages upgraded, 17 newly installed, 0 to remove and 11 not upgraded.
Need to get 109 MB of archives. After unpacking 300 MB will be used.
The following packages have unmet dependencies:
libreoffice-common: Conflicts: openoffice.org-common (< 1:3.3.0~) but 1:3.2.1-11+squeeze2 is installed.
ure: Breaks: openoffice.org-core (< 1:3.3~) but 1:3.2.1-11+squeeze2 is installed.
The following actions will resolve these dependencies:

Remove the following packages:
1) gnome-office
2) openoffice.org
3) openoffice.org-base
4) openoffice.org-base-core
5) openoffice.org-calc
6) openoffice.org-common
7) openoffice.org-core
8) openoffice.org-draw
9) openoffice.org-emailmerge
10) openoffice.org-evolution
11) openoffice.org-filter-binfilter
12) openoffice.org-filter-mobiledev
13) openoffice.org-gcj
14) openoffice.org-gnome
15) openoffice.org-gtk
16) openoffice.org-help-en-us
17) openoffice.org-impress
18) openoffice.org-java-common
19) openoffice.org-math
20) openoffice.org-officebean
21) openoffice.org-pdfimport
22) openoffice.org-report-builder-bin
23) openoffice.org-style-galaxy
24) openoffice.org-style-tango
25) openoffice.org-thesaurus-en-us
26) openoffice.org-writer
27) python-uno

Keep the following packages at their current version:
28) libreoffice-emailmerge [Not Installed]

Leave the following dependencies unresolved:
29) gnome recommends gnome-office (= 1:2.30+7)
30) openoffice.org-help-en-us recommends openoffice.org-core (> 1:3.2.1) | l
31) openoffice.org-help-en-us recommends openoffice.org-java-common
32) openoffice.org-writer recommends openoffice.org-filter-binfilter
33) openoffice.org-writer recommends openoffice.org-java-common (>= 1:3.2.1~
34) openoffice.org-writer recommends openoffice.org-emailmerge
35) openoffice.org-writer recommends openoffice.org-math
36) openoffice.org recommends openoffice.org-filter-binfilter
37) libreoffice-writer recommends libreoffice-emailmerge

Accept this solution? [Y/n/q/?]

I answered “y”:

The following NEW packages will be installed:
libreoffice libreoffice-base{a} libreoffice-base-core{a}
libreoffice-calc{a} libreoffice-common{a} libreoffice-core{a}
libreoffice-draw{a} libreoffice-filter-binfilter{a}
libreoffice-filter-mobiledev{a} libreoffice-impress{a}
libreoffice-java-common{a} libreoffice-math{a}
libreoffice-report-builder-bin{a} libreoffice-style-galaxy{a}
libreoffice-writer{a} xfonts-mathml{a}
The following packages will be REMOVED:
bsh{u} bsh-gcj{u} gnome-office{a} libhsqldb-java-gcj{u} libwps-0.1-1{u}
openoffice.org{a} openoffice.org-base{a} openoffice.org-base-core{a}
openoffice.org-calc{a} openoffice.org-common{a} openoffice.org-core{a}
openoffice.org-draw{a} openoffice.org-emailmerge{a}
openoffice.org-evolution{a} openoffice.org-filter-binfilter{a}
openoffice.org-filter-mobiledev{a} openoffice.org-gcj{a}
openoffice.org-gnome{a} openoffice.org-gtk{a}
openoffice.org-help-en-us{a} openoffice.org-impress{a}
openoffice.org-java-common{a} openoffice.org-math{a}
openoffice.org-officebean{a} openoffice.org-pdfimport{a}
openoffice.org-report-builder-bin{a} openoffice.org-style-galaxy{a}
openoffice.org-style-tango{a} openoffice.org-thesaurus-en-us{a}
openoffice.org-writer{a} python-uno{a}
The following packages will be upgraded:
ttf-opensymbol uno-libs3 ure
The following packages are RECOMMENDED but will NOT be installed:
libreoffice-emailmerge
3 packages upgraded, 16 newly installed, 31 to remove and 10 not upgraded.
Need to get 109 MB of archives. After unpacking 118 MB will be freed.
Do you want to continue? [Y/n/?]

I again answered “y”:

Get:1 http://ftp.us.debian.org/debian/ squeeze/main xfonts-mathml all 4 [42.2 kB]
Get:2 http://backports.debian.org/debian-backports/ squeeze-backports/main ure amd64 1.7.0+LibO3.3.2-2~bpo60+1 [1,799 kB]
Get:3 http://backports.debian.org/debian-backports/ squeeze-backports/main uno-libs3 amd64 1.7.0+LibO3.3.2-2~bpo60+1 [1,623 kB]
Get:4 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-style-galaxy all 1:3.3.2-2~bpo60+1 [3,159 kB]
Get:5 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-common all 1:3.3.2-2~bpo60+1 [20.0 MB]
Get:6 http://backports.debian.org/debian-backports/ squeeze-backports/main ttf-opensymbol all 2:2.4.3+LibO3.3.2-2~bpo60+1 [406 kB]
Get:7 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-core amd64 1:3.3.2-2~bpo60+1 [41.3 MB]
Get:8 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-base-core amd64 1:3.3.2-2~bpo60+1 [1,219 kB]
Get:9 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-writer amd64 1:3.3.2-2~bpo60+1 [9,010 kB]
Get:10 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-calc amd64 1:3.3.2-2~bpo60+1 [6,588 kB]
Get:11 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-draw amd64 1:3.3.2-2~bpo60+1 [3,630 kB]
Get:12 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-impress amd64 1:3.3.2-2~bpo60+1 [976 kB]
Get:13 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-math amd64 1:3.3.2-2~bpo60+1 [703 kB]
Get:14 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-java-common all 1:3.3.2-2~bpo60+1 [4,285 kB]
Get:15 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-base amd64 1:3.3.2-2~bpo60+1 [3,216 kB]
Get:16 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-report-builder-bin amd64 1:3.3.2-2~bpo60+1 [1,350 kB]
Get:17 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-filter-mobiledev all 1:3.3.2-2~bpo60+1 [384 kB]
Get:18 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice amd64 1:3.3.2-2~bpo60+1 [292 kB]
Get:19 http://backports.debian.org/debian-backports/ squeeze-backports/main libreoffice-filter-binfilter amd64 1:3.3.2-2~bpo60+1 [9,165 kB]
Fetched 109 MB in 1min 6s (1,631 kB/s)
Reading changelogs… Done
(Reading database … 171672 files and directories currently installed.)
Removing openoffice.org-gcj …
Removing bsh-gcj …
Removing bsh …
Removing gnome-office …
Removing libhsqldb-java-gcj …
Removing openoffice.org …
Removing openoffice.org-help-en-us …
Removing openoffice.org-writer …
Removing libwps-0.1-1 …
Removing openoffice.org-report-builder-bin …
Removing openoffice.org-evolution …
file:///usr/lib/openoffice/basis3.2/program/libevoablx.so
revoke component ‘file:///usr/lib/openoffice/basis3.2/program/libevoablx.so’ from registry ‘/var/lib/openoffice/basis3.2/program/services.rdb’ successful!
Removing openoffice.org-base …
Removing openoffice.org-calc …
Removing openoffice.org-base-core …
Removing openoffice.org-pdfimport …
Disabling: PDF Import
Disabling: pdf_types.xcu
Disabling: pdf_import_filter.xcu
Disabling: pdfimport.uno.so
Disabling: xpdfimport
Disabling: PDFImport

unopkg done.
Removing openoffice.org-officebean …
Removing openoffice.org-filter-mobiledev …
Removing openoffice.org-java-common …
Removing openoffice.org-emailmerge …
Disabling: mailmerge.py

unopkg done.
Removing python-uno …
Removing openoffice.org-style-tango …
Removing openoffice.org-math …
Removing openoffice.org-impress …
Removing openoffice.org-gnome …
Removing openoffice.org-gtk …
Removing openoffice.org-filter-binfilter …
file:///usr/lib/openoffice/basis3.2/program/libbf_migratefilterlx.so
revoke component ‘file:///usr/lib/openoffice/basis3.2/program/libbf_migratefilterlx.so’ from registry ‘/var/lib/openoffice/basis3.2/program/services.rdb’ successful!
Removing openoffice.org-draw …
Removing openoffice.org-thesaurus-en-us …
Removing openoffice.org-core …
Removing openoffice.org-common …
Removing openoffice.org-style-galaxy …
Processing triggers for menu …
Processing triggers for man-db …
Processing triggers for desktop-file-utils …
Processing triggers for gnome-menus …
Processing triggers for shared-mime-info …
Processing triggers for hicolor-icon-theme …
(Reading database … 167961 files and directories currently installed.)
Preparing to replace ure 1.6.1+OOo3.2.1-11+squeeze2 (using …/ure_1.7.0+LibO3.3.2-2~bpo60+1_amd64.deb) …
Unpacking replacement ure …
Preparing to replace uno-libs3 1.6.1+OOo3.2.1-11+squeeze2 (using …/uno-libs3_1.7.0+LibO3.3.2-2~bpo60+1_amd64.deb) …
Unpacking replacement uno-libs3 …
Selecting previously deselected package libreoffice-style-galaxy.
Unpacking libreoffice-style-galaxy (from …/libreoffice-style-galaxy_1%3a3.3.2-2~bpo60+1_all.deb) …
Selecting previously deselected package libreoffice-common.
Unpacking libreoffice-common (from …/libreoffice-common_1%3a3.3.2-2~bpo60+1_all.deb) …
Preparing to replace ttf-opensymbol 1:3.2.1-11+squeeze2 (using …/ttf-opensymbol_2%3a2.4.3+LibO3.3.2-2~bpo60+1_all.deb) …
Unpacking replacement ttf-opensymbol …
Selecting previously deselected package libreoffice-core.
Unpacking libreoffice-core (from …/libreoffice-core_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-base-core.
Unpacking libreoffice-base-core (from …/libreoffice-base-core_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-writer.
Unpacking libreoffice-writer (from …/libreoffice-writer_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-calc.
Unpacking libreoffice-calc (from …/libreoffice-calc_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-draw.
Unpacking libreoffice-draw (from …/libreoffice-draw_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-impress.
Unpacking libreoffice-impress (from …/libreoffice-impress_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-math.
Unpacking libreoffice-math (from …/libreoffice-math_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-java-common.
Unpacking libreoffice-java-common (from …/libreoffice-java-common_1%3a3.3.2-2~bpo60+1_all.deb) …
Selecting previously deselected package libreoffice-base.
Unpacking libreoffice-base (from …/libreoffice-base_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-report-builder-bin.
Unpacking libreoffice-report-builder-bin (from …/libreoffice-report-builder-bin_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-filter-mobiledev.
Unpacking libreoffice-filter-mobiledev (from …/libreoffice-filter-mobiledev_1%3a3.3.2-2~bpo60+1_all.deb) …
Selecting previously deselected package libreoffice.
Unpacking libreoffice (from …/libreoffice_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package libreoffice-filter-binfilter.
Unpacking libreoffice-filter-binfilter (from …/libreoffice-filter-binfilter_1%3a3.3.2-2~bpo60+1_amd64.deb) …
Selecting previously deselected package xfonts-mathml.
Unpacking xfonts-mathml (from …/xfonts-mathml_4_all.deb) …
Processing triggers for man-db …
Processing triggers for hicolor-icon-theme …
Processing triggers for shared-mime-info …
Processing triggers for desktop-file-utils …
Processing triggers for gnome-menus …
Processing triggers for fontconfig …
Processing triggers for menu …
Setting up uno-libs3 (1.7.0+LibO3.3.2-2~bpo60+1) …
Setting up ure (1.7.0+LibO3.3.2-2~bpo60+1) …
Setting up ttf-opensymbol (2:2.4.3+LibO3.3.2-2~bpo60+1) …
Setting up xfonts-mathml (4) …
Setting up libreoffice-style-galaxy (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-common (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-core (1:3.3.2-2~bpo60+1) …
file:///usr/lib/libreoffice/basis3.3/program/libbf_migratefilterlx.so
register component ‘file:///usr/lib/libreoffice/basis3.3/program/libbf_migratefilterlx.so’ in registry ‘/var/lib/libreoffice/basis3.3/program/services.rdb’ successful!
Setting up libreoffice-base-core (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-writer (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-calc (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-draw (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-impress (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-math (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-java-common (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-base (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-report-builder-bin (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-filter-mobiledev (1:3.3.2-2~bpo60+1) …
Setting up libreoffice (1:3.3.2-2~bpo60+1) …
Setting up libreoffice-filter-binfilter (1:3.3.2-2~bpo60+1) …
file:///usr/lib/libreoffice/basis3.3/program/libbf_migratefilterlx.so
register component ‘file:///usr/lib/libreoffice/basis3.3/program/libbf_migratefilterlx.so’ in registry ‘/var/lib/libreoffice/basis3.3/program/services.rdb’ successful!
Processing triggers for menu …

Current status: 10 updates [-4].
root@lenovo:/etc/apt/sources.list.d#

————————————-

That was it. I now have LibreOffice 3.3.2 on my Debian Squeeze system.

  1. Nick Dreyer

    Wednesday, August 10, 2011 - 19:10:43

    I see pyuno is removed and nothing put in its place. Does LibreOffice not support python macros?


Strict Standards: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /home1/passjoe/public_html/debian/fp-plugins/bbcode/inc/stringparser.class.php on line 358

Strict Standards: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /home1/passjoe/public_html/debian/fp-plugins/bbcode/inc/stringparser.class.php on line 358

About

Steven Rosenberg writes about many things in many places, including Debian (and FlatPress) right here.

Categories


Strict Standards: Only variables should be passed by reference in /home1/passjoe/public_html/debian/fp-includes/smarty/plugins/function.list_categories.php on line 33

Strict Standards: Only variables should be passed by reference in /home1/passjoe/public_html/debian/fp-includes/smarty/plugins/function.list_categories.php on line 33

Strict Standards: Only variables should be passed by reference in /home1/passjoe/public_html/debian/fp-includes/smarty/plugins/function.list_categories.php on line 33

Strict Standards: Only variables should be passed by reference in /home1/passjoe/public_html/debian/fp-includes/core/core.fpdb.class.php on line 289

Admin area