how can i change my mirror

Asked by Myroslav

I have been using ubuntu 8.04-beta for several months. Since the release of the lts, I have not been able to update properly. Update manager says I have last updated 15 days ago. I get the message "Cannot download all repository indexes" with the following:

Failed to fetch http://gulus.usherbrooke.ca/ubuntu/dists/hardy/Release Unable to find expected entry web/binary-i386/Packages in Meta-index file (malformed Release file?)
Failed to fetch http://gulus.usherbrooke.ca/ubuntu/dists/hardy-updates/Release Unable to find expected entry web/binary-i386/Packages in Meta-index file (malformed Release file?)
Failed to fetch http://gulus.usherbrooke.ca/ubuntu/dists/hardy-security/Release Unable to find expected entry web/source/Sources in Meta-index file (malformed Release file?)
Failed to fetch http://gulus.usherbrooke.ca/ubuntu/dists/hardy-proposed/Release Unable to find expected entry web/binary-i386/Packages in Meta-index file (malformed Release file?)
Failed to fetch http://security.ubuntu.com/ubuntu/dists/hardy-security/Release Unable to find expected entry web/binary-i386/Packages in Meta-index file (malformed Release file?)
Failed to fetch http://gulus.usherbrooke.ca/ubuntu/dists/hardy-backports/Release Unable to find expected entry web/binary-i386/Packages in Meta-index file (malformed Release file?)
Some index files failed to download, they have been ignored, or old ones used instead.

Below are the contents of my etc/apt/sources.list.save file:

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy restricted main #Added by software-properties
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Alpha i386 (20080306.1)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted web
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy multiverse web universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates main restricted web
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-updates restricted main multiverse web universe #Added by software-properties

## 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://ca.archive.ubuntu.com/ubuntu/ hardy universe
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates universe

## 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
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## 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-src http://ca.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://ca.archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-security restricted main multiverse universe #Added by software-properties
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-security universe
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-security multiverse

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb http://ppa.launchpad.net/fta/ubuntu hardy main
deb http://security.ubuntu.com/ubuntu/ hardy-security restricted main multiverse universe web
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-security web #Added by software-properties
deb http://ppa.launchpad.net/awn-testing/ubuntu hardy main
deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-proposed restricted main multiverse universe web
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-backports restricted main multiverse universe web

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Myroslav
Solved:
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for the question.

This looks like a problem with the mirror you use. Try another mirror.

Hope this helps.

Revision history for this message
Myroslav (mgalan) said :
#2

Thank you Ralph for the response.

I tried your suggestions with many mirrors. The problem remains.

MG

Revision history for this message
Ralph Janke (txwikinger) said :
#3

After further scrutiny on your sources file, I notice that you have a section called "web" in there. This does not exist in Ubuntu repos.

Example:

deb http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted web

delete web from all those lines =>

deb http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted

and try it again.

Hope this helps.

Revision history for this message
Myroslav (mgalan) said :
#4

Nice try. Problem remains.

Revision history for this message
Markus Thielmann (thielmann) said :
#5

If you still get the error "Unable to find expected entry web", then you did not remove all "web" from all source-lines like Ralf proposed. Please try again.

Revision history for this message
Myroslav (mgalan) said :
#6

Thank you Markus for responding.

I triple-checked the "web" references and they are gone. My problem remains unsolved.

Thanks,

MG

Revision history for this message
Philipp Bönhof (phboe-launchpad) said :
#7

I really don't see where you get the http://gulus.usherbrooke.ca server from.

When I do a "sudo apt-get update" I only get addresses with servers which occur also in my "/etc/apt/sources.list".

Maybe you should check also the configuration of the "Software Sources" in the menu: System -> Administration -> Software Sources.

Hope this brings you a bit forward.

Revision history for this message
Myroslav (mgalan) said :
#8

Thank you for your response.

The server is the one recommended as "best server". When I try other mirrors I get the same error: "failed to fetch...".

Could it be a DNS issue. In Windows xp, the address is different. When I try that address in ubuntu, I get no internet connection. This problem correlates with the time that I did a firmware upgrade to my router. Maybe there is some issue with the router. However, I am really not that knowledgeable about these things.

Revision history for this message
Markus Thielmann (thielmann) said :
#9

Please add the output of

1) ls /etc/apt/
2) ls /etc/apt/sources.list.d/

Revision history for this message
Myroslav (mgalan) said :
#10

Is this what you'd like to see?

mg@mg-desktop:~$ sudo ls /etc/apt/
[sudo] password for mg:
apt.conf.d sources.list sources.list.d sources.list.save~ trusted.gpg
secring.gpg sources.list~ sources.list.save trustdb.gpg trusted.gpg~

mg@mg-desktop:~$ ls /etc/apt/sources.list.d/
medibuntu.list medibuntu.list.save
mg@mg-desktop:~$

Revision history for this message
Philipp Bönhof (phboe-launchpad) said :
#11

Yes I really think as well that's what Markus asked for.

As you really say this could be indeed also a problem with your internet connection on your Ubuntu. Can you give the output of:

ping -c 5 gulus.usherbrooke.ca

Please run it from your Ubuntu. I just tried it now and got:

PING gulus.usherbrooke.ca (206.167.141.10) 56(84) bytes of data.
64 bytes from gulus.usherbrooke.ca (206.167.141.10): icmp_seq=1 ttl=47 time=123 ms
64 bytes from gulus.usherbrooke.ca (206.167.141.10): icmp_seq=2 ttl=47 time=124 ms
64 bytes from gulus.usherbrooke.ca (206.167.141.10): icmp_seq=3 ttl=47 time=123 ms
64 bytes from gulus.usherbrooke.ca (206.167.141.10): icmp_seq=4 ttl=47 time=124 ms
64 bytes from gulus.usherbrooke.ca (206.167.141.10): icmp_seq=5 ttl=47 time=125 ms

--- gulus.usherbrooke.ca ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 7133ms
rtt min/avg/max/mdev = 123.039/124.296/125.548/0.927 ms

If you don't get something similar, try as well

ping -c 5 www.google.com

if this fails as well then you really have a problem with the network connection. Maybe your router does not automatically assign a IP address to your Ubuntu and tells it what DNS it should use.

If it is really such a problem we can focus first on that.

Revision history for this message
Myroslav (mgalan) said :
#12

Thank you for your response.

My network connection is ok.

I solved my problem by removing all references to "web" in the etc/apt/sources.list file a few days ago. I had, after previous recommendations, removed these references from the etc/apt/sources.list.save file because I did not know how to edit the sources.list file, and that did not work. Now that I figured out how to access and edit the right file, all is fine.

I better check this problem off as solved.

Revision history for this message
supercompman (supercompman) said :
#13

I just started having the same problem a few days ago. Removing "web" references in my sources.list file fixed this issue for me too. My question is how did these references get there in the first place (I know for certain that I didn't put them there) and is this a bug in one of the update packages that should be resolved (I assume it is)? If this is a bug, which I don't know how it couldn't be, I would like to make sure there is an issues in the bug tracker system for it.

Revision history for this message
Myroslav (mgalan) said :
#14

supercompman wrote:
> Your question #32752 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/32752
>
> supercompman posted a new comment:
> I just started having the same problem a few days ago. Removing "web"
> references in my sources.list file fixed this issue for me too. My
> question is how did these references get there in the first place (I
> know for certain that I didn't put them there) and is this a bug in one
> of the update packages that should be resolved (I assume it is)? If this
> is a bug, which I don't know how it couldn't be, I would like to make
> sure there is an issues in the bug tracker system for it.
>
>
This is a very good point. I hope someone has an answer.

Revision history for this message
Guillaume (guillaume-ehrenfeld) said :
#15

Install a plugin with Firefox and he asks you something like « Do you want to enable the following component: 'web'? »

Revision history for this message
Myroslav (mgalan) said :
#16

Hi Don,

To change the mirror simply go to System>Administration>Software
Sources. After entering your password a dialogue box will appear.
Select your mirror from the item "Download from". It is usually
recommended to select "Other" and then "Select best server" and wait for
the system to choose a mirror for you, but you can play it as you wish.

M

don tubor wrote:
> Your question #32752 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/32752
>
> Summary changed to:
> how can i change my mirror
>
>