[gutsy] apt-get update deletes local Packages.gz file

Bug #131166 reported by Jan Mynarik
18
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: apt

I have a local directory with my own or downloaded deb packages and I generate Packages.gz in this directory using this command:
apt-ftparchive packages . | gzip -9c > Packages.gz

I use this local packages archive with this line in sources.list:
deb file:///usr/local/archives/ / #Local DEB archive

When I run apt-get update and then again, it deletes the Packages.gz file.

Tags: patch

Related branches

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

Forgot to mention apt version, currently it is 0.7.6ubuntu3 but this bug was present in previous version or two.

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

I've just updated to 0.7.6ubuntu4 and it still happens.

Changed in apt:
assignee: nobody → apt-get
assignee: apt-get → nobody
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

I can confirm this behaviour on my system (gutsy).
I had no problem of this kind with version 0.6.46

Changed in apt:
status: New → Confirmed
Revision history for this message
David Burgess (apt-get) wrote :

I can't recreate this in Edubuntu 7.04 amd64. I followed your steps and after running apt-get update five times the Packages.gz file is still there.

db

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Yes, on Feisty (apt version 0.6.46.4ubuntu10) there is no such problem.

Michael Vogt (mvo)
Changed in apt:
assignee: nobody → mvo
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This is fixed in my local repository and will be part of the next upload. It only affects gutsy.

Cheers,
 Michael

Changed in apt:
status: In Progress → Fix Committed
Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

Still not fixed with apt 0.7.6ubuntu7.

Changed in apt:
status: Fix Committed → Confirmed
Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

Problem persists even with apt 0.7.6ubuntu8.

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

Still in apt 0.7.6ubuntu9. Please mark as critical!

Revision history for this message
Björn Torkelsson (torkel) wrote :

And still in 0.7.6ubuntu10 :-(

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

0.7.6ubuntu11 affected as well

Revision history for this message
Aaron Haviland (aaron-haviland) wrote :

This bug only seems to affect compressed Packages.gz files. If I leave it uncompressed, apt doesn't unlink it.

Revision history for this message
Jan Mynarik (jan-mynarik) wrote :

@Aaron: You're right! Thanks for workaround!

Revision history for this message
Björn Torkelsson (torkel) wrote :

Still not fixed in 0.7.6ubuntu12.

Revision history for this message
Aaron Haviland (aaron-haviland) wrote :

This patch seems to fix the behaviour, at least as far as a local Packages/Packages.gz file goes. I have no idea if it impacts other behaviours (none that I could tell).

From what I could tell, the bug only appears on a local *compressed* Packages, and only when IMSHit=true (and it doesn't have to decompress it). A little bit of sleuthing led me here.

Happy hacking!

Revision history for this message
Michael Vogt (mvo) wrote :

apt (0.7.6ubuntu13) gutsy; urgency=low

  * apt-pkg/deb/dpkgpm.cc:
    - fix crash in WriteApportReport (LP: #144537)
  * apt-pkg/acquire-item.cc
    - fix disappearing local Packages.gz file (LP: #131166)
  * methods/https.cc:
    - fix off-by-one error I-M-S handling
    - cleanup after I-M-S hit

 -- Michael Vogt <email address hidden> Tue, 09 Oct 2007 01:48:26 +0200

Changed in apt:
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.