LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2011, 02:24 PM   #1
gerryyy
LQ Newbie
 
Registered: Dec 2010
Distribution: ubuntu 10.10
Posts: 5

Rep: Reputation: 0
Question 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
 
Old 02-14-2011, 12:36 PM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
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
 
Old 02-15-2011, 07:28 AM   #3
gerryyy
LQ Newbie
 
Registered: Dec 2010
Distribution: ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 02-15-2011, 08:28 AM   #4
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
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.
 
Old 02-15-2011, 09:08 AM   #5
gerryyy
LQ Newbie
 
Registered: Dec 2010
Distribution: ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 02-15-2011, 09:16 AM   #6
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
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.
 
Old 02-16-2011, 06:47 AM   #7
gerryyy
LQ Newbie
 
Registered: Dec 2010
Distribution: ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
[SOLVED] Difference between add-apt-repository and apt-add-repository Kenny_Strawn Ubuntu 3 12-22-2010 07:50 PM
LXer: Medibuntu repository is available for Ubuntu 10.10 Maverick Meerkat LXer Syndicated Linux News 0 10-11-2010 11:10 PM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
YUM: Repository already added, not adding again linmix Linux - Software 2 01-16-2005 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration