Deluge 2.0 on Raspberry pi3

General support for problems installing or using Deluge
sirivanhoe
New User
New User
Posts: 4
Joined: Tue Jun 18, 2019 4:55 pm

Deluge 2.0 on Raspberry pi3

Post by sirivanhoe »

Hi,

I have been fighting several hours to upgrade deluge 1.3.15 on my raspi3 to a newer 2.0, but unsuccessfully.

I have python-libtorrent 1.1.1.1 and need at least 1.1.2, and this has proved the toughest challenge to have (I have even compiled it from sources, successfully, after a few hours since 1GB of RAM has stopped things several time forcing to run the make command with only 1 core working).

Has anyone done the upgrade and could describe the steps ?

Thanks in advance
Peppe
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Deluge 2.0 on Raspberry pi3

Post by gderf »

You will likely be better off running Deluge in a docker.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge 2.0 on Raspberry pi3

Post by shamael »

Test the libtorrent version present in the dev PPA https://launchpad.net/~deluge-team/+arc ... /+packages
Version 1.1.12 seems to fit and I saw using this PPA for libtorrent ma be recommend on the forum
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge 2.0 on Raspberry pi3

Post by Cas »

For libtorrent packages see https://launchpad.net/~libtorrent.org and look at the links under Personal package archives
sirivanhoe
New User
New User
Posts: 4
Joined: Tue Jun 18, 2019 4:55 pm

Re: Deluge 2.0 on Raspberry pi3

Post by sirivanhoe »

Thanks all for your time.
gderf wrote:You will likely be better off running Deluge in a docker.
I have no experience whatsoever with docker (no to say on a Raspi), but if it's what it takes and can run on the Pi, then it might the chance to get to know it. Does a container already exists that can be downloaded and run ?
shamael wrote:Test the libtorrent version present in the dev PPA https://launchpad.net/~deluge-team/+arc ... /+packages
Version 1.1.12 seems to fit and I saw using this PPA for libtorrent ma be recommend on the forum
Cas wrote:For libtorrent packages see https://launchpad.net/~libtorrent.org and look at the links under Personal package archives
As for getting the lib torrent from Deluge PPA, it was one of the attempts I made. After adding these on my apt.sources:

Code: Select all

# Deluge PPA STABLE
deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu trusty main
# Deluge PPA DEVELOPMENT
deb http://ppa.launchpad.net/deluge-team/develop/ubuntu trusty main
deb-src http://ppa.launchpad.net/deluge-team/develop/ubuntu trusty main
apt proposes version 1.1.10 of the lib:

Code: Select all

sudo apt list --upgradable
Listing... Done
libtorrent-rasterbar9/trusty 1.1.10~dev8869+4898089+201811161234~ubuntu14.04.1 armhf [upgradable from: 1.1.1-1]
python-libtorrent/trusty 1.1.10~dev8869+4898089+201811161234~ubuntu14.04.1 armhf [upgradable from: 1.1.1-1]
but trying to install conflicts with what I already have and yesterday I couldn't solve it:

Code: Select all

sudo apt install libtorrent-rasterbar9 python-libtorrent
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libtorrent-rasterbar9 : Depends: libboost-chrono1.55.0 but it is not installable
                         Depends: libboost-random1.55.0 but it is not installable
                         Depends: libboost-system1.55.0 but it is not installable
 python-libtorrent : Depends: libboost-chrono1.55.0 but it is not installable
                     Depends: libboost-python1.55.0 but it is not installable
                     Depends: libboost-system1.55.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
A look at what I have velds this:

Code: Select all

sudo dpkg -l|grep -i libboost
rc  libboost-atomic1.55.0:armhf           1.55.0+dfsg-3    armhf    atomic data types, operations, and memory ordering constraints
ii  libboost-chrono1.61.0:armhf           1.61.0+dfsg-3    armhf    C++ representation of time duration, time point, and clocks
ii  libboost-chrono1.62-dev:armhf         1.62.0+dfsg-4    armhf    C++ representation of time duration, time point, and clocks
ii  libboost-chrono1.62.0:armhf           1.62.0+dfsg-4    armhf    C++ representation of time duration, time point, and clocks
rc  libboost-date-time1.55.0:armhf        1.55.0+dfsg-3    armhf    set of date-time libraries based on generic programming concepts
ii  libboost-date-time1.61.0:armhf        1.61.0+dfsg-3    armhf    set of date-time libraries based on generic programming concepts
ii  libboost-date-time1.62.0:armhf        1.62.0+dfsg-4    armhf    set of date-time libraries based on generic programming concepts
rc  libboost-filesystem1.55.0:armhf       1.55.0+dfsg-3    armhf    filesystem operations (portable paths, iteration over directories, etc) in C++
ii  libboost-filesystem1.61.0:armhf       1.61.0+dfsg-3    armhf    filesystem operations (portable paths, iteration over directories, etc) in C++
ii  libboost-filesystem1.62.0:armhf       1.62.0+dfsg-4    armhf    filesystem operations (portable paths, iteration over directories, etc) in C++
ii  libboost-iostreams1.49.0              1.49.0-4+b2      armhf    Boost.Iostreams Library
ii  libboost-iostreams1.50.0              1.50.0-1+b2      armhf    Boost.Iostreams Library
ii  libboost-iostreams1.53.0              1.53.0-6+b2      armhf    Boost.Iostreams Library
ii  libboost-iostreams1.54.0:armhf        1.54.0-5         armhf    Boost.Iostreams Library
ii  libboost-iostreams1.55.0:armhf        1.55.0+dfsg-3    armhf    Boost.Iostreams Library
ii  libboost-iostreams1.61.0:armhf        1.61.0+dfsg-3    armhf    Boost.Iostreams Library
ii  libboost-iostreams1.62.0:armhf        1.62.0+dfsg-4    armhf    Boost.Iostreams Library
rc  libboost-program-options1.55.0:armhf  1.55.0+dfsg-3    armhf    program options library for C++
ii  libboost-python-dev                   1.62.0.1+b4      armhf    Boost.Python Library development files (default version)
rc  libboost-python1.55.0                 1.55.0+dfsg-3    armhf    Boost.Python Library
ii  libboost-python1.61.0                 1.61.0+dfsg-3    armhf    Boost.Python Library
ii  libboost-python1.62-dev               1.62.0+dfsg-4    armhf    Boost.Python Library development files
ii  libboost-python1.62.0                 1.62.0+dfsg-4    armhf    Boost.Python Library
ii  libboost-random-dev:armhf             1.62.0.1+b4      armhf    Boost Random Number Library (default version)
ii  libboost-random1.61.0:armhf           1.61.0+dfsg-3    armhf    Boost Random Number Library
ii  libboost-random1.62-dev:armhf         1.62.0+dfsg-4    armhf    Boost Random Number Library
ii  libboost-random1.62.0:armhf           1.62.0+dfsg-4    armhf    Boost Random Number Library
rc  libboost-regex1.55.0:armhf            1.55.0+dfsg-3    armhf    regular expression library for C++
ii  libboost-system-dev:armhf             1.62.0.1+b4      armhf    Operating system (e.g. diagnostics support) library (default version)
rc  libboost-system1.55.0:armhf           1.55.0+dfsg-3    armhf    Operating system (e.g. diagnostics support) library
ii  libboost-system1.61.0:armhf           1.61.0+dfsg-3    armhf    Operating system (e.g. diagnostics support) library
ii  libboost-system1.62-dev:armhf         1.62.0+dfsg-4    armhf    Operating system (e.g. diagnostics support) library
ii  libboost-system1.62.0:armhf           1.62.0+dfsg-4    armhf    Operating system (e.g. diagnostics support) library
rc  libboost-thread1.55.0:armhf           1.55.0+dfsg-3    armhf    portable C++ multi-threading
ii  libboost-thread1.62.0:armhf           1.62.0+dfsg-4    armhf    portable C++ multi-threading
ii  libboost1.62-dev:armhf                1.62.0+dfsg-4    armhf    Boost C++ Libraries development files
Any hint on how could I try differently ?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge 2.0 on Raspberry pi3

Post by Cas »

Use xenial (with debian stretch) not trusty and use the libtorrent.org launchpad PPA
sirivanhoe
New User
New User
Posts: 4
Joined: Tue Jun 18, 2019 4:55 pm

Re: Deluge 2.0 on Raspberry pi3

Post by sirivanhoe »

Cas wrote:Use xenial (with debian stretch) not trusty
And that was it (mostly) !

Just doing this alone and keeping the sources as they were otherwise, let me install libtorrent 1.1.13 and right after deluge 2.1.1.

On running "deluged -v" just to check everything was in order I incurred a series of problems, mostly due to mismatching version of lib twisted[tls]:

Code: Select all

/usr/bin/deluged -v
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 963, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 854, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Twisted 16.6.0 (/usr/lib/python3/dist-packages), Requirement.parse('twisted[tls]>=17.1'), {'deluge'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/deluged", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 657, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 670, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'twisted[tls]>=17.1' distribution was not found and is required by deluge
I had to uninstall/upgrade twisted both via apt and on both python2.7 and python3 via pip commands (which required missing libffi, easily installed via apt).

But in the end I'm now having an apparently low CPU footprint (as it was v.1.3.15) deluge v2.2.1 perfectly working, including the shell console and web UI.

Thanks a lot !
buk0
New User
New User
Posts: 2
Joined: Thu Jun 20, 2019 9:07 am

Re: Deluge 2.0 on Raspberry pi3

Post by buk0 »

How were you able to fix conflicts when installing libtorrent-rasterbar9. I'm stuck exactly on that step. Using xenial doesn't seem to be working.
sirivanhoe
New User
New User
Posts: 4
Joined: Tue Jun 18, 2019 4:55 pm

Re: Deluge 2.0 on Raspberry pi3

Post by sirivanhoe »

buk0 wrote:How were you able to fix conflicts when installing libtorrent-rasterbar9. I'm stuck exactly on that step. Using xenial doesn't seem to be working.
I guess each system has it's own peculiarities depending on the installations history and configurations. In my case, it was :

Code: Select all

sudo apt install libtorrent-rasterbar9 python-libtorrent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libappindicator1 libboost-chrono1.61.0 libboost-python1.61.0 libboost-random1.61.0 libdbusmenu-glib4 libdbusmenu-gtk4 libindicator7 python-appindicator python-geoip python-gobject python-rencode python-setproctitle
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libboost-chrono1.58.0 libboost-python1.58.0 libboost-random1.58.0 libboost-system1.58.0
Suggested packages:
  libtorrent-rasterbar-dbg
The following NEW packages will be installed:
  libboost-chrono1.58.0 libboost-python1.58.0 libboost-random1.58.0 libboost-system1.58.0
The following packages will be upgraded:
  libtorrent-rasterbar9 python-libtorrent
2 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,675 kB of archives.
After this operation, 147 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/deluge-team/develop/ubuntu xenial/main armhf python-libtorrent armhf 1.1.12+daily8902+3eac170+201905230232~ubuntu16.04.1 [282 kB]
Get:3 http://ppa.launchpad.net/deluge-team/develop/ubuntu xenial/main armhf libtorrent-rasterbar9 armhf 1.1.12+daily8902+3eac170+201905230232~ubuntu16.04.1 [1,167 kB]
Get:2 http://raspbian.mirror.garr.it/mirrors/raspbian/raspbian stretch/main armhf libboost-system1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [31.1 kB]
Get:4 http://raspbian.mirror.garr.it/mirrors/raspbian/raspbian stretch/main armhf libboost-chrono1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [35.8 kB]
Get:5 http://raspbian.mirror.garr.it/mirrors/raspbian/raspbian stretch/main armhf libboost-python1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [125 kB]
Get:6 http://raspbian.mirror.garr.it/mirrors/raspbian/raspbian stretch/main armhf libboost-random1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [34.4 kB]
Fetched 1,675 kB in 2s (722 kB/s)
Selecting previously unselected package libboost-system1.58.0:armhf.
(Reading database ... 144710 files and directories currently installed.)
Preparing to unpack .../0-libboost-system1.58.0_1.58.0+dfsg-5.1+rpi1+b1_armhf.deb ...
Unpacking libboost-system1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b1) ...
...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
I didn't even have to switch from deluge PPA to libtorrent.org launchpad PPA. I had instead to fix the python libraries twisted[tls], but was another front that luckily enough was quickly fixed.

In your case can you spot what exact libtorrent version is attempting to install ? Is 1.1.12 as in my case ? Note that my previous attempts proposed to install v 1.1.10 which required libboost libs v 1.55.0 which were deemed not installable. Switching the PPA to xenial proposed libtorrent v1.1.12 which in turn required libboost libs v1.58.0, and those were installable and installed eventually.
buk0
New User
New User
Posts: 2
Joined: Thu Jun 20, 2019 9:07 am

Re: Deluge 2.0 on Raspberry pi3

Post by buk0 »

I'm trying 1.1.12, still with the same result. I guess I'll just keep trying different approaches. Anyway, thanks for hints.
Post Reply