Potential fix below...
So I had the same problem.
The reason I got into that state was this:
1. I upgraded to Ubuntu 20.4
2. Deluged stopped working.
3. Someone on some forum said upgrade deluged to v2.xxx, so I did
4. Deluge started working, but it was using a lot of memory, in fact all of my memory until CPU started maxing out, it required a shutdown. And immediately aftyer reboot RAM usage climbed quite quickly after a few minute 1G few more minutes 2G.
Other forum suggested upgrading libTorrent that it was the culprit, so I did, this made sense because I had upgraded Deluged.
So I was in the same state as above just with a newer libtorrent.
I uninstalled everything in doing so I made a mistake and lost a lot of applications causing an OS melt down.
The Fix:
At some point I must have uninstall libtorrent (it was a nightmare), many version of Deluge trying to use v2+ libtorrent
re-installed all deluge items from this page:
https://askubuntu.com/q/1184176/645203
installing all of the deluge components of this same version.
mkdir -p ~/Downloads/deluge
cd ~/Downloads/deluge
wget
http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/m ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
wget
http://security.ubuntu.com/ubuntu/pool/ ... .1_all.deb
wget
http://security.ubuntu.com/ubuntu/pool/ ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/m ... -3_all.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
wget
http://archive.ubuntu.com/ubuntu/pool/u ... -2_all.deb
sudo apt install ./*.deb
e.g.
now this is my versions and it is working perfectly. As good as ever before:
deluge: 1.3.15
libtorrent: 1.1.5.0
Going forwards:
only thing left to sort is my apt version of deluge-web is ready to upgrade, which I doubt i ever will after this debarcle.
deluge-common/now 1.3.15-2 all [installed,local]
deluge-console/now 1.3.15-2 all [installed,local]
deluge-gtk/now 1.3.15-2 all [installed,local]
deluge-web/focal,focal 2.0.3-2 all [upgradable from: 1.3.15-2] - I DONT LIKE THIS
deluge/now 1.3.15-2 all [installed,local]
deluged/now 1.3.15-2 all [installed,local]
I do not know if I am right to have installed this version.
But every single other forum did not give the full truth.
even this Deluge site does not tell how things are meant to be.
Hopefully this helps someone.
UPDATE:
I change this script and it should prevent upgrade
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
Package: deluged
Pin: version 1.3.15-2
Pin-Priority: 1337
Package: deluge-console
Pin: version 1.3.15-2
Pin-Priority: 1337
Package: deluge-web
Pin: version 1.3.15-2
Pin-Priority: 1337
Package: libtorrent-rasterbar9
Pin: version 1.1.5-1build1
Pin-Priority: 1337
EOF
=
deluge-common/now 1.3.15-2 all [installed,local]
deluge-console/now 1.3.15-2 all [installed,local]
deluge-gtk/now 1.3.15-2 all [installed,local]
deluge-web/now 1.3.15-2 all [installed,local]
deluge/now 1.3.15-2 all [installed,local]
deluged/now 1.3.15-2 all [installed,local]