[Bug 346386] Re: [MASTER] Update fails with invalid package files with "Encountered a section with no Package: header"

Julian Andres Klode juliank at ubuntu.com
Mon May 30 12:07:30 UTC 2011


Fixed in the debian-sid branch

------------------------------------------------------------
revno: 2126
revision-id: jak at debian.org-20110530120401-ink7r9btg1i1ul2j
parent: bubulle at debian.org-20110525124504-zai6t9rst710l6ek
fixes bug(s): http://bugs.debian.org/195301 https://launchpad.net/bugs/346386
committer: Julian Andres Klode <jak at debian.org>
branch nick: debian-sid
timestamp: Mon 2011-05-30 14:04:01 +0200
message:
  apt-pkg/acquire-item.cc: Reject files known to be invalid (LP: #346386) (Closes: #195301)
  
  This commit deals with the following cases:
  
    - First section of index file (Packages,Sources,Translation) without Package field
    - Signed release files without GPG data (NODATA)
    - i18n/Index files without hash sums
  
  Handling unsigned Release files is more complicated, and the example code
  using indexRecords is disabled as it can reject correct Release files
  without hashes. How we can reliably check unsigned Release files is
  another question, and not urgent anyway, as it should have no
  dramatic effect (we could check that it is a valid RFC-822 section,
  but that's a bit too long to write)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/346386

Title:
  [MASTER] Update fails with invalid package files with "Encountered a
  section with no Package: header"

Status in “apt” package in Ubuntu:
  In Progress
Status in “apt” package in Debian:
  Unknown

Bug description:
  Binary package hint: adept-updater

  Pertinent data printed when attempting to run Updater as follows:

  An unresolvable problem occurred while initializing the package
  information.

  Please report this bug against the 'update-manager' package and
  include the following error message:

  'E:Encountered a section with no Package: header, E:Problem with
  MergeList /var/lib/apt/lists/us.archive.ubuntu
  .com_ubuntu_dists_intrepid_universe_binary-amd64_Packages, E:The
  package lists or status file could not be parsed or opened.'

  Ubuntu 8.10

  Need workaround to permit updating - usual apt-get commands (clean,
  update) haven't worked; message as follows:

  Reading package lists... Error!
  E: Encountered a section with no Package: header
  E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-amd64_Packages
  E: The package lists or status file could not be parsed or opened.




More information about the foundations-bugs mailing list