First thing you should do is make a backup copy of your current /etc/apt/sources.list by doing the following command:

sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.old

Once you do that and perform the gpg commands at the bottom of this post as well, you'll want to immediately perform the following commands:

sudo apt-get update && sudo apt-get upgrade

If you want to update any kernels or major things like that then run the following command instead:

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

Then open up your favorite editor as root user and copy/paste the following code into the editor and save the file as /etc/apt/sources.list An example of this would be to use the following command:

kdesu kwrite /etc/apt/sources.list

You can replace 'kwrite' with your favorite editor. If you want to do it with a CLI editor, then use this command:

sudo vi /etc/apt/sources.list

Copy and paste the following information into the above mentioned file that you have opened in your editor of choice:

# Automatically generated sources.list
# http://www.ubuntulinux.nl/source-o-matic
#
# If you get errors about missing keys, lookup the key in this file
# and run these commands (replace KEY with the key number)
#
# gpg --keyserver subkeys.pgp.net --recv KEY
# gpg --export --armor KEY | sudo apt-key add -

# Ubuntu supported packages 
#(packages, GPG key: 437D05B5)
deb http://se.archive.ubuntu.com/ubuntu dapper main restricted
deb http://se.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://security.ubuntu.com/ubuntu dapper-security main restricted

# Ubuntu supported packages 
#(sources, GPG key: 437D05B5)
deb-src http://se.archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://se.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

# Ubuntu community supported packages 
#(packages, GPG key: 437D05B5)
deb http://se.archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://se.archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse

# Ubuntu community supported packages 
#(sources, GPG key: 437D05B5)
deb-src http://se.archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://se.archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse

# kubuntu.org packages for the latest KDE version 
#(packages, GPG key: DD4D5088)
#deb http://kubuntu.org/packages/kde-latest dapper main

# kubuntu.org packages for the latest Koffice version 
#(packages, GPG key: DD4D5088)
deb http://kubuntu.org/packages/koffice-latest dapper main

# kubuntu.org packages for the latest amaroK version 
#(packages, GPG key: DD4D5088)
deb http://kubuntu.org/packages/amarok-latest dapper main
deb-src http://kubuntu.org/packages/amarok-latest dapper main

# Bleeding edge wine packages (packages)
#deb http://wine.budgetdedicated.com/apt dapper main

# The Opera browser (packages)
deb http://deb.opera.com/opera etch non-free

# Bazaar-NG development 
#(packages, GPG key: 1F44842D)
#deb http://people.ubuntu.com/~jbailey/snapshot/bzr ./

#deb http://download.skype.com/linux/repos/debian/ stable non-free

#deb http://download.videolan.org/pub/videolan/debian/ sid main

## http 100mbit/s mirror provided thanks to OVH (http://ovh.com)
deb http://packages.freecontrib.org/plf/ dapper free non-free
deb-src http://packages.freecontrib.org/plf/ dapper free non-free

# seb128 repository (gaim - rhythmbox)
deb http://people.ubuntu.com/~seb128/deb ./

# BMPx
deb http://eros.vlo.gda.pl/~szuwarek/files/linux/bmpx/ dapper/

# Samba
#deb http://www.linux2go.dk/ubuntu dapper main

# Gauvain Repository
#deb http://gauvain.tuxfamily.org/repos dapper contrib
#deb-src http://gauvain.tuxfamily.org/repos dapper contrib

# Mjpegtools and Cinelerra packages (choose your arch)
deb http://www.kiberpipa.org/~gandalf/ubuntu/dapper/mjpegtools ./
deb http://www.kiberpipa.org/~gandalf/ubuntu/dapper/cinelerra/i686/ ./
# deb http://www.kiberpipa.org/~gandalf/ubuntu/dapper/cinelerra/pentium4/ ./
# deb http://www.kiberpipa.org/~gandalf/ubuntu/dapper/cinelerra/athlonxp/ ./

# A little too quiet
#deb http://apt.alittletooquiet.net/staging dapper main

# MythTV 0.19
#deb http://home.eng.iastate.edu/~superm1 dapper main
#deb-src http://home.eng.iastate.edu/~superm1 dapper main

# Koffice 1.5.2 - J Riddell
deb http://kubuntu.org/packages/koffice-16beta1/ dapper main
deb http://kubuntu.org/packages/kde-353/ dapper main

deb http://se.archive.ubuntu.com/ubuntu/ dapper-backports main
#deb-src http://se.archive.ubuntu.com/ubuntu/ dapper-backports main 
deb http://se.archive.ubuntu.com/ubuntu/ restricted universe multiverse
#deb-src http://se.archive.ubuntu.com/ubuntu/ restricted universe multiverse

# imbrandons personal repos
deb http://imbrandon.com/packages dapper amarok
deb http://imbrandon.com/packages dapper konversation-nightly

# SoS repos
deb http://SeerOfSouls.com/ dapper contrib
#deb-src http://SeerOfSouls.com/ dapper contrib
#deb http://SeerOfSouls.com/ dapper e17
#deb-src http://SeerOfSouls.com/ dapper e17

And the gpg commands to import the keys are as follows:

You'll want to perform all of the following commands as root user:

gpg --keyserver subkeys.pgp.net --recv B0B7481B1F44842D && gpg --export 
--armor B0B7481B1F44842D | sudo apt-key add - 

gpg --keyserver subkeys.pgp.net --recv A506E6D4DD4D5088 && gpg --export 
--armor A506E6D4DD4D5088 | sudo apt-key add - 

gpg --keyserver subkeys.pgp.net --recv 49A120FD1135D466 && gpg --export 
--armor 49A120FD1135D466 | sudo apt-key add - 

gpg --keyserver subkeys.pgp.net --recv 4CF19C3233BAC1B3 && gpg --export 
--armor 4CF19C3233BAC1B3 | sudo apt-key add -

gpg --keyserver subkeys.pgp.net --recv 07DC563D1F41B907 && gpg --export 
--armor 07DC563D1F41B907 | sudo apt-key add -

gpg --keyserver subkeys.pgp.net --recv 31A5F97FED8A569E && gpg --export 
--armor 31A5F97FED8A569E | sudo apt-key add -

gpg --keyserver subkeys.pgp.net --recv A278DF5EE8BDA4E3 && gpg --export 
--armor A278DF5EE8BDA4E3 | sudo apt-key add -

gpg --keyserver subkeys.pgp.net --recv F653CB3098D3F7A7 && gpg --export 
--armor F653CB3098D3F7A7 | sudo apt-key add -

gpg --keyserver subkeys.pgp.net --recv 580E2519969F3F57 && gpg --export 
--armor 580E2519969F3F57 | sudo apt-key add -

wget http://www.geole.de/fileadmin/data/misc/geole-apt-key.gpg
sudo apt-key add geole-apt-key.gpg
wget http://seerofsouls.com/keys/hawkwind.asc 
sudo apt-key add hawkwind.asc
wget http://seerofsouls.com/keys/philip.asc
sudo apt-key add philip.asc