gpiccoli

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/libboost_system.so.1.65.1 /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.
     .ooo    ooooo   ooooo   .o8        oooooooooooo        .o    oooooooooo.  
.88' `888' `888' "888 `888' `8 .d88 `888' `Y8b
d88' 888 888 888oooo. 888 .d'888 888 888
d888P"Ybo. 888ooooo888 d88' `88b 888oooo8 .d' 888 888oooo888'
Y88[ ]88 888 888 888 888 888 " 88ooo888oo 888 `88b
`Y88 88P 888 888 888 888 888 o 888 888 .88P
`88bod8' o888o o888o `Y8bod8P' o888ooooood8 o888o o888bood8P'


Enter the code depicted in ASCII art style.