After install inkscape on Ubuntu 14.04 got error "g_variant_parse_error_quark"

Asked by Shaliko on 2014-07-15

After install inkscape on Ubuntu 14.04 got error

shaliko:~# inkscape
inkscape: symbol lookup error: /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1: undefined symbol: g_variant_parse_error_quark

Installed by common instructions:

sudo apt-get update
sudo apt-get install inkscape

Tried update all dependencies libs, but this is not solve my issue. Any recommendations?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Shaliko
Solved:
2014-07-15
Last query:
2014-07-15
Last reply:
2014-07-15
Manfred Hampl (m-hampl) said : #1

What is the output of the terminal commands

uname -a
lsb_relase -a
apt-cache policy inkscape libglibmm-2.4-1c2a

Shaliko (shaliko) said : #2

uname -a
Linux hh-app3 3.15.4-x86_64-linode45 #1 SMP Mon Jul 7 08:42:36 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

Output of the terminal commands:

sb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty

 apt-cache policy inkscape libglibmm-2.4-1c2a
inkscape:
  Installed: 0.48.4-3ubuntu2
  Candidate: 0.48.4-3ubuntu2
  Version table:
 *** 0.48.4-3ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
libglibmm-2.4-1c2a:
  Installed: 2.39.93-0ubuntu1
  Candidate: 2.39.93-0ubuntu1
  Version table:
 *** 2.39.93-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Why are you running GUI applications as root? Especially when it's not needed......

Shaliko (shaliko) said : #4

Just example that inkscape not working. I use ruby script for convert SVG to PNG through inkscape.

Example: "inkscape -w 38 -h 38 -f path/to/file -e path/to/file" =>

inkscape: symbol lookup error: /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1: undefined symbol: g_variant_parse_error_quark

Manfred Hampl (m-hampl) said : #5

What is the output of

ldd inkscape

Shaliko (shaliko) said : #6

Output:

 ldd /usr/bin/inkscape
 linux-vdso.so.1 => (0x00007fff4adfe000)
 libgtkmm-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libgtkmm-2.4.so.1 (0x00007f1dbce4a000)
 libatkmm-1.6.so.1 => /usr/lib/x86_64-linux-gnu/libatkmm-1.6.so.1 (0x00007f1dbcc02000)
 libgdkmm-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libgdkmm-2.4.so.1 (0x00007f1dbc9b6000)
 libpangomm-1.4.so.1 => /usr/lib/x86_64-linux-gnu/libpangomm-1.4.so.1 (0x00007f1dbc78c000)
 libglibmm-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1 (0x00007f1dbc51e000)
 libcairomm-1.0.so.1 => /usr/lib/x86_64-linux-gnu/libcairomm-1.0.so.1 (0x00007f1dbc2fa000)
 libxslt.so.1 => /usr/lib/x86_64-linux-gnu/libxslt.so.1 (0x00007f1dbc0bd000)
 libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f1dbbd57000)
 libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f1dbbb51000)
 libgtkspell.so.0 => /usr/lib/libgtkspell.so.0 (0x00007f1dbb949000)
 libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007f1dbb30d000)
 libgdk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 (0x00007f1dbb05a000)
 libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0 (0x00007f1dbae41000)
 libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0 (0x00007f1dbac31000)
 libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x00007f1dbaa0c000)
 libcairo.so.2 => /usr/local/lib/libcairo.so.2 (0x00007f1dba6cc000)
 libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0 (0x00007f1dba46f000)
 libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x00007f1dba225000)
 libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x00007f1db9fcd000)
 libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00007f1db9d05000)
 libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00007f1db99ae000)
 libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f1db9788000)
 libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00007f1db9328000)
 libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0x00007f1db90db000)
 libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1db8da6000)
 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1db8b8d000)
 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1db8988000)
 libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f1db8779000)
 libpopt.so.0 => /lib/x86_64-linux-gnu/libpopt.so.0 (0x00007f1db856d000)
 libaspell.so.15 => /usr/lib/libaspell.so.15 (0x00007f1db82a9000)
 libgnomevfs-2.so.0 => /usr/lib/x86_64-linux-gnu/libgnomevfs-2.so.0 (0x00007f1db8041000)
 libwpg-0.2.so.2 => /usr/lib/libwpg-0.2.so.2 (0x00007f1db7e15000)
 libwpd-0.9.so.9 => /usr/lib/libwpd-0.9.so.9 (0x00007f1db7b4a000)
 libwpd-stream-0.9.so.9 => /usr/lib/libwpd-stream-0.9.so.9 (0x00007f1db7934000)
 libMagick++.so.5 => /usr/lib/x86_64-linux-gnu/libMagick++.so.5 (0x00007f1db76cc000)
 libgc.so.1 => /usr/lib/x86_64-linux-gnu/libgc.so.1 (0x00007f1db745f000)
 liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f1db720a000)
 libpoppler.so.44 => /usr/lib/x86_64-linux-gnu/libpoppler.so.44 (0x00007f1db6dae000)
 libpoppler-glib.so.8 => /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8 (0x00007f1db6b6a000)
 libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1db6866000)
 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1db6560000)
 libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1db6349000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1db612b000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1db5d65000)
 libgiomm-2.4.so.1 => /usr/lib/x86_64-linux-gnu/libgiomm-2.4.so.1 (0x00007f1db59e4000)
 libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f1db57c2000)
 libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x00007f1db55bd000)
 liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f1db539b000)
 libenchant.so.1 => /usr/lib/x86_64-linux-gnu/libenchant.so.1 (0x00007f1db518e000)
 libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f1db4f88000)
 libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x00007f1db4bc5000)
 libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f1db49ba000)
 libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f1db47b7000)
 libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f1db45a6000)
 libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f1db439c000)
 libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f1db4192000)
 libXcomposite.so.1 => /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f1db3f8f000)
 libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f1db3d8b000)
 libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f1db3b79000)
 libffi.so.6 => /usr/local/lib/../lib/libffi.so.6 (0x00007f1db396b000)
 libgthread-2.0.so.0 => /usr/local/lib/../lib/libgthread-2.0.so.0 (0x00007f1db3769000)
 libharfbuzz.so.0 => /usr/local/lib/../lib/libharfbuzz.so.0 (0x00007f1db3516000)
 librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1db330d000)
 libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f1db30e3000)
 libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f1db2ed3000)
 libpixman-1.so.0 => /usr/local/lib/../lib/libpixman-1.so.0 (0x00007f1db2941000)
 libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f1db2726000)
 libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f1db2506000)
 /lib64/ld-linux-x86-64.so.2 (0x00007f1dbd494000)
 libgconf-2.so.4 => /usr/lib/x86_64-linux-gnu/libgconf-2.so.4 (0x00007f1db22d7000)
 libdbus-glib-1.so.2 => /usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2 (0x00007f1db20af000)
 libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f1db1e6a000)
 libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f1db1bac000)
 libavahi-glib.so.1 => /usr/lib/x86_64-linux-gnu/libavahi-glib.so.1 (0x00007f1db19a7000)
 libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f1db179b000)
 libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f1db158a000)
 libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f1db1386000)
 libMagickCore.so.5 => /usr/lib/x86_64-linux-gnu/libMagickCore.so.5 (0x00007f1db0ee7000)
 libMagickWand.so.5 => /usr/lib/x86_64-linux-gnu/libMagickWand.so.5 (0x00007f1db0bd2000)
 libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f1db0960000)
 libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f1db070b000)
 libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f1db0506000)
 libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f1db02ff000)
 libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f1db0080000)
 libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f1dafe6b000)
 libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f1dafc29000)
 liblqr-1.so.0 => /usr/lib/x86_64-linux-gnu/liblqr-1.so.0 (0x00007f1dafa11000)
 libfftw3.so.3 => /usr/lib/x86_64-linux-gnu/libfftw3.so.3 (0x00007f1daf618000)
 libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f1daf40e000)
 libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f1daf1ff000)
 libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f1daeffa000)

Manfred Hampl (m-hampl) said : #7

What is the output of

sudo updatedb
locate libglib-2.0.so.0

ls -l /lib/x86_64-linux-gnu/libglib-2.0.so.*
ls -l /usr/local/lib/libglib-2.0.so.*

Shaliko (shaliko) said : #8

Output:

root@hh-app3:~# locate libglib-2.0.so.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0
/usr/local/lib/libglib-2.0.so.0
/usr/local/lib/libglib-2.0.so.0.3901.0
/usr/local/share/gdb/auto-load/libglib-2.0.so.0.3901.0-gdb.py
/usr/local/src/glib-2.39.1/glib/.libs/libglib-2.0.so.0
/usr/local/src/glib-2.39.1/glib/.libs/libglib-2.0.so.0.3901.0

root@hh-app3:~# ls -l /lib/x86_64-linux-gnu/libglib-2.0.so.*
lrwxrwxrwx 1 root root 23 Apr 3 17:05 /lib/x86_64-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.4000.0
-rw-r--r-- 1 root root 1078368 Apr 3 17:05 /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0

root@hh-app3:~# ls -l /usr/local/lib/libglib-2.0.so.*
lrwxrwxrwx 1 root root 23 Dec 9 2013 /usr/local/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.3901.0
-rwxr-xr-x 1 root root 1579620 Dec 9 2013 /usr/local/lib/libglib-2.0.so.0.3901.0

Manfred Hampl (m-hampl) said : #9

You seem to have certain libraries twice on your system - the current (2.40) version in /lib/x86_64-linux-gnu/ and an outdated (2.39.1) version in /usr/local/lib/ (probably compiled from source)
The loader unfortunately loads the obsolete version, and this most probably leads to your error message.

Is there a specific reason that you compiled that 2.39.1 version from source?

Deleting the duplicate libraries from /usr/local/lib/ should help for inkscape (but has the potential to break other programs if they need that specific verision).

Shaliko (shaliko) said : #10

Last advise for remove duplicate libraries helped me. Old version probably was need for "rsvg" tool, that we no use more.

Thanks a lot!