Libtorrent issue in Debian Stretch preventing deluged from starting?

General support for problems installing or using Deluge
Post Reply
Protected
Member
Member
Posts: 14
Joined: Sun Dec 03, 2017 3:55 am

Libtorrent issue in Debian Stretch preventing deluged from starting?

Post by Protected »

Hello. I had deluged working just fine on a server running Debian Jessie. I believe it had libtorrent-rasterbar8 as a dependency. Today I had to upgrade to Debian Stretch for unrelated reasons and, while everything else in the server seems to be working fine, and the package tree seems to be correctly installed (now with libtorrent-rasterbar9), I can't start deluged anymore:

Code: Select all

[ERROR   ] 02:27:50 main:248 libboost_chrono.so.1.55.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 241, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 144, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 38, 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_chrono.so.1.55.0: cannot open shared object file: No such file or directory

Code: Select all

# python -c "from deluge._libtorrent import lt; print lt.version"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: libboost_chrono.so.1.55.0: cannot open shared object file: No such file or directory
Present in the server: /usr/lib/x86_64-linux-gnu/libboost_chrono.so.1.62.0

I tried adding symbolic links with the name libboost_chrono.so.1.55.0 but it made no difference.

Is there a headache-free way to fix this?
Protected
Member
Member
Posts: 14
Joined: Sun Dec 03, 2017 3:55 am

Re: Libtorrent issue in Debian Stretch preventing deluged from starting?

Post by Protected »

Ok, I can't use that solution because libboost-system1.58.0 is missing. Ideas?
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Libtorrent issue in Debian Stretch preventing deluged from starting?

Post by shamael »

Can't you install it with from the same repo?
Protected
Member
Member
Posts: 14
Joined: Sun Dec 03, 2017 3:55 am

Re: Libtorrent issue in Debian Stretch preventing deluged from starting?

Post by Protected »

It doesn't seem so
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Libtorrent issue in Debian Stretch preventing deluged from starting?

Post by shamael »

As a matter of test for my next Stretch migration I installed a new Jessie VM with Deluge from Trusty PPA (with trusty in source.list so). After settings all as it should and having a running Deluge setup I upgraded from Jessie to Stretch (9.2). Deluge remains functional, even after the "apt-get autoremove".

Still present on my system
sudo dpkg -l|grep -i libboost

Code: Select all

ii  libboost-chrono1.62.0:amd64     1.62.0+dfsg-4                  amd64        C++ representation of time duration, time point, and clocks
ii  libboost-filesystem1.62.0:amd64 1.62.0+dfsg-4                  amd64        filesystem operations (portable paths, iteration over directories, etc) in C++
ii  libboost-iostreams1.55.0:amd64  1.55.0+dfsg-3                  amd64        Boost.Iostreams Library
ii  libboost-iostreams1.62.0:amd64  1.62.0+dfsg-4                  amd64        Boost.Iostreams Library
rc  libboost-python1.55.0           1.55.0+dfsg-3                  amd64        Boost.Python Library
ii  libboost-python1.62.0           1.62.0+dfsg-4                  amd64        Boost.Python Library
ii  libboost-random1.62.0:amd64     1.62.0+dfsg-4                  amd64        Boost Random Number Library
ii  libboost-system1.55.0:amd64     1.55.0+dfsg-3                  amd64        Operating system (e.g. diagnostics support) library
ii  libboost-system1.62.0:amd64     1.62.0+dfsg-4                  amd64        Operating system (e.g. diagnostics support) library
sudo dpkg -l|grep -i rasterbar

Code: Select all

ii  libtorrent-rasterbar8           1.0.11-1~trusty~ppa1.1         amd64        C++ bittorrent library by Rasterbar Software
ii  libtorrent-rasterbar9           1.1.1-1+b1                     amd64        C++ bittorrent library by Rasterbar Software
ii  python-libtorrent               1.1.1-1+b1                     amd64        Python bindings for libtorrent-rasterbar
So strictly speaking the upgrade to Stretch did not broken the setup, libtorrent-rasterbar8 coming from PPA
sudo apt-cache -t trusty search libtorrent-rasterbar8

Code: Select all

libtorrent-rasterbar8 - C++ bittorrent library by Rasterbar Software
Now what about you? Well I guess you are already a step forward and above doesn't help. I considered your issue on a new Stretch installation so you can follow the below steps in any case.

#Add to source.list the trusty PPA and backport Jessie repo
deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu zesty main
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu zesty main
deb http://deb.debian.org/debian jessie-backports main contrib non-free

#add PPA key (if not done yet)
sudo apt-get install dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 249AD24C

#update
sudo apt-get update

#install libssl from Jessie version
sudo apt-get -t jessie-backports install libssl1.0.0

#install deluge
sudo apt-get install -t zesty libtorrent-rasterbar8 python-libtorrent
sudo apt-get install -t zesty deluged deluge-web deluge-console

#Avoid libtorrent upgrade during OS upgrade
sudo apt-mark hold libtorrent-rasterbar8 python-libtorrent
sudo apt-mark showhold


This way I get Deluge installed on Stretch, so considering your profile is safe you should be good to go.
Post Reply