Lately I’ve noticed (due to hits on my blog and recurring posts on Ubuntu Forums) that there simply isn’t an easy-to-find guide on Ubuntu Repositories (what’s available and how to update them).

This isn’t meant to be an official tutorial by any means, but it may help those folks who have already installed Ubuntu and are wanting to try a bigger variety of apps. There are excellent how-to guides on the UbuntuLinux site for detailed info on just about anything Ubuntu. See links embedded throughout this post like this one or this other one.
Here’s what I can offer on repositories, though. I’m on Hoary already, so my list of repositories will look a little different from those on Warty. If you’re on Warty, and looking to upgrade some apps (like to Firefox 1.0 or Gaim 1.1.0) without upgrading your distro (aka “backports”), simply add this repository to your /etc/apt/sources.list file:
deb http://backports.ubuntuforums.org/backports warty-backports main universe multiverse restricted
Now here’s my /etc/apt/sources.list (standard Hoary repositories, mostly):
## The following lines pertain to supported packages:
deb http://archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://archive.ubuntu.com/ubuntu hoary main restricted## The following lines pertain to security updates:
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted## Uncomment after release to continue getting updates:
# deb http://archive.ubuntu.com/ubuntu hoary-updates main restricted## IMPORTANT:
## Software from the following repositories are ENTIRELY UNSUPPORTED by
## the Ubuntu team, and may not be under a free licence. This means that
## software in these repositories WILL NOT receive any review or updates
## from the Ubuntu security team either. These packages are provided as a
## service to our users and nothing more.## Uncomment the following two lines to add software from the ‘universe’ and
## ‘multiverse’ repositories:
deb http://archive.ubuntu.com/ubuntu hoary universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary universe multiverse## Uncomment the following line to add Java software:
deb http://jrfonseca.dyndns.org/debian/ ./
deb http://ubuntu.tower-net.de/ubuntu warty java
This is taken directly from the Ubuntu wiki, so you can trust it. Warty users will see a very similar list, only it will have “warty” everywhere you see “hoary” here.
You’ll find this list under /etc/apt/sources.list
Just vi into the file, or use emacs to open it, modify and save. Then type “apt-get update” to refresh your list of available apps.
I highly suggest uncommenting (taking out the little # symbols) the universe and multiverse repositories. There’s a TON of good stuff in there and I haven’t installed anything yet that hasn’t played well with my config.
A really great java repository is “deb http://ubuntu.tower-net.de/ubuntu warty java”
Yeah– I know it says warty, but these versions of java work fine on warty or hoary. They are a little harder to find in the list on Synaptic since they are labelled “sun java” instead of just “java.” Of course, you’ll still have to make a link in the mozilla firefox plugins directory back to the appropriate runtime file in the newly-installed java directory after installation. That will work something like this–
$ cd /usr/lib/mozilla-firefox/plugins/
$ sudo ln -s /usr/lib/j2se/1.4/jre/plugin/i386/mozilla/libjavaplugin_oji.so
I know from experience that finding the easy way to get java on Ubuntu ain’t easy. I hope this helped a little for those trying so hard to get the answers from a search engine.
I do highly recommend using Synaptic, as well. There is no easier way of shopping for and installing new apps. It makes the whole experience SO EASY!!!

Synaptic makes updating repositories easy, too. Simply click on “Settings,” then “Repositories.” Modify existing or add new to your heart’s content, then Reload for your new list of apps.

The most popular “non-official” ubuntu-related repositories can be found at BreakMyUbuntu in the ubuntulinux.org wiki. These include repositories for restricted non-supported formats like java and multimedia codecs (among other pretty cool apps and libraries). You can see from this post how easy it is to add and remove ubuntu repositories, so give ‘em a try!
One last thing: I HIGHLY advise against using a standard debian repository to install apps on Ubuntu. It can be done, quite easily as a matter of fact, but I can tell you from personal experience that if you accidentally upgrade core applications with apps from that debian repository, you can seriously damage Ubuntu. Best to simply avoid them, altogether. Plenty of great Ubuntu repositories out there, anyways. If you’re having trouble finding what you want from the repositories you have, ask around at ubuntuforums.org.
–References–
Installing Java on Ubuntu
Adding Repositories for Ubuntu




























