libreoffice - how to install?


23 posts
by spchong » Thu Jun 28, 2012 1:51 pm
Hi everyone,

I just received my Pi 2 days ago, and I had been waiting for 2 months!

When it reached me, I had everything ready, HD monitor, power adaptor, SD card with Debian Squeeze. I even learnt Scratch (well, not exactly a kid anymore), Python, Processing for this wonderful Singapore Dollars $45 PC. It worked the first time I switched it on (in my office) - that was a good experience for me.

Then I took it home and use RCA cable (somehow, the TV HD connector did not seem to work) and the image on my TV was lousy. I used wired internet connection at home (office is all wireless) to download Libreoffice, 32 bits, Debian, US English and tried to install.

I extracted the zipped file, right-clicked the DEBS to open in Terminal, typed sudo dpkg -i *.deb and got a series of error message, saying "package architecture (i386) does not match system (armel)".

Any idea what could be the cause of this error? Is Libreoffice not ready for Pi?

Thanks in advance for any kind of advice...

By the way, back in my office, with the HD monitor, I could read the error message. At home, I thought I had succesfully installed and searched high and low for the Libreoffice icons...!

The Scratch is working fine and I am creating a tank game and will try to use the GPIO with a button & joystick to build an arcade game.
Posts: 8
Joined: Thu Jun 28, 2012 1:37 pm
by grumpyoldgit » Thu Jun 28, 2012 2:19 pm
It is unclear to me where you got libreoffice from but I am about 110% it is not compatible with the Pi. You just can't download random applications, even if the word Debian is mentioned, and expect them to work on the Pi. They have to be compiled for the Pi. Try

sudo apt-get install libreoffice
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by rpdom » Thu Jun 28, 2012 3:25 pm
Installing software for Debian is a lot easier that the process you went through. You have downloaded a PC (intel/AMD) version of libreoffice and it won't work on an Arm processor like the one in your Pi.

At the command prompt type "sudo apt-get update" (without the quotes), then "sudo apt-get install libreoffice". That will download all the software needed to run the full Libreoffice suite on your Pi and install it for you. If running as the root user you should omit the "sudo" part of the command.
User avatar
Posts: 4122
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by grumpyoldgit » Thu Jun 28, 2012 3:28 pm
I think I just said all that, perhaps not as eloquently.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by maddogdave » Thu Jun 28, 2012 3:33 pm
I've not tried installing that version, but the similar OpenOffice is available and will work. But don't expect it to speed through any complex spreadsheets.
Link below is the general guide, there is a post on one of the other wiki pages about openoffice which is where I got the information from originally, but I can't find the link right now.

Try "openoffice.org" as the name.

http://elinux.org/Add_software_to_Raspberry_pi
Dave
Posts: 39
Joined: Sat Dec 17, 2011 6:05 pm
Location: Berkshire England
by grumpyoldgit » Thu Jun 28, 2012 3:45 pm
Though it is worth pointing out that you can create a 1000 (100x10) cell spreadsheet with dependencies through all cells, and if a single cell is changed the rest will be updated in less than a second.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by rpdom » Thu Jun 28, 2012 3:52 pm
@maddogdave Ah, good point. Debian Squeeze still uses openoffice.org, while Debian Wheezy uses libreoffice. It's been a few years since I've used Squeeze seriously.

@grumpyoldgit We must have been typing our replies at the same time :-)
User avatar
Posts: 4122
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by itsonlyme » Thu Jun 28, 2012 3:57 pm
I have libreoffice installed under Wheezy. installed using Synaptic with the default repositorys. Nothing special. No problems with running.

Malcolm
Posts: 120
Joined: Sun Feb 12, 2012 12:43 pm
by spchong » Thu Jun 28, 2012 4:17 pm
Thanks to everyone! I learnt that I should go for open office instead of libreoffice for Debian Squeeze.

By the way, my libreoffice was downloaded from libreoffice.rrg straight into my RPi, extracted, then in the Terminal opened, I type sudo dpkg -i *.deb, exactly as instructed by libreoffice help -> installation.
Posts: 8
Joined: Thu Jun 28, 2012 1:37 pm
by spchong » Thu Jun 28, 2012 4:24 pm
Will try the "apt-get update" and then "sudo apt-get install libreoffice" before switching to open office. Thanks!
Posts: 8
Joined: Thu Jun 28, 2012 1:37 pm
by jamesh » Thu Jun 28, 2012 5:28 pm
spchong wrote:Thanks to everyone! I learnt that I should go for open office instead of libreoffice for Debian Squeeze.

By the way, my libreoffice was downloaded from libreoffice.rrg straight into my RPi, extracted, then in the Terminal opened, I type sudo dpkg -i *.deb, exactly as instructed by libreoffice help -> installation.


The problem with this way is that the downloaded version from the website is build for a different processor architecture than the Raspi. The Raspi uses an Arm processor, whilst you downloaded one for the x86 processor family. Arm PC's are pretty rare when compared with the x86 PC, so its not supplied on the Libreoffice website.

The apt-get way downloaded the correct one for you.
Volunteer at the Raspberry Pi Foundation, helper at Picademy September, October, November 2014.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 12355
Joined: Sat Jul 30, 2011 7:41 pm
by spchong » Fri Jun 29, 2012 2:00 am
You are right, the message "package architecture (i386) does not match system (armel)" told me that I used something meant for PC on Pi (Arm).

Thanks everyone! Will try over the weekend, and install other stuffs as well - Processing, XBMC...
Posts: 8
Joined: Thu Jun 28, 2012 1:37 pm
by spchong » Sun Jul 01, 2012 1:13 pm
Whole weekend was spent working on the Raspberry Pi. So far managed to do 1. Resize partitions to claim back unused part of SD card - OS image is 2G, SD card is 4G. 2. Sudo apt-get install openoffice (Writer, Impress, Calc = Words, Powerpoint, Excel) & VLC (which still can't work - no sound- because of ALSA problem). 3. Use Medori to surf web, access email & Facebook. (Still need a camera board before can use Skype - Pi Foundation is still trying.) 4. Write and run simple programs using Scratch & Python. (Still need to get GPIO code to compile before I can interface to sensors and actuators.) What else? Gaming? Wifi? Wireless mouse & keyboard? I have so much fun doing all these...

Thanks to all you helpful guys!
Posts: 8
Joined: Thu Jun 28, 2012 1:37 pm
by Meccanut » Sun Jul 01, 2012 7:14 pm
Have I got this right from the posts ?

1. Dont install libreoffice to an Rpi running Debian Squeeze as an OS

2. Instead install openoffice with the following command at the command prompt:

'sudo apt-get install openoffice'

Is that correct ??
Posts: 6
Joined: Sun Jul 01, 2012 5:51 pm
by alexeames » Sun Jul 01, 2012 8:00 pm
Meccanut wrote:Have I got this right from the posts ?

1. Dont install libreoffice to an Rpi running Debian Squeeze as an OS

2. Instead install openoffice with the following command at the command prompt:

'sudo apt-get install openoffice'

Is that correct ??


Not really.

You can install either package on either squeeze or wheezy, but make sure you use the proper installation method, either apt-get or a package manager like synaptic.

But, to be honest, Wheezy is so much better than squeeze on the Pi, I wouldn't bother using squeeze at all any more.
Alex Eames RasPi.TV HDMIPi.com RasP.iO
User avatar
Posts: 2096
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
by rpdom » Sun Jul 01, 2012 8:31 pm
Meccanut wrote:Have I got this right from the posts ?

1. Dont install libreoffice to an Rpi running Debian Squeeze as an OS

2. Instead install openoffice with the following command at the command prompt:

'sudo apt-get install openoffice'

Is that correct ??


Nearly...

In Squeeze you need to 'sudo apt-get install openoffice.org'

When you upgrade to Wheezy it will automatically install libreoffice instead.
User avatar
Posts: 4122
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by Meccanut » Sun Jul 01, 2012 9:02 pm
Thanks for that clarification
Posts: 6
Joined: Sun Jul 01, 2012 5:51 pm
by elatllat » Tue Aug 21, 2012 5:32 pm
libreoffice won't install on the official rpi wheezy image due to missing "ure" package.
Posts: 1212
Joined: Sat Dec 17, 2011 5:05 pm
by rpdom » Tue Aug 21, 2012 6:06 pm
"ure" doesn't appear to be in the Raspian repository.

I'd suggest asking for it on the "Packages from debian you want to see in raspbian repository" http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=12261.

I thought I had installed libreoffice on my raspi. I must have been wrong. I'll check next time I fire it up.
User avatar
Posts: 4122
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by r4049zt » Tue Aug 21, 2012 9:10 pm
Open Office might be a bit big and bloated for rPi ideals.
IF you want a basic wordprocessor and spreadsheet, sufficient is
sudo apt-get install abiword
sudo apt-get install gnumeric

Those can read and write .doc and .xls formats, but have less clutterware than the full open office mammoth. The choice is yours.
User avatar
Posts: 93
Joined: Sat Jul 21, 2012 1:36 pm
by dwreid55 » Wed Sep 05, 2012 10:34 pm
As of this date LibreOffice is still not available for install via the standard Wheezy distro. It would be really nice if it were but there is a missing dependency. Any idea how to request this?
Posts: 12
Joined: Wed Jul 11, 2012 3:13 am
by jackokring » Wed Sep 05, 2012 10:50 pm
I think the ure package is to do with the SDK option install. It may not be in the general source.
Pi=B256R0USB CL4SD8GB Raspbian Stock. https://sites.google.com/site/rubikcompression/strictly-long https://dl.dropboxusercontent.com/u/1615413/Own%20Work/Leptronics.pdf https://groups.google.com/forum/#!topic/comp.compression/t22ct_BKi9w
User avatar
Posts: 784
Joined: Tue Jul 31, 2012 8:27 am
Location: London, UK
by wallarug » Thu Sep 06, 2012 7:42 am
r4049zt wrote:Open Office might be a bit big and bloated for rPi ideals.
IF you want a basic wordprocessor and spreadsheet, sufficient is
sudo apt-get install abiword
sudo apt-get install gnumeric

Those can read and write .doc and .xls formats, but have less clutterware than the full open office mammoth. The choice is yours.


What if I want a pptx viewer? any ideas?
RPi Hardware Guide

App Store: https://itunes.apple.com/us/app/rpi-hardware-guide/id723108328?ls=1&mt=8
Play Store: https://play.google.com/store/apps/details?id=org.cmdenterprises.rpihardwareguide

http://www.youtube.com/user/CMDenterprises
User avatar
Posts: 457
Joined: Mon May 14, 2012 8:21 am