Sat, 09/04/2021 - 23:55

Hey folks, I manage to get that working, but it's SUPER boring, took me around 2h. The big issues are that libboost1.65 and python2 are not available on Focal, so it messes with Deluge. I'll give some hints here, if you REALLY want Deluge 1.3 on Focal, this is the way to go (and if eventually Deluge 1.3 breaks and all torrents are gone, I take NO responsability - this is a risky and unsupported procedure): IMPORTANT facts: - after EACH package you install with "dpkg -i", run "apt-mark hold" on it! - when you install a "dpkg -i" package, it might fail due to some missing dependency; if so, I recommend to "dpkg -P" the package, install manually the dependencies with apt-get and then, reinstalling the said package with "dpkg -i". If you try some automatic dependency resolution (like "apt-get install -f"), you might eventually updating the package you want to install with a Focal version, like getting Deluge 2.x when trying step (3) below, for example. 1) You'll need to split in parts. First one is to install the following packages: libtorrent-rasterbar9 python3-libtorrent python-libtorrent libtorrent-rasterbar-dev [I'm not sure this one is required but I installed since I was planning to build deluge 1.3-15 on Focal!] PROBLEM: to install them, you'll need libboost-system1.65.1 and libboost-python1.65.1, which...are not available/installable on Focal (and don't try install it, or else you'll break packaging). SOLUTION: Edit all the aboves packages (use "dpkg-deb --raw-extract", edit "DEBIAN/control" and repack with "dpkg-deb --build") - you need to change the package requirement from libboost-system1.65.1/libboost-python1.65.1 to libboost-system1.71.0/libboost-python1.71.0 (or you can even remove this requirement); also for python-libtorrent, don't forget to fake the requirement "python (<< 2.8)" to something like "python (<< 3.9)", or else you can't install it on Focal due to lack of python2. 2) When step 1 is completed, you should have the 4 packages installed and marked as hold. But..they can't work without the real libboost-system1.65.1 and libboost-python1.65.1! So, go ahead and download both lib packages, from Bionic repos. Extract them with "dpkg-deb --raw-extract" and move the following files extracted: For libboost-python1.65.1: mv <extracted_folder>/lib/x86_64-linux-gnu/libboost_python* /usr/lib/x86_64-linux-gnu/ For libboost-system1.65.1: mv <extracted_folder>/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ With that, libtorrent-rasterbar is able to work, since it finds the old boost libs, yet they're not installed in your package system and hence, can't break dpkg =D 3) Now, it's time to install the following packages, in THAT order: deluge-common deluge-gtk deluge PROBLEM: They require a set of packages not present in Focal (of course =O), so you'll need to manually get them. SOLUTION: Get the following packages (in THAT order), edit them (using "dpkg-deb --raw-extract", edit "DEBIAN/control" to change the "python (<< 2.8)" requirement, and repack them with "dpkg-deb --build"), and install them before the deluge packages: python-incremental python-notify python-gtk2 python-glade2 python-twisted-bin python-twisted-core After that laborious job, go ahead and install "deluge-common", "deluge-gtk" and finally, "deluge". Hopefully everything is going to work =D P.S. This is what you get when relying in Python, a language without backward compatibility, or libboost, a no stable API library =)
The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed.
 dP     dP  .d888b.  dP     dP  .d8888P   .88888.  
88 88 Y8' `8P 88 .d8' 88' d8' `88
88 88 d8bad8b 88aaa8P' 88baaa. 88
88 88 88` `88 88 `8b. 88` `88 88 YP88
Y8. .8P 8b. .88 88 88 8b. .d8 Y8. .88
`Y88888P' Y88888P dP dP `Y888P' `88888'

Enter the code depicted in ASCII art style.