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: 851
Joined: February 7th, 2008, 12:45 pm

Howto: updating in Debian proper

Post by jcfp » January 20th, 2012, 5:47 pm

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:
  • Use the ppa. Although intended for Ubuntu, it works with Debian too ;D. Once setup, future updates come in automatically so you'll be the first (along with some 10,000+ Ubuntu users) to enjoy the latest bugs features. All commands need root access, use su or sudo as appropriate or execute them from a root shell.

    From 15 JUN 2016 onwards, you have the choice between two channels: regular or "no betas". The former includes most alpha/beta/rc releases, while the latter is a new, less risky option that only ever gets final releases. For the nobetas channel, simply replace jcfp/ppa with jcfp/nobetas in the instructions below.

    For squeeze (6.x), use the following three commands:

    Code: Select all

    echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu lucid 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 dist-upgrade
    In case you already had an older version of the sabnzbdplus package installed, your system is now fully up to date. If not, proceed to install the program:

    Code: Select all

    apt-get -o APT::Install-Recommends=1 install sabnzbdplus
    For wheezy (7.x), substitute lucid with precise in the first command:

    Code: Select all

    echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a /etc/apt/sources.list
    For jessie (8.x), substitute lucid with trusty in the first command:

    Code: Select all

    echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu trusty main" | tee -a /etc/apt/sources.list
    For stretch (9.x), substitute lucid with xenial in the first command:

    Code: Select all

    echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu xenial main" | tee -a /etc/apt/sources.list
  • Create a backport by rebuilding the source package from testing, unstable, experimental, or even the PPA. Instructions straight from the Debian wiki are here; the only input you need from the source of your choice is the url to a *.dsc file. This method avoids installing from repositories not native to your system, but needs to be done by hand every time and may not work without additional packaging changes.
  • 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 » September 30th, 2014, 5:26 pm

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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 1:49 am

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 » October 1st, 2014, 6:20 am

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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 11:59 am

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 » October 1st, 2014, 3:16 pm

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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 3:50 pm

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 » October 1st, 2014, 4:19 pm

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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 4:30 pm

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 » October 1st, 2014, 4:51 pm

/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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 4:56 pm

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 » October 1st, 2014, 5:04 pm

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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 5:27 pm

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 » October 1st, 2014, 5:37 pm

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: 6131
Joined: January 22nd, 2008, 2:22 pm

Re: Howto: updating in Debian proper

Post by sander » October 1st, 2014, 5:59 pm

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