apt- get update or synaptic not working

Asked by pranav

hi,
the problem i am having is iam not able to connect to any of these servers to upgrade or install new programs if you can have a look on the source file . I have internet can go onto this servers by mozilla can download anything I think it is just in this file i am having trouble. apt-get update/upgrade doesnot work either just waits at 0% .Please help.
this is my source.list file
deb http://us.archive.ubuntu.com/ubuntu dapper main
deb-src http://us.archive.ubuntu.com/ubuntu dapper main
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu dapper-updates main
deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main
## 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 dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper 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/dists dapper-backports main restricted universe multiverse
##deb-src http://us.archive.ubuntu.com/ubuntu/ dists dapper-backports main restricted universe multiverse

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

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Hi,
did you edit the sources.list manually?
I would correct:

# Ubuntu supported packages
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

# Ubuntu community supported packages
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-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ dapper multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper multiverse
deb http://us.archive.ubuntu.com/ubuntu/ dapper-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-updates 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://security.ubuntu.com/ubuntu dapper-security multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security multiverse

try copy & paste
then #sudo apt-get update

Revision history for this message
pranav (pranav1sood-gmail) said :
#2
Revision history for this message
Sam_ (and-sam) said :
#3

Hi,
the sources.list I wrote doesn't include the archive ubuntu/pool ;-)
I don't see an error message, it just can't get the packages. You should verify the source is activated.
I've reached [http://us.archive.ubuntu.com/ubuntu/pool/main/c/cupsys/], but it took an awful long time, maybe you just try the upgrade later.
Also try to clean with #sudo apt-get autoclean.
Then again #sudo apt-get update and #sudo apt-get upgrade.

btw. Before editing a system file like sources.list you should always make a backup from the clean original one.
The system itself creates one also, it's in /etc/apt/sources.list.bak (in Hardy LTS it calls sources.list.save)

Good luck

Revision history for this message
pranav (pranav1sood-gmail) said :
#4

Thnks SAM for u r suggestion but i am still having the problem I am not able to update my system eithet by get-apt or synaptic and cannot add remove programs too. i did as u told got the bakup file copy pasted it still no sucess.

Revision history for this message
Sam_ (and-sam) said :
#5

Hi pranav,
please provide exactly the steps you've made and show the outputs.
e.g. I made
#sudo apt-get update
Output

Please show the new sources.list you put in order, it should not have the ending .bak or .backup of course.
After you choose a new one try:
#sudo dpkg --configure -a

Important is, when you still run dapper, that before dist-upgrading to hardy, you have to make sure installing all the latest updates for dapper and this is what we will try now.

Revision history for this message
Papa Moussa N. Gueye (gueyepaco1) said :
#6

Hi I think you have to reinitialize your netcard typing the command /etc/init.d/networking restart

Can you help with this problem?

Provide an answer of your own, or ask pranav for more information if necessary.

To post a message you must log in.