Libreoffice don't start

Hi all,
I use Libreoffice Factory repository, and I have installed 4.3 version. For some week I can’t start libreoffice. I get the following message in terminal:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Provided a recursive symlink to a icon theme directory that could not be resolved 

Could you tell me where is the problem, or with which repository I can install back the 4.2 version?

Thanks

LibreOffice 4.2 for openSUSE 13.1:

http://download.opensuse.org/repositories/LibreOffice:/4.2/openSUSE_13.1/

Adjust repository location accordingly if you are using 12.3

And what is your openSUSE version???

soothes hcvv with some palm fronds :smiley:

it’s 13.1.

4.2 works fine.
Thanks

Note that using beta versions from Factory repos especially for productivity software like this is just… a bad idea.

I encountered the same error message.

The short answer: install all the libreoffice-icon-theme-* packages (except the source package).

A longer answer: In my case, in /usr/lib64/libreoffice/share/config/ there was an unresolved symbolic link.

The explorer’s answer: First, I did

strace -f oowriter 2> ~/oowriter.strace

Then, I did a less on ~/oowriter.strace, searched for “recursive symlink,” and searched back a few lines for the failing system call. This told me Libreoffice was looking for /usr/lib64/libreoffice/share/config/images_hicontrast.zip. I did an ls -l in that directory, found a symbolic link which resolved, and did

rpm -qf /usr/share/libreoffice/share/config/images_oxygen.zip

which showed the package containing a similar file. From there, a

zypper se libreoffice-icon-theme

showed the packages which were missing.

On my 13.1, x86_64 system after installing from http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_13.1/ I get these errors when I try to start libreoffice:


**$libreoffice**
/usr/bin/X11/libreoffice: line 49: cd: ../lib64/libreoffice/program: No such file or directory
/usr/bin/X11/libreoffice: line 156: /usr/bin/X11/oosplash: No such file or directory

I see that you have recommended using the 4.2 repository rather than the Stable one. What, then is the Stable repository for?

In any case, I deleted the packages with YaST, added the http://download.opensuse.org/repositories/LibreOffice:/4.2/openSUSE_13.1/ repository, disabled the http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_13.1/ repository, and reinstalled the LibreOffice packages; but I get the same results (except the line#s are different):


**$libreoffice base**
/usr/bin/X11/libreoffice: line **54**: cd: ../lib64/libreoffice/program: No such file or directory
/usr/bin/X11/libreoffice: line **164**: /usr/bin/X11/oosplash: No such file or directory

On 2014-10-07 07:16, jlturriff wrote:

> I see that you have recommended using the 4.2 repository rather than
> the Stable one. What, then is the Stable repository for?

Unclear.

The information on http://en.opensuse.org/LibreOffice is no
longer correct. Both the LibreOffice:Stable LibreOffice:Unstable repos
appear abandoned. The Unstable repo has been de facto replaced by
LibreOffice:Factory.

if you look at the OBS, unstable is in failed state and activity has
ceased. “Stable” does build, but the version is the same as the official
one, instead of being the most recent stable one. It is probably on
LibreOffice:4.2 instead.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

The LibreOffice:Stable contains the LibreOffice version from the latest stable openSUSE release.
It it used for preparing updates for the latest stable openSUSE release.
As you are using the latest stable openSUSE release, there is no sense in adding that repo, other to get the updates a bit earlier.
Though I suppose there won’t be any updates for 4.1 any more anyway.

But when openSUSE 13.2 is released, LibreOffice:Stable will then contain the LibreOffice from openSUSE 13.2, i.e. 4.3.x.
Then you can use it to upgrade LibreOffice on your 13.1 system.

What libreoffice packages do you have installed now?

rpm -qa libreoffice*

Does /usr/lib64/libreoffice/program/ actually exist?

On 2014-10-08 04:26, wolfi323 wrote:
>
> jlturriff;2668237 Wrote:
>> I see that you have recommended using the 4.2 repository rather than
>> the Stable one. What, then is the Stable repository for?
> The LibreOffice:Stable contains the LibreOffice version from the latest
> stable openSUSE release.

That’s not what the documentation says, or what happened up to a year or
a bit more.

They built the new LO releases, fresh from the upstream oven, on the
LibreOffice:Unstable repo. After a period of about a month, maybe less,
the version appeared on the LibreOffice:Stable repo, so that everybody
could update to a newer but stable LO version. I have done that often,
and previously with OpenOffice.

What you say is not documented. It may be what they are doing now, but
it is not documented.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Okay.

What libreoffice packages do you have installed now?

rpm -qa libreoffice*


**$rpm -qa libreoffice***
libreoffice-sdk-doc-4.2.6.2-17.1.x86_64
libreoffice-icon-theme-hicontrast-4.2.6.2-17.1.noarch
libreoffice-sdk-4.2.6.2-17.1.x86_64
libreoffice-pyuno-4.2.6.2-17.1.x86_64
libreoffice-calc-4.2.6.2-17.1.x86_64
libreoffice-impress-4.2.6.2-17.1.x86_64
libreoffice-officebean-4.2.6.2-17.1.x86_64
libreoffice-icon-theme-oxygen-4.2.6.2-17.1.noarch
libreoffice-icon-theme-crystal-4.2.6.2-17.1.noarch
libreoffice-base-4.2.6.2-17.1.x86_64
libreoffice-icon-theme-galaxy-4.2.6.2-17.1.noarch
libreoffice-filters-optional-4.2.6.2-17.1.x86_64
libreoffice-4.2.6.2-17.1.x86_64
libreoffice-draw-4.2.6.2-17.1.x86_64
libreoffice-writer-extensions-4.2.6.2-17.1.x86_64
libreoffice-branding-upstream-4.2.6.2-17.1.noarch
libreoffice-icon-theme-sifr-4.2.6.2-17.1.noarch
libreoffice-icon-theme-tango-4.2.6.2-17.1.noarch
libreoffice-calc-extensions-4.2.6.2-17.1.x86_64
libreoffice-math-4.2.6.2-17.1.x86_64
libreoffice-templates-en-3.3-10.1.4.noarch
libreoffice-templates-labels-letter-1.0.1-9.1.2.noarch
libreoffice-l10n-en-4.2.6.2-17.1.noarch
libreoffice-writer-4.2.6.2-17.1.x86_64
libreoffice-kde4-4.2.6.2-17.1.x86_64

Does /usr/lib64/libreoffice/program/ actually exist?

Yes. I can execute libreoffice by using the target of the symbolic link, but the KDE launcher is pointing to the symbolic link, not its target.

Which symbolic link do you mean now?
/usr/bin/libreoffice?

I have this here and it works fine:

wolfi@amiga:~> ll /usr/bin/libreoffice
lrwxrwxrwx 1 root root 36  3. Okt 21:53 /usr/bin/libreoffice -> ../lib64/libreoffice/program/soffice

Maybe try to remove that symlink and reinstall the packages.

And by the way, all current LO packages work fine here: 4.3 from LibreOffice:Factory, 4.2 from LibreOffice:4.2, and 4.1 that’s included in openSUSE 13.1.

With “documentation” you mean this, I suppose?
https://en.opensuse.org/LibreOffice

Well, yes, this obviously does not reflect the current situation.

But what I wrote is clear from looking at the repos.

So either the page is outdated and should be corrected, or the maintainers just chose to “ignore” that temporarily for now.
When 13.2 is released, LO:4.2 will be removed anyway and LO:Stable will again contain the latest stable LO version, i.e. 3.2. (At least that’s what I think will happen. I am not a maintainer myself.)

LO:Unstable just makes no sense at the moment, as there is no need whatsoever for unstable testing packages. I think I read a statement regarding this by one of the maintainers somewhere, but I don’t remember now where. If I can find it I will post a link.

PS: One thing I did find is the description of the LibreOffice:Factory project/repo:

The packages here are used for publishing to openSUSE:Factory.
They are also used for curious user to test latest and greatest features available in the office suite.

There is also counterpart LibreOffice:Unstable project which is just used for testing alpha releases of next major update.

(https://build.opensuse.org/project/show/LibreOffice:Factory)

On 2014-10-09 21:06, wolfi323 wrote:
>
> robin_listas;2668415 Wrote:
>> That’s not what the documentation says, or what happened up to a year or
>> a bit more.
> With “documentation” you mean this, I suppose?
> https://en.opensuse.org/LibreOffice

Yep.

That’s where people wanting to properly add repos go looking.

http://en.opensuse.org/Package_repositories

http://en.opensuse.org/Additional_package_repositories

the latter explicitly links to “LibreOffice STABLE”:

http://en.opensuse.org/Additional_package_repositories#LibreOffice_STABLE

which reads:


LibreOffice STABLE

Updated and stable LibreOffice
Version:
Tumbleweedhttp://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_Tumbleweed/
Version:
13.1http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_13.1/
Version:
12.3http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_12.3/
Version:
12.2http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_12.2/


Where you can see that the same libreoffice-base-4.1.6 is available for
12.2, 12.3, 13.1, and Tumbleweed (12.2 came with 3.5.4, so indeed we got
updates to libreoffice that way not long ago).

> Well, yes, this obviously does not reflect the current situation.

Nope :slight_smile:

> But what I wrote is clear from looking at the repos.

Not to me, so thanks for explaining :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I looked again at my KDE menu entries for the LibreOffice components, and they do not have specific paths coded. If I invoke LibreOffice the way they do, I get the error, but if I enter e.g. /usr/bin/libreoffice --base it works. I’ve decided that the easiest fix is to put the full path into the menu entries, which I have verified to work; so I think we can consider this solved.

Thank you all for your suggestions, and the clarifications about the repositories.

On 2014-10-11 07:46, jlturriff wrote:

> I looked again at my KDE menu entries for the LibreOffice components,
> and they do not have specific paths coded. If I invoke LibreOffice the
> way they do, I get the error, but if I enter e.g. /usr/bin/libreoffice
> --base
it works. I’ve decided that the easiest fix is to put the full
> path into the menu entries, which I have verified to work; so I think we
> can consider this solved.

Ah. That may mean that you have two or more versions installed of the
same software, and the one that runs by default fails.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Possible. Or fragments of an old installation still there.

I would start by checking which “libreoffice” is actually started by default:

which libreoffice

A thing that just came to my mind, you posted this:

$libreoffice base
/usr/bin/X11/libreoffice: line 54: cd: ../lib64/libreoffice/program: No such file or directory
/usr/bin/X11/libreoffice: line 164: /usr/bin/X11/oosplash: No such file or directory

I can reproduce exactly those errors when explicitely starting /usr/bin/X11/libreoffice, or adding /usr/bin/X11 at the top of the $PATH.

So probably your $PATH is set wrong. /usr/bin should come before /usr/bin/X11 (the latter is only a symlink to the former anyway).

wolfi@amiga:~> echo $PATH
/usr/lib64/mpi/gcc/openmpi/bin:/home/wolfi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/usr/sbin:/usr/sbin