Page 1 of 1

[SOLVED]Problem upgrading on Debian

Posted: February 19th, 2012, 5:48 pm
by h8uthemost
Hey guys,

I'm using Crunchbang(Debian Stable) and I'm following the instructions here to upgrade my existing sab installation. But I ran into a problem with one of the commands right from the get-go. This command:

Code: Select all

echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu lucid main" | tee -a /etc/apt/sources.list
Spits me out this error:

Code: Select all

sudo echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu lucid main" | tee -a /etc/apt/sources.list
tee: /etc/apt/sources.list: Permission denied
[sudo] password for user: 
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu lucid main
So for some reason I'm not able to access my sources.list, even with sudo and my password. And if I try running sudo tee -a /etc/apt/sources.list all by itself, after giving my password, terminal just hangs. Nothing happens.

Does anyone see what the problem might be?

I downloaded the source package and ran the sab.py and the newest version pops up into my browser, which is fine for right now. But if possible I would really like to get my installed version of sab upgraded.

Thanks for any help.

Re: Problem upgrading on Debian

Posted: February 19th, 2012, 5:59 pm
by sander
you're sudo-ing the echo command, which is not so useful; the tee needs the sudo rights.

So, like the instructions says, just become root in the shell ("sudo su -" on Ubuntu, I don't know on Debian), and then execute the commands.

Re: Problem upgrading on Debian

Posted: February 20th, 2012, 11:58 am
by h8uthemost
That did it alright. Thanks sander.

For some reason I didn't see the root in the shell bit. And honestly, I've never ran a shell as root before so I didn't even know about the sudo su - command. I've always just sudo'd whatever command that needed root access. That's a handy command that you taught me.

Anyways, thanks a lot for answering my question. I'm all upgraded now.