Howto: updating in Debian proper

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
User avatar
jcfp
Release Testers
Release Testers
Posts: 932
Joined: February 7th, 2008, 12:45 pm

Howto: updating in Debian proper

Post by jcfp »

Since Debian doesn't see updates inbetween releases unless there's some urgent reason for them, the software in the distribution's repositories ages. The sabnzbdplus package is no exception. If you want a newer version in Debian, these are the options:

Edit: with version 3.0.0, direct use of the PPA on Debian is no longer an option. If you have such as setup, remove the PPA from your sources.list and go with creating a backport instead. The source packages from the PPA are an excellent basis for those, and that remains the case for 3.0.0.

Anyway, these are your options for fresh new sabnzbd versions:
  • Create a backport by rebuilding the source package from the Ubuntu PPA. The Debian wiki has instructions detailing how to pull that off, do apply some common sense though. This method avoids installing from repositories not native to your system, but needs to be done by hand for every update. On the upside, the PPA-provided packages are designed to work with older OS releases, so you typically won't need to make changes to the packaging to get your backport to work if you work with source packages from the closest equivalent Ubuntu release. For jessie (8.x) that's trusty/14.04; for stretch (9.x) go with xenial/16.04; for buster (10.x) go with bionic/18.04; any newer Debian (bullseye/testing/unstable), try focal/20.04.
  • Create a backport from the official Debian repositories: testing, unstable, or experimental. Instructions straight from the Debian wiki are here. This method avoids installing from repositories not native to your system, but needs to be done by hand for every update and may not work without additional packaging changes. The chance you have to make modifications increases with increasing age difference between whatever Debian release you use and the one current in development.
  • Apt pinning, basically a somewhat intelligent way of installing packages from later Debian releases (testing, unstable, or even experimental; packages.debian.org has an overview of what's available from where). Required reading on the Debian wiki and in the excellent apt_preferences manpage. Some examples, tips and tricks may be found in this discussion.
  • Run from source. Download the source release from github, extract anywhere you like, and run SABnzbd.py. Dependencies should have been taken care of if you had the (old) sabnzbdplus package installed, otherwise look at that for guidance. You'll have to take care of things like changes in dependencies and a proper init script yourself.
The fine print:
  • No warranty. For anything, in this post or linked from here.
  • For major version updates (like 0.6.x to 0.7.x), better finish any existing download queue first and backup your settings.
  • Don't get too excited about using just any PPA on Debian: doing so is likely to cause breakage. Just remember this one as an exception, not the rule.
  • Whatever you do, don't grab the deb files directly from testing or unstable: these will not work.
  • Ubuntu users: why are you reading this? Go here instead.

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

Hello,
I tried to update sabnzb 0.6.15 (on debian 7) with your first solution but it doesn't work.
It's the good solution ? Have you an idea why this don't work ?
I do this because the repair doesn't work for all NZB but it's ok on my mac (sabnzb 0.7.18).
I don't understand.

Thank

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

cyrben wrote:Hello,
I tried to update sabnzb 0.6.15 (on debian 7) with your first solution but it doesn't work.
It's the good solution ? Have you an idea why this don't work ?
I do this because the repair doesn't work for all NZB but it's ok on my mac (sabnzb 0.7.18).
I don't understand.

Thank
"but it doesn't work." alone contains a bit too little information to help. ;)
Anyway: maybe this posts helps you: http://forums.sabnzbd.org/viewtopic.php ... ezy#p96501

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

I saw the post and do so:
sudo +
nano /etc/apt/sources.list
echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://pool.sks-keyservers.net:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F
apt-get update
apt-get upgrade
apt-get remove sabnzbdplus-theme-plush
apt-get remove sabnzbdplus
apt-get install sabnzbdplus

And the result is (in nano)

echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a
/etc/apt/sources.list echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu
precise main" | tee -a /etc/apt/sources.list# deb
http://mirrors.online.net/debian wheezy main apt-key adv --keyserver
hkp://pool.sks-keyservers.net:11371 --recv-keys
0x98703123E0F52B2BE16D586EF13930B14BB9F05F apt-key adv --keyserver
hkp://pool.sks-keyservers.net:11371 --recv-keys
0x98703123E0F52B2BE16D586EF13930B14BB9F05F deb
http://mirrors.online.net/debian wheezy main non-free contrib apt-get
update apt-get update# Line commented out by installer because it failed
to verify: apt-get upgrade apt-get upgrade#deb-src
http://mirrors.online.net/debian wheezy main non-free contrib
apt-get remove sabnzbdplus-theme-plush
apt-get remove sabnzbdplus
apt-get install sabnzbdplus apt-get remove sabnzbdplus-theme-plush deb
http://security.debian.org/ wheezy/updates main contrib non-free deb-src
http://security.debian.org/ wheezy/updates main contrib non-free
apt-get remove sabnzbdplus
apt-get install sabnzbdplus
!!
I close nano and test the version with your command and I still have 0.6.15.

Thanks for your help. :)

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

No, that's not good; those are commands, not things you shut put into /etc/apt/sources.list

Let's try it step by step:

First clean up /etc/apt/sources.list to how it was before you edited it.
Then run

Code: Select all

apt-get update
apt-get upgrade
Do you get any error messages? Or no error messages at all?

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

I deleted all the contents of sources.list because it seems to me that there was nothing in front.
Then I took it step by step and you have the details below:

[email protected]:~$ nano /etc/apt/sources.list
[email protected]:~$ sudo nano /etc/apt/sources.list
[sudo] password for user:
[email protected]:~$ sudo echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a /etc/apt/sources.list
tee: /etc/apt/sources.list: Permission denied
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main
[email protected]:~$ sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.ZG3hrK5qdB --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg --keyserver hkp://pool.sks-keyservers.net:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F
gpg: requesting key 4BB9F05F from hkp server pool.sks-keyservers.net
gpg: key 4BB9F05F: "Launchpad PPA for jcfp" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
[email protected]:~$ sudo apt-get update
Reading package lists... Done
[email protected]:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[email protected]:~$ sudo apt-get remove sabnzbdplus-theme-plush
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
javascript-common libjs-excanvas libjs-mochikit libtidy-0.99-0
python-cheetah python-configobj python-feedparser python-libxml2
python-openssl python-utidylib python-yenc wwwconfig-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
sabnzbdplus sabnzbdplus-theme-classic sabnzbdplus-theme-iphone
sabnzbdplus-theme-mobile sabnzbdplus-theme-plush sabnzbdplus-theme-smpl
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 4,614 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 37543 files and directories currently installed.)
Removing sabnzbdplus-theme-smpl ...
Removing sabnzbdplus-theme-iphone ...
Removing sabnzbdplus-theme-mobile ...
Removing sabnzbdplus-theme-classic ...
Removing sabnzbdplus ...
[ ok ] SABnzbd+ binary newsgrabber: not running.
Removing sabnzbdplus-theme-plush ...
Processing triggers for man-db ...
[email protected]:~$ sudo apt-get remove sabnzbdplus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'sabnzbdplus' is not installed, so not removed
The following packages were automatically installed and are no longer required:
javascript-common libjs-excanvas libjs-mochikit libtidy-0.99-0
python-cheetah python-configobj python-feedparser python-libxml2
python-openssl python-utidylib python-yenc wwwconfig-common
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[email protected]:~$ sudo apt-get install sabnzbdplus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sabnzbdplus is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'sabnzbdplus' has no installation candidate
[email protected]:~$ sabnzbdplus --version | head -3
-bash: /usr/bin/sabnzbdplus: No such file or directory

Finally I do not have the correct version and I do not even have the application. >:(
Help .
Can you help me to put everything in order ?

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

I said "Let's try it step by step:" and then gave you two steps, and verify question if everything was correct.

As you have gone further and you now have problems, it's harder to help you.

Please follow my advice closely, as I have the idea you're a Linux newbie, right?

So, a step back: what is the output of:

Code: Select all

cat /etc/apt/sources.list
Post the output here.

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

I am a Linux newbie, you're right !

[email protected]:~$ sudo cat /etc/apt/sources.list
[sudo] password for user:
[email protected]:~$

it nothing happens
Bad news...

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

cyrben wrote:I am a Linux newbie, you're right !

[email protected]:~$ sudo cat /etc/apt/sources.list
[sudo] password for user:
[email protected]:~$

it nothing happens
Bad news...
So /etc/apt/sources.list is empty? That's bad news indeed. It means you also removed the good stuff.


Is there a file /etc/apt/sources.list.save ?

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

/etc/apt/sources.list is empty.

There is no backup , I have not taken the time to do it? What an idiot ?
Is there a solution ?

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

cyrben wrote:/etc/apt/sources.list is empty.

There is no backup , I have not taken the time to do it? What an idiot ?
Is there a solution ?
Please reread my post, especially the last line.

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

Is there a file /etc/apt/sources.list.save ?

No save, f you were talking about last post

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

Ouch.

Now this is a long shot for me and I'm not sure what it will bring.

You run Wheezy, right?

If so, edit /etc/apt/sources.list to contain:

Code: Select all

deb http://ftp.de.debian.org/debian stable main contrib non-free
deb-src http://ftp.de.debian.org/debian stable main contrib non-free

deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main
Then run

Code: Select all

sudo apt-get update
sudo apt-get upgrade
Post the last 10 lines of the output here.

cyrben
Newbie
Newbie
Posts: 13
Joined: September 29th, 2014, 8:42 am

Re: Howto: updating in Debian proper

Post by cyrben »

The last 10 lines

Unpacking replacement bash ...
Processing triggers for man-db ...
Setting up bash (4.2+dfsg-0.1+deb7u3) ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
(Reading database ... 37131 files and directories currently installed.)
Preparing to replace rsyslog 5.8.11-3 (using .../rsyslog_5.8.11-3+deb7u1_amd64.deb) ...
Unpacking replacement rsyslog ...
Processing triggers for man-db ...
Setting up rsyslog (5.8.11-3+deb7u1) ...
[ ok ] Stopping enhanced syslogd: rsyslogd.
[ ok ] Starting enhanced syslogd: rsyslogd.

User avatar
sander
Release Testers
Release Testers
Posts: 7120
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander »

OK, looks good I would say.

Code: Select all

sudo apt-get remove sabnzbdplus
sudo apt-get install sabnzbdplus
sabnzbdplus --version | head -3
Post the output here.

Post Reply