LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   using maverick - added one new repository but now can't add another repository (https://www.linuxquestions.org/questions/linux-software-2/using-maverick-added-one-new-repository-but-now-cant-add-another-repository-862294/)

gerryyy 02-12-2011 02:24 PM

using maverick - added one new repository but now can't add another repository
 
using the system/administration/software sources menus I was able to successfully add the following repository "http://archive.getdeb.net/ubuntu maverick-get deb". I then wanted to add the TOR repository and when I entered the TOR information in the APT line the Add Source button of the software-properties-gtk window did not become active.
Any suggestions to try to fix this would be appreciated.
Thanks
-gerryyy

reed9 02-14-2011 12:36 PM

Are you entering the repository correctly? I think it's almost easier from a terminal

Code:

echo "deb http://deb.torproject.org/torproject.org maverick main" | sudo tee -a /etc/apt/sources.list
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
sudo apt-get update && sudo apt-get install tor tor-geoipdb


gerryyy 02-15-2011 07:28 AM

reed9,
Thanks for your suggestion -
I'm trying to get to know ubuntu so - which line of your adds the repository to the /etc/apt/source.file list?
echo "deb http://deb.torproject.org/torproject.org maverick main" | sudo tee -a /etc/apt/sources.list
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
sudo apt-get update && sudo apt-get install tor tor-geoipdbIf it's the first line - Do I need to add the first line without the quote marks to the bottom of the sources.list.save file located -> file system/etc/apt?
Do i need to take backup the sources.list.save file before making changes?
Again trying to learn - thanks for your help with this.

reed9 02-15-2011 08:28 AM

This adds the line to your sources.list
Code:

echo "deb http://deb.torproject.org/torproject.org maverick main" | sudo tee -a /etc/apt/sources.list
echo basically prints the line you need, "deb http://deb.torproject.org/torproject.org maverick main", then that is piped (the |) to the tee command, which writes it to the file. The -a flag is to append the line, rather than overwrite the file. (The quotation marks will not appear in your sources.list when doing this either.)

If you were root, you could dispense with piping the output to tee and just do
Code:

echo "deb http://deb.torproject.org/torproject.org maverick main" >> /etc/apt/sources.list
(Again the quotation marks won't appear in the file.)

But this does not work because the elevated privileges with sudo are only happening to the "echo" command and not the part you need, which is writing to the file.
Code:

sudo echo "deb http://deb.torproject.org/torproject.org maverick main" >> /etc/apt/sources.list
It's never a bad idea to make backups.

gerryyy 02-15-2011 09:08 AM

reed9,
thanks.
At work now, will try this at home tonite, will back up source.list first.
Any recomendation(s) for good intro to getting to know Linux command syntax?

Regards,
Gerryyy

reed9 02-15-2011 09:16 AM

This is a pretty good intro
http://linuxcommand.org/index.php

Mostly it's just practice. I'm far from expert, but I'm pretty good where it's pertinent to my day to day computing. Basic file operations, package management, and such. Once you get the hang of it, it's much more efficient for a lot of things than using a GUI.

gerryyy 02-16-2011 06:47 AM

reed9,
Thanks for your help.
Tor is now installed via the terminal commands. Now I have to wrestle with getting the other components - Polipo, Torbutton, Vidalia; to work together.
Will check out the link.


All times are GMT -5. The time now is 11:26 AM.