LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ubuntu software repositories aren't working (https://www.linuxquestions.org/questions/linux-software-2/ubuntu-software-repositories-aren%27t-working-822131/)

baronobeefdip 07-25-2010 10:09 PM

ubuntu software repositories aren't working
 
every time i try to update or open synaptic package manager i get an error saying that it failed to connect or something also the update notifier will pop up with errors and there is an ugly red triangle icon with a ! inside of it how do i fix the repositories so they can connect to the server again

screenshots of the error message coming soon

Brains 07-26-2010 12:30 AM

In the past with Ubuntu, I found the default repositories would do that from time to time as the repositories were in a far away land and often a connection could not be established within the proper time frame. Changing them to mirrors closer to home did the trick.

baronobeefdip 07-26-2010 07:14 AM

how do i know which mirrors to select, heck how do i change the mirrors

the sudo apt-get commands work but nothing comes up in synaptic or the update manager

sem007 07-26-2010 09:16 AM

Follow link provided by Brains, to find mirror list.

You can add or remove mirror entry in /etc/apt/sources.list file.

Brains 07-26-2010 12:42 PM

Let's say you're from Bosnia. Go to the page and click on one of the three types of mirrors available from one outfit in Bosnia, they are, http, ftp, and rsync. Http is my preference as they seem to be faster. So click on the http link and you will be taken to this site: http://archive.ubuntu.com.ba/ubuntu/. Put thar URL in place of the default site in your /etc/apt/sources.list as shown in the example below:
Code:

deb http://archive.ubuntu.com.ba/ubuntu/ squeeze main contrib non-free
deb-src http://archive.ubuntu.com.ba/ubuntu/ squeeze main contrib non-free

deb http://mirror.csclub.uwaterloo.ca/debian-security/ squeeze/updates main contrib non-free
deb-src http://mirror.csclub.uwaterloo.ca/debian-security/ squeeze/updates main contrib non-free

deb http://mirror.csclub.uwaterloo.ca/debian-multimedia/ squeeze main
deb-src http://mirror.csclub.uwaterloo.ca/debian-multimedia/ squeeze main

deb http://unofficial.debian-maintainers.org/ sid main contrib non-free restricted
deb-src http://unofficial.debian-maintainers.org/ sid main contrib non-free restricted

deb http://mirror.csclub.uwaterloo.ca/debian-multimedia/ squeeze non-free
deb-src http://mirror.csclub.uwaterloo.ca/debian-multimedia/ squeeze non-free

You will notice my sources.list example above is for Debian testing and I just changed a couple lines to a Ubuntu mirror, of course this won't work but it should give you insight on how to change to better mirror, the section of the line highlighted in blue is the only part you need to change.
Also, do a search in synaptic for apt, there are packages available that can run speed tests on these sites if you want to find the fastest mirror in your area.

baronobeefdip 07-26-2010 07:48 PM

just tried the update again and i got this error message that has a red circle with a white horizontal line in the middle and the title text says "could not download all repository indexes" and the rest of the message says the following

Code:

Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/restricted/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/universe/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/main/source/Sources.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/restricted/source/Sources.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/universe/source/Sources.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/source/Sources.gz  404  Not Found [IP: 91.189.88.37 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/restricted/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/universe/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/main/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/restricted/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/universe/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/binary-i386/Packages.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/source/Sources.gz  404  Not Found [IP: 91.189.92.166 80]
Some index files failed to download, they have been ignored, or old ones used instead.


Brains 07-26-2010 11:32 PM

Had to dig into memory.
Others that had similar situations in the past, being able to connect to the net through one application and not the other, like being able to surf with the browser but not connect to repository mirrors usually had corrupt yum configuration, or home network/router settings changed. The reason I say yum is because this was usually associated with Fedora.
Did you play with firewall settings recently?
Or if on a network or behind a router, something may have been altered from power outage or similar.
IPV6 is also poking at me.

These are some of the areas to look at.

baronobeefdip 07-29-2010 09:38 AM

well now that you mention it there was a power outage a few weeks ago since that hurricane that developed in the gulf the power went out and apparently i mighthave been doing some updates so that might be the problem

i also tried doing a package repair in recovery mode it got the same error

tredegar 07-29-2010 12:32 PM

Quote:

Failed to fetch http://security.ubuntu.com/ubuntu/di...86/Packages.gz 404 Not Found [IP: 91.189.88.37 80]
"Gutsy" is ubuntu 7.10

I believe support has been dropped, because it is so old.

If you go here (I trimmed your earlier link) you can see the distros currently "supported" and the date/time they were last updated.

baronobeefdip 08-04-2010 03:41 PM

then what do you suggest i should do to solve this problem i haven't been able to use the package manager for more that a couple months and i don't want to do a clean install

snowday 08-04-2010 03:49 PM

Quote:

Originally Posted by baronobeefdip (Post 4055959)
then what do you suggest i should do to solve this problem i haven't been able to use the package manager for more that a couple months and i don't want to do a clean install

A clean install of the current release (10.04) is your easiest, cleanest option.

If you don't want to do that for whatever reason, you can do a messy, multi-step "EOL upgrade": https://help.ubuntu.com/community/EOLUpgrades

Ubuntu is a fast-moving distro; if you don't stay on top of upgrades, you'll get left behind. You might want to stick with the Long Term Support releases (like 10.04, which will be supported through April 2013).

baronobeefdip 08-05-2010 04:46 PM

well since there isn't anything else available i should now just do a clean install i need to get my data backed up first this will take a while

tredegar 08-05-2010 05:00 PM

Quote:

well since there isn't anything else available i should now just do a clean install i need
to get my data backed up first this will take a while
Correct. "Gutsy" is ubuntu 7.10 and is no longer supported: Back up your data. Make a clean install.
"Upgrades" are unlikely to work as you are so far behind the 'buntu releases.

Then restore your data from the backup.

baronobeefdip 08-05-2010 10:13 PM

actually i was running 10.04 lucid lynx but what i don't understand is that the code box came back out at me as gutsy is this maybe because that i refused to update it when i first installed it or was this the result of some freak accident

baronobeefdip 08-08-2010 10:49 AM

hey how do you upgrade a version of ubuntu without having to use a cd (or live usb its pretty much the same)

like say i have a friend who is still using karmik koala but wants to upgrade to lucid lynx without having to use another cd from the web site


All times are GMT -5. The time now is 06:39 PM.