not able to download diff-index files

Bug #316155 reported by Shirish Agarwal
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt-file (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: apt-file

Hi all,
 This is on the new apt-file . It tries to check old sha1sum and then tries to download the diff, isn't successful and then does the full download (which obviously takes much more time)

$ sudo apt-file update
[sudo] password for shirish:
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 14.9M 100 14.9M 0 0 28882 0 0:09:04 0:09:04 --:--:-- 21750
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 677 100 677 0 0 766 0 --:--:-- --:--:-- --:--:-- 0
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 14.9M 100 14.9M 0 0 29186 0 0:08:58 0:08:58 --:--:-- 28914
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 677 100 677 0 0 849 0 --:--:-- --:--:-- --:--:-- 0
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 677 100 677 0 0 962 0 --:--:-- --:--:-- --:--:-- 0
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 677 100 677 0 0 911 0 --:--:-- --:--:-- --:--:-- 0
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 677 100 677 0 0 992 0 --:--:-- --:--:-- --:--:-- 0
Calculating old sha1sum...
Downloading Index http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.diff/Index:
curl: (22) The requested URL returned error: 404
Download of http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.diff/Index failed
Command exited with code 22

Downloading complete file http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Contents-i386.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 677 100 677 0 0 978 0 --:--:-- --:--:-- --:--:-- 0
Ignoring source without Contents File:
  http://ddebs.ubuntu.com/dists/jaunty/Contents-i386.gz

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: apt-file 2.2.0
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: apt-file
Uname: Linux 2.6.28-4-generic i686

Tags: apport-bug
Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Revision history for this message
Chris Halse Rogers (raof) wrote :

The Ubuntu archive does not contain the diff index files, so apt-file is obviously unable to download them. It might be nice to make apt-file not try, or at least not complain about failing to find them.

Changed in apt-file:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 316155] Re: not able to download diff-index files

Hi Chris Halse Rogers,
 Thank you for getting back so quickly. IMHO the longer-term fix
though is to make sure that the archive has diff-index files as that
would save bandwidth for both the user (i.e. me) as well as the
provider (in this case, Ubuntu)

--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-file - 2.2.2

---------------
apt-file (2.2.2) unstable; urgency=low

  * diffindex-download improvements for the case when diff/Index is not available
    (LP: #316155):
    - make error message less noisy
    - don't calculate the sha1sum of the old file, it's futile anyway
    - don't redownload the full file if it has not changed

apt-file (2.2.1) unstable; urgency=low

  * Fix ftp download (closes: #511672).

 -- Ubuntu Archive Auto-Sync <email address hidden> Tue, 28 Apr 2009 21:16:32 +0100

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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