PDA

View Full Version : New to Ubuntu, Problem with Repositories


jbrill101
February 25th, 2007, 04:19 PM
I followed the instructions to add the Canonical Repositories listed here https://help.ubuntu.com/community/Repositories/Ubuntu#head-b75a0c6c7e357640731529980d3f3ad3614b9a76
Unfortunately now I cannot access any repositories at all. Everytime it does it gives me the following error message:
E: Type 'http://archive.canonical.com/ubuntu' is not known on line 38 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.

This is even after I have removed that address from my repository list,
I've tried sudo apt-get install -f and it still gives me the same message
I've also tried /etc/apt/sources.list (while in root)
With the following response:
bash: /etc/apt/sources.list: Permission denied
Any suggestions would be appreciated

bapoumba
February 25th, 2007, 05:06 PM
Please open a terminal, and post the output to cat /etc/apt/sources.list.

jbrill101
February 25th, 2007, 05:39 PM
Here is what comes up:
# deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted


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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://us.archive.ubuntu.com/ubuntu breezy universe
# deb-src http://us.archive.ubuntu.com/ubuntu breezy universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu breezy-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 breezy-security universe
# deb-src http://security.ubuntu.com/ubuntu breezy-security universe
deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted
http://archive.canonical.com/ubuntu dapper-commercial main

bapoumba
February 25th, 2007, 06:10 PM
Your last line should start with "deb".

In addition, some of your repositories are commented (the line starts with a #, meaning it's not taken into account).

So edit the file. Run in a terminal:
sudo nano -B /etc/apt/sources.list
nano is a small text editor.

Remove what is in red and add what is in green. The two "dapper" in green should replace two "breezy"
Here is what comes up:
# deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted


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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://us.archive.ubuntu.com/ubuntu breezy universe
# deb-src http://us.archive.ubuntu.com/ubuntu breezy universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# 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 breezy-security universe multiverse
# deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse
deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted
deb http://archive.canonical.com/ubuntu dapper-commercial main

CTRL-O (like in ocean) to save the file, with the same name (hit <enter>) then CTRL-X to exit.

Do you still have errors to:
sudo aptitude update

If you are not sure, edit your source.list file, save it and post it back in here.

jbrill101
February 25th, 2007, 06:59 PM
Everything works just fine now, thank you

bapoumba
February 25th, 2007, 07:04 PM
You're welcome :)

kristalsoldier
February 28th, 2007, 06:40 PM
Hi...

I seem to be running into the duplicate problem, which, I believe is related to this thread. My source.list output is as follows:

## Uncomment the following two lines to fetch updated software from the network
deb http://archive.ubuntu.com/ubuntu edgy main restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://archive.ubuntu.com/ubuntu edgy-updates main restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu edgy universe
# deb-src http://archive.ubuntu.com/ubuntu edgy universe

deb http://security.ubuntu.com/ubuntu edgy-security main restricted multiverse
# deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted

deb http://security.ubuntu.com/ubuntu edgy-security universe
# deb-src http://security.ubuntu.com/ubuntu edgy-security universe

deb http://archive.canonical.com/ubuntu edgy-commercial main
deb http://security.ubuntu.com/ubuntu/ edgy-security restricted main universe
deb http://archive.ubuntu.com/ubuntu/ edgy-updates restricted main universe
deb http://archive.ubuntu.com/ubuntu/ edgy-proposed restricted main multiverse universe

What am I missing?

Thanks

EDIT: Problem Fixed!