Page 1 of 1

Upgrading SABnzbd on Debian 10 (buster) - dependencies problems

Posted: July 17th, 2021, 9:25 am
by sabuser3528
Hi,

I am running on Debian 10 Buster and the version shipped with it is now quite old.

I created a backport by rebuilding the source package from the Ubuntu PPA.

After resolving a lot of dependencies issues, i still can't install SABnzbd :

Code: Select all

sudo dpkg --install sabnzbdplus_3.3.1-0ubuntu1~jcfp1~21.10_all.deb

Code: Select all

Selecting previously unselected package sabnzbdplus.
(Reading database ... 101795 files and directories currently installed.)
Preparing to unpack sabnzbdplus_3.3.1-0ubuntu1~jcfp1~21.10_all.deb ...
Unpacking sabnzbdplus (3.3.1-0ubuntu1~jcfp1~21.10) ...
dpkg: dependency problems prevent configuration of sabnzbdplus:
 sabnzbdplus depends on python3-portend; however:
  Package python3-portend is not installed.
 sabnzbdplus depends on python3-sabyenc; however:
  Package python3-sabyenc is not installed.

dpkg: error processing package sabnzbdplus (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u7) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for shared-mime-info (1.10-1) ...
Errors were encountered while processing:
 sabnzbdplus
python3-portend and python3-sabyenc seems missing but :

Code: Select all

sudo -H pip3 install sabyenc --upgrade
Requirement already up-to-date: sabyenc in /usr/local/lib/python3.7/dist-packages (3.3.6)

Code: Select all

sudo -H pip3 install portend --upgrade
Requirement already up-to-date: portend in /usr/local/lib/python3.7/dist-packages (2.7.1)
Requirement already satisfied, skipping upgrade: tempora>=1.8 in /usr/local/lib/python3.7/dist-packages (from portend) (4.1.1)
Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.7/dist-packages (from tempora>=1.8->portend) (2021.1)
Requirement already satisfied, skipping upgrade: jaraco.functools>=1.20 in /usr/local/lib/python3.7/dist-packages (from tempora>=1.8->portend) (3.3.0)
Requirement already satisfied, skipping upgrade: more-itertools in /usr/local/lib/python3.7/dist-packages (from jaraco.functools>=1.20->tempora>=1.8->portend) (8.8.0)
I don't know what I am missing.

Re: Upgrading SABnzbd on Debian 10 (buster) - dependencies problems

Posted: July 17th, 2021, 9:48 am
by jcfp
sabuser3528 wrote: July 17th, 2021, 9:25 amI don't know what I am missing.
The part where dpkg/apt don't know about things installed via pip.

Since you're rebuilding ppa packages, you can either also build and install python-portend/python-sabyenc/etc packages (source packages for those already available from the ppa as backports for older ubuntu releases), or use pip for those and simply remove the relevant dependencies (from debian/control) before rebuilding sabnzbdplus.

Re: Upgrading SABnzbd on Debian 10 (buster) - dependencies problems

Posted: July 17th, 2021, 10:51 am
by sabuser3528
Thank you for your quick answer.

I manage to build python-sabyenc but python-portend ask for more and more depencies which i didn't manage to build (got an error on pytest)

End up following to second advice :

Code: Select all

sudo dpkg --force-all --install sabnzbdplus_3.3.1-0ubuntu1~jcfp1~21.10_all.deb
Seems to work.

I would say .. the upgrade path is not very easy.

Thanks !

Re: Upgrading SABnzbd on Debian 10 (buster) - dependencies problems

Posted: July 17th, 2021, 11:04 am
by jcfp
I wish it were easier, but with debian and ubuntu lts releases out of sync with respect to major python versions things are what they are.

There's work going on to add debian repository publishing support to upstream gitlab sources, which may result in native ppa-style repositories for debian (given that debian already uses its own gitlab install at salsa.debian.org as its main vcs).

Re: Upgrading SABnzbd on Debian 10 (buster) - dependencies problems

Posted: July 17th, 2021, 11:50 am
by sabuser3528
I understand. I won't complain though, sab is great !

I think there is not much information about upgrading on Debian (except the sticky post in the forum). I think that would help other users if there were like a post / tutorial which list the commands to execute.

Thanks you again for your help.