Skip to content Skip to sidebar Skip to footer

How to Add Sources to the SOURCES.LIST File

Why Add Anything to that File?


If you go around the Internet and find a package that you would like to use, usually you have to install from a .deb file using a .deb package installer. These packages, however, do not get updated via the Adept-updater like the packages you install in Adept or Synaptic.
The .deb packages are considered “manually installed” and as Adept doesn't have sources in the sources.list file for them, they will not be automatically updated. In other words Adept does not know where to look for updates.

Usually packages that offer the ability to add a source to Adept will have this listed on their website. A source line for sources.list looks like this:
deb http://us.archive.ubuntu.com/ubuntu/ intrepid main restricted

Usually packages that offer the ability to add a source to Adept will have this listed on their website. A source line for sources.list looks like this:
deb http://us.archive.ubuntu.com/ubuntu/ intrepid main restricted
The sources.list file can be edited in three ways: via terminal using one of the text editors, Adept, and Synaptic.

Adding sources to apt

Synaadept

Terminal

Type in terminal:
nano /etc/apt/sources.list
Scroll to the bottom and add the line. You can put in a comment before the line to make a note for yourself that you added that line. The result should look like this:
# madberry's lines
deb http://us.archive.ubuntu.com/ubuntu/ intrepid main restricted
To close the file, hit Ctrl+X, type yes, and then hit enter. The source is now added. Type the following commands in terminal to update the sources.
sudo apt-get update
sudo apt-get install PackageName

In Adept

Open Adept: kmenu>system>Adept Package Manager. Note this is Adept for KDE 4.

The default window.

02-adapt-select-sources

Click Sources in the left menu (the big icons), and this window will come up. Click “Edit Software Sources”.

03-adept-edit-sources-clicked
Now click on “Third-Party Software”.

04-adept-click-add
Click on Add.

05-adept-add-apt-reposetory
Enter the repository line just like you copied it. Now click OK.

06-adept-make-sure-checked
Make sure the new source is checked. Click Close.

07-adept-it-will-fetch
Adept will now start fetching the package files from the sources.
After this finishes, click Search and find the package you want to install.

In Synaptic

Start Synaptic: kmenu>system>Synaptec Package Manager.
08-synaptec
This screen shot shows the default window.

09-synaptec-setting-reposetorys
Click on Settings, and then click on Repositories.

10-synaptec-select-third-party
Click on the “Third-Party Software” tab.

11-synaptec-click-add
Click the Add button.

12-synaptec-add-the-source
Enter the APT line. Click “Add Source”.

13-click-revert
Click “Revert” and “Close”.

15-synaptec-it-will-reload
Now hit “Reload”.
Package files are being loaded.
After the reload is done, enter the package name in “Quick Search”.

Repost From http://www.brighthub.com/computing/linux/articles/21581.aspx

Post a Comment for "How to Add Sources to the SOURCES.LIST File"