Howto: Adding apt-get package source list to apt-get
Posts: 405
On this site is a list of "unofficial" apt-get source repositories: http://www.apt-get.org/main/
If you want to add a source to apt-get or kpackage, here are the steps.
1. Open /etc/apt/sources.list as root or su using a text editor. (ex. "pico /etc/apt/sources.list").
2. Scroll down to the bottom. There is a comment "# ***Do not edit above this line, ok to change sources below this line***". You can add sources to the file below this line.
3. Pick a sources list.
4. We'll add "deb http://www.perrier.eu.org/samba-debian stable main" as an example. Check above that comment that was mentioned earlier, make sure the source you want to add is not added twice. Usually the list will have "deb" in front then the site and then a word or two after. Be sure to add the whole line as shown on the web site.
5. Write it in or copy the line. You can add a comment or title above it- just make sure you put a "#" in front of the line so that apt doesn't think its a source.
6. Save the file.
7. Either run "apt-update" in the console or open kpackage, click on "special", then "Apt-Debian", and then "Update".
8. If you get errors during the update, this may be because the server is down, no longer there, or the line was not copied correctly. Double check the entry. If it is correct, remove the entry for now and try later.
9. Other sources you may find can be added, but be careful. You don't want to add a backdoor for a cracker and compomise your security.
yet another way to add sources to sources.list
Posts: 69
Hello,
I thought I would add my 2cents worth. This is how i add the source in question to my sources.list.
echo 'the source listing here without quotes' >> /etc/apt/sources.list
Hope this help to make this easier for all.
Steve
"The secret to creativity is knowing how to hide your sources." Albert Einstein
A mistake
Posts: 405
I see I left out "get" after "apt-" in line 7.