Contents-arch.gz not found

Bug #220396 reported by François Marier
12
Affects Status Importance Assigned to Milestone
Ubuntu Website - OBSOLETE
Invalid
Undecided
Unassigned
apt-file (Debian)
Fix Released
Unknown
apt-file (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Revision history for this message
François Marier (fmarier) wrote :

Actually the Debian bug is irrelevant to this one. It talks about a proxy and I'm not running one.

Also, the Debian reporter says that he could get the files directly using wget whereas they don't exist in my case (click the links above to see).

Not being able to get the data to search into probably breaks this package completely.

Changed in apt-file:
status: Unknown → Fix Committed
Revision history for this message
Alex Muntada (alex.muntada) wrote :
Changed in apt-file:
status: Fix Committed → Fix Released
Revision history for this message
Pedro Francisco (pedrogfrancisco) wrote :

According to the info below, Debian removes Contents-i386.gz from **CD-ROMs** to save space.

I'm guessing some mirrors don't generate Contents-ARCH.gz to save space or because they're lazy.

==> Also, I read on some tab I closed before I realized what I was doing that since DIST-updates and DIST-security provide the same files as the "original" repository, it makes no sense to have double Contents-ARCH.gz .

So I guess it's a "mark this bug as Invalid", I suppose?

Related info:
= Title: Contents-arch.gz not found on Debian **CDs**
== Taken from mailing list here: http://teams.debian.net/lurker/message/20080502.170829.be263391.en.html
=== Subject:Contents-i386.gz
=== Message: I'm running lenny and tried to use the apt-file command" which fails on Debian CD-ROMs

Why: removed from CDs due to space constraints ( http://teams.debian.net/lurker/message/20080517.231329.6149f04e.en.html )
Debian bug assigned to the ***CD-ROM*** issue: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368178

Revision history for this message
Alex Muntada (alex.muntada) wrote :

@pedrogfrancisco: the errors I reported above apply to the official ubuntu archive, so there's no mirror involved.

WRT the DIST-updates and DIST-security providing the same Contents-ARCH.gz, I cannot tell for sure, but it wouldn't be surprising to have different (e.g. more) files in an update or a security fix. And, if there's really no difference at all, why not just symlinking them?

OTOH, it could be just a bug in http://launchpad.net/ubuntu-website and not in apt-file Ubuntu package.

Revision history for this message
Matthew Nuzum (newz) wrote :

This is outside the scope of the Ubuntu website product

Changed in ubuntu-website:
status: New → Invalid
Revision history for this message
Zoubidoo (zoubidoo) wrote :

This also happens on Ubuntu Hardy 8.04 (32-bit)
apt-file 2.1.0

$ sudo apt-file update
Can't get http://trylegaldownloads.de/ubuntu/dists/hardy/Contents-i386.gz

I checked the location and while there are some files the one above is absent.

This is different from the assigned debian bug (that is about a proxy issue)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476961

A related debian bug is
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476961
apt-file 2.1.2 fixes the problem.

So does this fix the problem on ubuntu boxes too? If so how about getting it released?

Revision history for this message
ajonat (ajonat) wrote :

This is happening to me too, usign the official hardy archive.

ajonat@daphne:~$ sudo apt-file update
Can't get http://archive.canonical.com/ubuntu/dists/hardy/Contents-i386.gz (404)

apt-file is useless if Contents-ARCH.gz is not in the archive.

Revision history for this message
Mike Mol (mikemol) wrote :

Also happening to me, using official hardy archive

shortcircuit@cheshire~
15:26:34 $ sudo apt-file update
Can't get http://archive.canonical.com/ubuntu/dists/hardy/Contents-amd64.gz

Revision history for this message
ajonat (ajonat) wrote : Re: [Bug 220396] Re: Contents-arch.gz not found

Mike Mol <email address hidden> wrote:
> Also happening to me, using official hardy archive
>
> shortcircuit@cheshire~
> 15:26:34 $ sudo apt-file update
> Can't get http://archive.canonical.com/ubuntu/dists/hardy/Contents-amd64.gz
>

dpkg-query -S [file] is an alternative

Saludos,
Alex.

Revision history for this message
François Marier (fmarier) wrote :

Hi Alex,

apt-file has one important difference with "dpkq-query -S": its search is not limited to packages which are already installed.

Francois

Revision history for this message
ajonat (ajonat) wrote :

François Marier <email address hidden> wrote:
> Hi Alex,
>
> apt-file has one important difference with "dpkq-query -S": its search
> is not limited to packages which are already installed.
>
> Francois
>

I know, I didn't mean dpkg-query -S was a full replacement (if it were,
there would be no point in having a program such as apt-file). Anyway, I find
it difficult that Contents-arch.gz will be uplodead to the server any time
soon :(

Saludos,
Alex.

Revision history for this message
Pedro Francisco (pedrogfrancisco) wrote :

Before yelling at me read the "P.S.:" at the bottom of this message.

Ok, let me repeat this again: apt-file works even with the errors described above.
The only repos that AFAIK are giving the aforementioned error are:

hardy-updates[1]
hardy-security[1]
and PPA repositories.

as the normal ones ( hardy[1] ) work flawlessly, apt-file gets all the info it needs.

Remember, within one release, packages aren't supposed to change (much); they may be patched, but version changes and stuff like that aren't supposed to happen, so a package in hardy-updates/security should have the same files within it as the original package in "hardy". So the _list_ of files for each package in "hardy" is the same of the package with the same name in hardy-updates/security.

[1] Replace hardy by your current version.

We want a clearer error message or a patched version of apt-file which doesn't confuse anyone.

P.S.: decided to do sudo apt-file update once again and this time it... worked????? for all repos except:

$ sudo apt-file update
Can't get http://archive.canonical.com/ubuntu/dists/hardy/Contents-i386.gz (404)
Can't get http://dl.google.com/linux/deb/dists/stable/Contents-i386.gz (404)
Can't get http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu/dists/hardy/Contents-i386.gz (404)
Can't get http://deb.opera.com/opera/dists/sid/Contents-i386.gz (404)

which is to be kinda expected since they're 3rd party repos and/or contain 3rd party packages.

Bug fixed?

Revision history for this message
François Marier (fmarier) wrote :

It would be nice to get it fixed for PPAs as well, but yes the main repositories seem to work fine now.

Daniel T Chen (crimsun)
Changed in apt-file:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.