error while loading shared libraries

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
trope
Level 3
Level 3
Posts: 175
Joined: Tue Feb 19, 2013 1:10 pm

error while loading shared libraries

Post by trope » Thu Aug 16, 2018 8:21 pm

I am trying to use aptik-gtk. I installed it, but when I try to run it, I get the following error message:

Code: Select all

aptik-gtk: error while loading shared libraries: libvte-2.91.so.0: cannot open shared object file: No such file or directory
I am not sure if this means that a package is not installed, or if it means that it is located in a different directory. I tried :

Code: Select all

$ apt-cache search libvte
and get

Code: Select all

libvte-2.90-9 - Terminal emulator widget for GTK+ 3.0 - runtime files
libvte-2.90-common - Terminal emulator widget for GTK+ 3.0 - common files
libvte-2.90-dev - Terminal emulator widget for GTK+ 3.0 - development files
libvte-2.90-doc - Terminal emulator widget for GTK+ 3.0 - documentation
libvte-common - Terminal emulator widget for GTK+ 2.x - common files
libvte-dev - Terminal emulator widget for GTK+ 2.0 - development files
libvte-doc - Terminal emulator widget for GTK+ 2.x - documentation
libvte9 - Terminal emulator widget for GTK+ 2.0 - runtime files
libtsm-dev - Terminal-emulator State Machine - development
libtsm3 - Terminal-emulator State Machine - runtime
libvte0.16-cil - CLI binding for VTE 0.16
libvte0.16-cil-dev - CLI binding for VTE 0.16
sakura - simple but powerful libvte-based terminal emulator
vala-terminal - Terminal emulator for mobile devices
but the 2.90 does not match the 2.91, so not sure which one I would need to install, if any. Appreciate any help.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5466
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: error while loading shared libraries

Post by administrollaattori » Fri Aug 17, 2018 12:07 am

Make a symbolic link like:

Code: Select all

sudo ln -s /usr/lib/libvte2_90.so.9 /usr/lib/libvte-2.91.so.0
After that run

Code: Select all

sudo ldconfig -v
PS. I use mint 17, so your system may be different.

trope
Level 3
Level 3
Posts: 175
Joined: Tue Feb 19, 2013 1:10 pm

Re: error while loading shared libraries

Post by trope » Fri Aug 17, 2018 12:56 am

Am using 17.1. I ran those 2 commands, then ran "aptik-gtk" but now get the following error message:

Code: Select all

aptik-gtk: symbol lookup error: aptik-gtk: undefined symbol: gtk_stack_sidebar_new

User avatar
administrollaattori
Level 14
Level 14
Posts: 5466
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: error while loading shared libraries

Post by administrollaattori » Fri Aug 17, 2018 1:08 am

Try

Code: Select all

sudo rm /usr/lib/libvte-2.91.so.0
sudo ln -s  /usr/lib/libvte.so.9 /usr/lib/libvte-2.91.so.0
sudo ldconfig -v

trope
Level 3
Level 3
Posts: 175
Joined: Tue Feb 19, 2013 1:10 pm

Re: error while loading shared libraries

Post by trope » Fri Aug 17, 2018 1:33 am

The first command worked.

The second command, I got some output error and "File exists". When I ran the third command, there was so much output that I could not get back to the output from the 2nd command (I did just find out how and turned on unlimited scrolling, but not sure if I should re-run the 2nd command).

aptik-gtk now results in:

Code: Select all

(aptik-gtk:6350): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/breakpoint trap
I wonder if it is because of how I installed it; aptik-gtk wouldn't install from the terminal which I learned was because it is not in the repository for Mint 17 (viewtopic.php?f=47&t=270853&p=1513247#p1513247), so I had to use the .deb file. When it didn't open, I installed aptik through the .deb file, thinking the problem was there. Maybe those were 2 different versions. I believe these were the commands I used:

Code: Select all

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install aptik aptik-gtk
and installed 18.8 .run and .deb files from:
https://github.com/teejee2008/aptik/releases

User avatar
smurphos
Level 8
Level 8
Posts: 2011
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: error while loading shared libraries

Post by smurphos » Fri Aug 17, 2018 1:39 am

I guess you've found the reason there is no aptik-gtk build for Mint 17.x / trusty on the PPA.

Aptik version 17.x which includes the GUI in the main app is still available via https://github.com/teejee2008/aptik-legacy

That appears to be the solution offered by the dev....

https://github.com/teejee2008/aptik/issues/15

trope
Level 3
Level 3
Posts: 175
Joined: Tue Feb 19, 2013 1:10 pm

Re: error while loading shared libraries

Post by trope » Fri Aug 17, 2018 8:51 am

smurphos wrote:
Fri Aug 17, 2018 1:39 am
I guess you've found the reason there is no aptik-gtk build for Mint 17.x / trusty on the PPA.

Aptik version 17.x which includes the GUI in the main app is still available via https://github.com/teejee2008/aptik-legacy

That appears to be the solution offered by the dev....

https://github.com/teejee2008/aptik/issues/15
Do I need to uninstall the versions of aptik I have, and undo everything I did above before trying this older version? How would I do it?

User avatar
smurphos
Level 8
Level 8
Posts: 2011
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: error while loading shared libraries

Post by smurphos » Sat Aug 18, 2018 1:41 am

You'll need to remove or disable the PPA and uninstall aptik-gtk.

You should be able to install the aptik 17.x deb file over the existing aptik install using gdebi (overriding any warnings about replacing an package with an older version).

Post Reply

Return to “Newbie Questions”