DVD can't be used for upgrade, gzipped Packages file

Bug #267239 reported by tz
4
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Triaged
Critical
Unassigned

Bug Description

Binary package hint: apt-cdrom-setup

apt-cdrom (Hardy amd64) failed to add the live DVD for an upgrade.
The file it is looking for, "Packages" doesn't exist, but "Packages.gz" does.
either the hardy version of apt-cdrom or something it uses needs to be fixed to recognize compressed Packages files, or the live DVD (and CD?) need to have these files decompressed.

I have not yet tried decompressing and burning a new DVD (somewhat time consuming), but will later.

me@myhost:~$ sudo apt-cdrom add -f
Using CD-ROM mount point /cdrom/
Unmounting CD-ROM
Waiting for disc...
Please insert a Disc in the drive and press enter
Mounting CD-ROM...
Identifying.. [90f52148c6aaacb5368a3eb2a35779e3-2]
Scanning disc for index files..
Found 2 package indexes, 0 source indexes, 0 translation indexes and 1 signatures
Found label 'Ubuntu 8.10 _Intrepid Ibex_ - Alpha amd64 (20080902)'
This disc is called:
'Ubuntu 8.10 _Intrepid Ibex_ - Alpha amd64 (20080902)'
Copying package lists...gpgv: Signature made Tue 02 Sep 2008 07:45:52 AM CDT using DSA key ID FBB75451
gpgv: Good signature from "Ubuntu CD Image Automatic Signing Key <email address hidden>"
E: Could not open file /cdrom/dists/intrepid/main/binary-amd64/Packages - open (2 No such file or directory)
E: Unable to determine the file size - fstat (9 Bad file descriptor)
W: Hash mismatch for: main/binary-amd64/Packages
E: Could not open file /cdrom/dists/intrepid/main/debian-installer/binary-amd64/Packages - open (2 No such file or directory)
E: Unable to determine the file size - fstat (9 Bad file descriptor)
W: Hash mismatch for: main/debian-installer/binary-amd64/Packages
E: Could not open file /cdrom/dists/intrepid/restricted/binary-amd64/Packages - open (2 No such file or directory)
E: Unable to determine the file size - fstat (9 Bad file descriptor)
W: Hash mismatch for: restricted/binary-amd64/Packages

Revision history for this message
Colin Watson (cjwatson) wrote :

Targeted to Hardy; Intrepid is already fixed (bug 255545).

It's quite valuable in terms of space for us to be able to omit the uncompressed files from CDs. Admittedly we could get away with leaving them on the DVD, but the alternate CD would need this too and that's very tight on space. Michael, could the fix for bug 255545 be backported to hardy?

Changed in apt:
status: New → Fix Released
Revision history for this message
tz (thomas-mich) wrote :

The aforementioned bug (255545) is the problem. Given that this is an upgrade, it straddles Hardy and Intrepid. Since I have a lot of computers and packages, I prefer downloading the ISO DVDs.

Even if you backport the fix, is there something in the upgrade process that would insure Hardy has the latest BEFORE the upgrade is started? Intrepid has the fix, and it would probably work to install Intrepid's version of apt-cdrom first, but how can this be assured?

Or is there something else you can do in the upgrader to bypass the problem?

Revision history for this message
Colin Watson (cjwatson) wrote :

I believe that the upgrader makes sure that you're fully up to date with hardy-updates before starting the upgrade, but Michael is in a position to either verify or ensure this.

Colin Watson (cjwatson)
Changed in apt:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
tz (thomas-mich) wrote :

I know the update will try to go TO the newest if there is an internet connection, e.g. Gutsy to 8.04.1 even if the update CD is 8.04 which might be what you are thinking of.

But what if the upgrade is for a system that is NOT normally connected to the internet? That would be one reason to use a CD. Another would be a mass upgrade. If you have a bunch of systems at 8.04 Hardy, it would make things troublesome to have to update to 8.04.2 (or whatever) first through some means BEFORE the Ibex dist-upgrade would work.

I haven't tried the daily build CD/DVDs to see if they work to update packages upon insertion (though I usually turn autoplay stuff off)

One thing to do is to leave the package files uncompressed but support reading them compressed in Ibex going forward (or compress them in the very tight image-versions that couldn't fit otherwise, leaving them uncompressed in the rest, e.g. the live has them compressed, the alternate has them uncompressed, the DVDs all have them uncompressed).

I think jumping versions is already not supported (e.g. Gutsy directly to Intrepid), so that wouldn't be a problem. But if you ever come up with an updated Hardy master, it should include the fix for compressed package files on the CD.

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.