Twitter: putting my WordPress fanboyism aside, grats to my homie @mjmalone making a nice, yet sad [...]

Ubuntu Quickie: Enable Dapper Repositories

May 13, 2006 in ,

While messing around on my linux box running Ubuntu 5.10 Breezy Badger, I had the idea to add some repositories to allow the computer access to various packages and upgrades from the Dapper Drake beta. Repositories, in this case, are online reserves of thousands of linux applications, files and packages. Just about anything your linux computer needs to upgrade or stay secure can be found on repositories. If you are not checking enough repositories, especially frequently updated ones, your computer could be using older, possibly unstable versions of software.

By adding Dapper Drake repositories, we will be given access to newer software for the next version of Ubuntu (6.0+). Dapper Drake is currently a beta but in my testing with it, it’s rock solid and the benefits of upgrading more than outweigh the drawbacks. Note: Before proceeding make sure you are running the latest software for Breezy Badger by excuting the following lines in the terminal: sudo apt-get update and sudo apt-get dist-upgrade.

First off, backup your repository sources list by copying it to a different name. If anything goes wrong, you can revert to it by copying the old file to sources.list.

sudo cp /etc/apt/sources.list /etc/apt/sources.bak

Edit the original repository sources file with the nano text editor and add the lines below. The w flag for nano enables linewrap, making it much easier to work with the terminal-based editor. Alternatively you can substitute nano -w with gedit if you are more comfortable working with a GUI-enabled text editor.

sudo nano -w /etc/apt/sources.list

The following lines go into the sources.list file which you have begun to edit from the line above. Save sources.list when you’re done. Essentially what we’re doing is taking the current sources.list and changing every occurrence of badger with dapper. Watch out for line wraps, there are only 15 lines below.

deb http://us.archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://us.archive.ubuntu.com/ubuntu dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper universe
deb http://us.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
deb http://archive.ubuntu.com/ubuntu dapper multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper multiverse
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

Now that you have added all of the Dapper Drake repositories, it is time to use them. Execute the lines below in the terminal to start downloading and installing major software updates. This can take about an hour and it is a good idea to back up those vital documents before continuing. Although, having done this on two separate computers, I have not noticed any problems. The best part is the update to Gnome that adds a very nice theme.

sudo apt-get update
sudo apt-get dist-upgrade

If you have any problems with repositories, the repositories section of Ubuntuforums.org is a great resource.

Promote this article on various sites or email to your friends:     



16 Comments

  1. All talk about Ubuntu and his fabulous update system “apt” Have you ever try Gentoo with portage???
    What the differences???
    I’ll try that :-)

  2. Yes, I have used Gentoo for over a year. The emerge system is really nice. I actually prefer it over apt-get but even getting Gentoo to install requires some skill. I like how emerge compiles on the spot so all of your apps are optimized, however that takes a long time. Updating the latest firefox takes like 15 minutes.

  3. This is gold. Dapper really ought to have these sources in the sources.list file but commented out by default, as many things (such as liblame) simply are not installed and are hard to find if you don’t know just where to look.

  4. Are these for updating fully to dapper from breezy? Will this be pretty much the same as just installing from the cd?

  5. Yeah pretty much. However, I did this because I already have a computer loaded with Breezy Badger.

  6. I was just checking because I was considering formatting and just starting fresh because i had just installed breezy only a day or two ago, so i haven’t really set anything up yet. I just did your method and I do like the result so far.

  7. I tried this and now Konqueror is not working for directory contents examination. I have also lost Open Office and Ark and who know’s what else. Any suggestions?

  8. Frank, you’re in Ubuntu and not Kubuntu right? Update all of your packages as Dapper Drake is a major update so things might not work in their older form. As a last ditch effort check out ubuntuforums.org.

  9. Correction, Kubuntu, not Ubuntu. I’m rather ne to this and current receive a distinct feeling that makes a difference, yes?

  10. Correction, Kubuntu, not Ubuntu. I’m rather new to this and current receive a distinct feeling that makes a difference, yes?

  11. Eek, yeah there is a difference between the two. Kubuntu uses the KDE window manager and now that you have added Ubuntu repositories and updated, it just installed a bunch of Gnome stuff. Perhaps, try to find out if there are some equivalent Kubuntu repositories you can update instead, on those forums.

  12. I use Kubuntu and from what I notice it uses the same repositories from a base install.

  13. I did update with update manager.
    Then changed to dapper repositories.
    It doesn’t prompt me to upgrade to dapper.
    What’s wrong?

  1. [...] Today is the day..Ubuntu Dapper(6.06) is officially out! I tried to do a sudo apt-get install update which didnt find the site. I am guessing the site is getting pounded and I tried at least 10 times. After that I finally decided to try something different. I found Adept Updater which installed all the updates through a GUI. Now it’s time to upgrade the distro. I tried sudo apt-get install dist upgrade which gave me the same results as the update. I decided to try the Synaptic Package Manager to try the upgrade to Dapper. I tried to bring it up twice with no luck. I am not real familiar with it but I assume it tries to connect to the Ubuntu update site on start up? After this, I try to use the newly found, for me, Adept Package Manager Adept looks similiar to Synaptic so I decided to give it a try. I thought there would be some kind of notice that there were Dapper upgrades available. This was not the case. I didnt have the Dapper repositories so now its time to Google After searching Google for a bit, I found that I used a slightly wrong command for the distribution upgrade. I should have used apt-get dist-upgrade…which unfortunately didnt work either. I ended up getting an error message this time E: Malformed line 3 in source list /etc/apt/sources.list (dist parse) . What does that mean?? Oh well..lets try something different.. I then found a little help on the net here Adding Dapper Repositories. I found out what the error was on line 3..some kind of junk that got in there. Once I got that out then the sudo apt-get update worked fine. I then ran the apt-get dist-upgrade. I let it download the 937M worth of files! It took just over an hour to download all of the packages. The configuration of the newly installed files took over an hour and a half. [...]

  2. [...] First, you’ll want to set up your apt sources like so. Then, run this apt-get command (ed: minus skype and realplay), and (theoretically) your multimedia will all Just Work ™.   [...]

Post a comment, receive Stammy points.


Send a trackback.


  • If you plan on posting code, run it through Postable first.
Copyright © 2005 - 2008 PaulStamatiou.com  Privacy Policy - Terms of Service Can't spell my name? Use PSTAM.com. Go back up ↑.