И снова проблема с установкой старой версии deluge. Проблема та же - на сервере стоит старая версия. На обновление нет времени и, возможно, оно там невозможно в виду технических ограничений. Советы из предыдущей статьи не работают.

В этот раз устаналивать придеться все вручную. Создадим папку и переместимся в нее. $_ - переменная в баше, в которой хранится аргумент предыдущей команды. В нашем случае это будет созданная директория. И установим скачанные пакеты.

mkdir ~/Donwloads/deluge && cd $_
wget http://archive.ubuntu.com/ubuntu/pool/universe/libt/libtorrent-rasterbar/python-libtorrent_1.1.5-1build1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/libt/libtorrent-rasterbar/libtorrent-rasterbar9_1.1.5-1build1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost-system1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/b/boost1.65.1/libboost-python1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/deluge/deluge-common_1.3.15-2_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/t/twisted/python-twisted-core_17.9.0-2ubuntu0.1_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/t/twisted/python-twisted-bin_17.9.0-2ubuntu0.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/i/incremental/python-incremental_16.10.1-3_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-5.1ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/notify-python/python-notify_0.1.1-4_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/deluge/deluge-common_1.3.15-2_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/deluge/deluge-gtk_1.3.15-2_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/deluge/deluge_1.3.15-2_all.deb
sudo apt install ./deluge*.deb

Далее надо заморозить версию deluge. Для этого создается файл /etc/apt/preferences.d/pin-deluge и записывается инфа.

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-deluge
Package: deluge
Pin: version 1.3.15-2
Pin-Priority: 1337

Package: deluge-common
Pin: version 1.3.15-2
Pin-Priority: 1337

Package: deluge-gtk
Pin: version 1.3.15-2
Pin-Priority: 1337
EOF

Проверяем версию

$ deluge --version
deluge: 1.3.15
libtorrent: 1.1.5.0

Bram

пт, 08/27/2021 - 16:25

I've just tried this out, and it's not working. Getting the following error: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'deluge' instead of './deluge_1.3.15-2_all.deb' Note, selecting 'deluge-common' instead of './deluge-common_1.3.15-2_all.deb' Note, selecting 'deluge-gtk' instead of './deluge-gtk_1.3.15-2_all.deb' 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: deluge : Depends: python-libtorrent (>= 0.14.9) but it is not installable deluge-common : Depends: python-twisted-core but it is not installable deluge-gtk : Depends: python-glade2 but it is not installable Depends: python-notify but it is not installable Recommends: python-appindicator but it is not installable Recommends: python-pygame but it is not going to be installed E: Unable to correct problems, you have held broken packages. Upon search, both the Common & GTK folder are present in the home directory so downloads seem okay. Any help for this amateur?

Bram

вт, 08/31/2021 - 19:53

It seems to be working fine on a clean install of Ubuntu 18.04. If only I could find a way to keep it running. It seems to shut down after a while. Where can I get a log to find out?

gpiccoli

сб, 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 =)

gpiccoli

сб, 09/04/2021 - 23:57

Ugh, formatting is broken and somewhat I've commented twice - sorry. Please follow the hints here, better formatting: https://paste.debian.net/1210427/

Добавить комментарий

Содержимое данного поля является приватным и не предназначено для показа.
  • HTML-теги не обрабатываются и показываются как обычный текст
 dP     dP  d888888P   .88888.   .d888b.   a88888b. 
88 88 88 d8' `88 Y8' `88 d8' `88
88 88 88 88 `8bad88 88
88 88 88 88 YP88 `88 88
Y8. .8P 88 Y8. .88 d. .88 Y8. .88
`Y88888P' dP `88888' `8888P Y88888P'

Введите код, изображенный в стиле ASCII-арт.