apt can't recover from file corruptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt
This morning I'm getting lots of errors from apt-get update of the form:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
This affects files such as
us.archive.
us.archive.
us.archive.
us.archive.
The resolution appears to be to move the files aside and re-update, however it seems like apt should just do that itself. Self-recovery would be much more user friendly.
I'll attach the offending files in the event that would be helpful.
Heh. This occurred because my machine did an update behind the scenes. I was on a hotel network, but the 24hr subscription had timed out. This means NM thinks I'm still on a valid network, but of course the only thing it can connect to is the hotel's BUY ME page. Every corrupted apt file contains the contents of this hotel page.
So there seems to be several problems here. First, apt should be able to self-correct for busted files. Second, apt should probably ensure that it's talking to a real archive despite the lies of NM. :)