PDA

View Full Version : [ubuntu] How do i repair or remove a faulty repository ?



Humpeligimp
April 9th, 2009, 12:58 PM
Whenever i use update manager or software sources i get the following error.


Failed to fetch http://archive.ubuntu.com/ubuntu/dists/intrepid/Release Unable to find expected entry deb-src/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.

I have clicked aruond in the two apps, but can't figure out how to repair or remove this.

Any suggestions ?

TIA Humpeligimp

upchucky
April 9th, 2009, 01:26 PM
select System-->Administration-->software sources-->Download From Main Server.

select System-->Administration-->Update manager

This should fix the missing file, if not try different servers in the list.

Humpeligimp
April 9th, 2009, 01:50 PM
Well. when the error first acurred it was set to the server for Denmark, and resulted in this error


Failed to fetch http://dk.archive.ubuntu.com/ubuntu/dists/intrepid/Release Unable to find expected entry deb-src/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.

Then i changed it to main server resulting in the error described in the original post. Furthermore update manager launched itself five times just to tell me that there was no new updates, and that i have last checked three days ago.


Now i tried to chage it back to main: still error and update manager launches.

Then i changed it to UK server: error again.

coffeecat
April 9th, 2009, 02:06 PM
There's probably been a coding mistake when the meta-package was made up. Hence the error message. It's probably being worked on at the moment, but it'll take time for a repaired metapackage to be uploaded to all the mirrors.

Give it a few hours, then hit the check button in update manager and see if it works OK.

Humpeligimp
April 9th, 2009, 02:12 PM
Give it a few hours, then hit the check button in update manager and see if it works OK.


Its been like this for at least three days:(:

coffeecat
April 9th, 2009, 03:27 PM
I've just done an update in Intrepid using the GB mirror and everything works fine.

Two threads from this forum with same problem. In both cases due to bad lines in the sources.list file.

http://ubuntuforums.org/showthread.php?t=688255

http://ubuntuforums.org/showthread.php?t=965625

Post the contents of your /etc/apt/sources.list file. Let's see if there's a problem there.

Please confirm that you are using Intrepid, which is what the error message suggests, and did you do an upgrade from Hardy, or was this an Intrepid install?

Humpeligimp
April 9th, 2009, 07:33 PM
I am using intrepid and i did a fresh install, not an upgrade.

The problem occurred after i had added some new repositories.

Here's my sources.list


# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://dk.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid main restricted

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://dk.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://dk.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid-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://dk.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://dk.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid-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 http://dk.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid-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 intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://dk.archive.ubuntu.com/ubuntu/ intrepid-security main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid-security main restricted
deb http://dk.archive.ubuntu.com/ubuntu/ intrepid-security universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid-security universe
deb http://dk.archive.ubuntu.com/ubuntu/ intrepid-security multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ intrepid-security multiverse
deb http://packages.medibuntu.org/ intrepid free non-free
deb http://wine.budgetdedicated.com/apt intrepid main
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
deb http://ppa.launchpad.net/deluge-team/ubuntu intrepid main
deb http://dk.archive.ubuntu.com/ubuntu/ intrepid deb-src http://archive.ubuntu.com/ubuntu intrepid
deb http://wine.budgetdedicated.com/apt intrepid main #WineHQ - Ubuntu 8.10 "Intrepid Ibex"
deb http://repos.eeebuntu.org intrepid main non-free contrib

Quite a lot. Could it be this line (no. 3 from bottom):


deb http://dk.archive.ubuntu.com/ubuntu/ intrepid deb-src http://archive.ubuntu.com/ubuntu intrepid ?

Is it enough just to delete the line?

coffeecat
April 9th, 2009, 08:11 PM
Could it be this line (no. 3 from bottom):


deb http://dk.archive.ubuntu.com/ubuntu/ intrepid deb-src http://archive.ubuntu.com/ubuntu intrepid ?

Is it enough just to delete the line?

Yes, I think that is the problem line. It looks like two incomplete lines stitched together. Even if you put a carriage return in halfway through, both lines would still be incomplete. Have a look at the other lines. They should all end 'intrepid something'. Rather than delete the line, comment it out with a hash (#) at the beginning of the line. Then see if everything works OK.

Humpeligimp
April 9th, 2009, 09:17 PM
I commented the line out and everything works fine again.:-)

Thank you very much for your help coffeecat.



Humpeligimp

chomis918
April 26th, 2009, 01:21 PM
Hello!
I have the same problem, is there any problem with my sources.list. If so how do I save the file after deleting the line.


# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. 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/ intrepid universe
deb-src http://archive.ubuntu.com/ubuntu/ intrepid universe
deb http://archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-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://archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-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 http://se.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://se.archive.ubuntu.com/ubuntu/ intrepid-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 intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted
deb http://archive.ubuntu.com/ubuntu/ intrepid-security universe
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security universe
deb http://archive.ubuntu.com/ubuntu/ intrepid-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security multivers
deb http://repository.cairo-dock.org/ubuntu intrepid cairo-dock
# deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
deb http://ppa.launchpad.net/mactel-support/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/mactel-support/ppa/ubuntu intrepid main

coffeecat
April 26th, 2009, 02:15 PM
This looks to be the problem, five lines up from the bottom:



deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security multivers

There's an e missing from multiverse.

Don't delete the line, not if you want it, but simply open it from a terminal with:


gksudo gedit /etc/apt/sources.listRestore the missing e, save the file and you should be OK. That is, unless there's another error I've missed.

chomis918
April 26th, 2009, 09:42 PM
Wow that solved my problem.

Thank you very much, I can finally upgrade to Jaunty Jackalope.