[Solved] Upgrade & fresh install errors

General support for problems installing or using Deluge
Post Reply
rickstrict
New User
New User
Posts: 4
Joined: Fri Jan 27, 2017 4:51 am

[Solved] Upgrade & fresh install errors

Post by rickstrict »

A few days ago something crashed out on my system and in the process of fixing it apt-get update && apt-get upgrade was run. Deluge was already installed an previously working fine. Now it is having issues with libboost-system. I've dug through different versions, tried the Yakkety PPA to try 1.3.13 but the same problem shows up. Purged deluge & python-libtorrent, reinstalled the original (and previously working) Jessie versions but to no avail.

Code: Select all

# uname -a
Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.39-1 (2016-12-30) i686 GNU/Linux

Code: Select all

# deluged -L debug
[INFO    ] 23:44:25 daemon:124 Deluge daemon 1.3.10
[DEBUG   ] 23:44:25 daemon:125 options: {'profile': False, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'listen_interface': None, 'logfile': '/root/.config/deluge/deluged.log', 'config': None, 'port': None, 'pidfile': None, 'donot': False}
[DEBUG   ] 23:44:25 daemon:126 args: []
[ERROR   ] 23:44:25 main:237 libboost_system.so.1.49.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 230, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/lib/python2.7/dist-packages/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: libboost_system.so.1.49.0: cannot open shared object file: No such file or directory
Really was hoping I could figure this one out myself but I've run out of ideas to try. Any advice would be great!
Last edited by rickstrict on Tue Jan 31, 2017 3:23 pm, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Upgrade & fresh install errors

Post by Cas »

do you have libboost-system installed?
rickstrict
New User
New User
Posts: 4
Joined: Fri Jan 27, 2017 4:51 am

Re: Upgrade & fresh install errors

Post by rickstrict »

Looks like it should be:

Code: Select all

# apt list --installed | grep libboost-system
libboost-system-dev/stable,now 1.55.0.2 i386 [installed]
libboost-system1.55-dev/stable,now 1.55.0+dfsg-3 i386 [installed,automatic]
libboost-system1.55.0/stable,now 1.55.0+dfsg-3 i386 [installed,automatic]
As I thought it was installed as a dependency from python-libtorrent via deluged:

Code: Select all

# apt-cache showpkg python-libtorrent
Package: python-libtorrent
Versions: 
0.16.18-1 (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_jessie_main_binary-i386_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/ftp.us.debian.org_debian_dists_jessie_main_binary-i386_Packages
                  MD5: 7acb3c7164a71b3b8f60c27fefbeee9e
 Description Language: en
                 File: /var/lib/apt/lists/ftp.us.debian.org_debian_dists_jessie_main_i18n_Translation-en
                  MD5: 7acb3c7164a71b3b8f60c27fefbeee9e


Reverse Depends: 
  python3-libtorrent-dbg,python-libtorrent 0.16.18-1
  python-libtorrent-dbg,python-libtorrent 0.16.18-1
  deluged,python-libtorrent 0.14.9
  deluge,python-libtorrent 0.14.9
Dependencies: 
0.16.18-1 - libboost-python1.55.0 (0 (null)) libboost-system1.55.0 (0 (null)) libc6 (2 2.4) libgcc1 (2 1:4.1.1) libstdc++6 (2 4.6) libtorrent-rasterbar7 (5 0.16.18-1) python (2 2.7) python (3 2.8) dpkg (2 1.15.6~) 
Provides: 
0.16.18-1 - python2.7-libtorrent 
Reverse Provides: 
Is deluged looking for a specific version and having a mismatch?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Upgrade & fresh install errors

Post by Cas »

You need to remove libboost1.55 and install libboost1.49 for libtorrent 0.16.18 on jessie as that's what it was built with.
rickstrict
New User
New User
Posts: 4
Joined: Fri Jan 27, 2017 4:51 am

Re: Upgrade & fresh install errors

Post by rickstrict »

Thats what I thought the problem was, but I cant seem to get the correct version installed. Easy enough to remove the wrong libboost:

Code: Select all

# apt-get purge libboost-python1.55
...
Note, selecting 'libboost-python1.55.0' for regex 'libboost-python1.55'
Note, selecting 'libboost-python1.55-dev' for regex 'libboost-python1.55'
Package 'libboost-python1.55-dev' is not installed, so not removed
The following packages will be REMOVED:
  libboost-python1.55.0*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 156259 files and directories currently installed.)
Removing libboost-python1.55.0 (1.55.0+dfsg-3) ...
Purging configuration files for libboost-python1.55.0 (1.55.0+dfsg-3) ...

But I am unable to install the correct 1.49:

Code: Select all

# apt-get install libboost1.49
...
Note, selecting 'libboost1.49-dbg' for regex 'libboost1.49'
Note, selecting 'libboost1.49-dev' for regex 'libboost1.49'
Note, selecting 'libboost1.49-doc' for regex 'libboost1.49'
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Or the python version:

Code: Select all

# apt-get install libboost-python1.49.0
...
Package libboost-python1.49.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
And deluge wants to pull in the new version as well:

Code: Select all

# apt-get install deluged
...
The following extra packages will be installed:
  libboost-python1.55.0 libtorrent-rasterbar7 python-libtorrent
Suggested packages:
  libtorrent-rasterbar-dbg
The following NEW packages will be installed:
  deluged libboost-python1.55.0 libtorrent-rasterbar7 python-libtorrent
It seems some libboost packages are hanging around after the purge, but they have dependencies other than deluge so I didnt think it would be safe to remove them:

Code: Select all

# apt list --installed | grep libboost
libboost-date-time1.55.0/stable,now 1.55.0+dfsg-3 i386 [installed,automatic]
libboost-iostreams1.49.0/now 1.49.0-3.2 i386 [installed,local]
libboost-iostreams1.55.0/stable,now 1.55.0+dfsg-3 i386 [installed,automatic]
libboost-system1.55.0/stable,now 1.55.0+dfsg-3 i386 [installed,automatic]

# apt-get purge libboost-system1.55.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libboost-system1.55.0* liborcus-0.8-0* libreoffice* libreoffice-calc*
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Upgrade & fresh install errors

Post by Cas »

Ok perhaps 1.55 is the default then. I would purge deluge and libtorrent and python-libtorrent, then look for any left over files. Make sure ldconfig has been run too.

For Jessie you shouldn't be using the Yakkety PPA: http://askubuntu.com/a/445496/8570

The alternative is to simply build libtorrent from source.
rickstrict
New User
New User
Posts: 4
Joined: Fri Jan 27, 2017 4:51 am

Re: Upgrade & fresh install errors

Post by rickstrict »

Okay! Looks like one of those purges finally did the trick (even though I would swear I tried all of them before posting). Thanks for your help!

Also, that compatibility list is very useful.

Edit: Do you use [Solved] tags here?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Upgrade & fresh install errors

Post by Cas »

Excellent, yes you can put that in topic title.
Post Reply