Currently two packages are failing to import with this error:
http://package-import.ubuntu.com/status/libffi.html
http://package-import.ubuntu.com/status/compiz-fusion-plugins-extra.html
[Current list of all failures due to that error: http://package-import.ubuntu.com/status/6fce5df2a9d46a7fd3e343fa5bc74151.html]
The problem appears to be that a very particular set of circumstances can cause fetching from a stacked repository via a smart server to omit the CHK records for a fetched inventory. Rather than trying describe the intricacies here I suggest reading the failing test added in the linked branch.
Traceback (most recent call last):
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 1129, in <module>
persistent_download_cache=options.persistent_download_cache))
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 1035, in main
possible_transports=possible_transports)
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 752, in create_update_branches
bstore, possible_transports=possible_transports)
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 278, in create_updates_branch
rev_id, possible_transports=[to_transport])
File "/var/lib/python-support/python2.5/bzrlib/controldir.py", line 374, in sprout
create_tree_if_local=create_tree_if_local)
File "/var/lib/python-support/python2.5/bzrlib/cleanup.py", line 131, in run
self.cleanups, self.func, self, *args, **kwargs)
File "/var/lib/python-support/python2.5/bzrlib/cleanup.py", line 165, in _do_with_cleanups
result = func(*args, **kwargs)
File "/var/lib/python-support/python2.5/bzrlib/controldir.py", line 425, in _sprout
result_repo.fetch(source_repository, revision_id=revision_id)
File "/var/lib/python-support/python2.5/bzrlib/repository.py", line 1781, in fetch
find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File "<string>", line 4, in fetch_write_locked
File "/var/lib/python-support/python2.5/bzrlib/repository.py", line 3437, in fetch
find_ghosts=find_ghosts)
File "/var/lib/python-support/python2.5/bzrlib/fetch.py", line 73, in __init__
self.__fetch()
File "/var/lib/python-support/python2.5/bzrlib/fetch.py", line 99, in __fetch
self._fetch_everything_for_search(search)
File "/var/lib/python-support/python2.5/bzrlib/fetch.py", line 127, in _fetch_everything_for_search
stream, from_format, [])
File "/var/lib/python-support/python2.5/bzrlib/repository.py", line 4105, in insert_stream
hint = self.target_repo.commit_write_group()
File "/var/lib/python-support/python2.5/bzrlib/repository.py", line 1640, in commit_write_group
result = self._commit_write_group()
File "/var/lib/python-support/python2.5/bzrlib/repofmt/pack_repo.py", line 2333, in _commit_write_group
hint = self._pack_collection._commit_write_group()
File "/var/lib/python-support/python2.5/bzrlib/repofmt/pack_repo.py", line 2171, in _commit_write_group
"Cannot add revision(s) to repository: " + problems_summary)
bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps
missing text keys: [StaticTuple('alpha-20090627035649-17514uafp7utrch0-176', '<email address hidden>'), StaticTuple('arm-20090627035649-17514uafp7utrch0-189', '<email address hidden>'), StaticTuple('avr32-20091012021018-0qbucxo52gmyrlgv-1', '<email address hidden>'), StaticTuple('config-20090627035649-17514uafp7utrch0-23', '<email address hidden>'), StaticTuple('cris-20090627035649-17514uafp7utrch0-198', '<email address hidden>'), StaticTuple('doc-20090627035649-17514uafp7utrch0-12', '<email address hidden>'), StaticTuple('ffi.c-20091012021018-0qbucxo52gmyrlgv-4', '<email address hidden>'), StaticTuple('ffitarget.h-20091012021018-0qbucxo52gmyrlgv-3', '<email address hidden>'), StaticTuple('frv-20090627035649-17514uafp7utrch0-206', '<email address hidden>'), StaticTuple('ia64-20090627035649-17514uafp7utrch0-193', '<email address hidden>'), StaticTuple('include-20090627035649-17514uafp7utrch0-249', '<email address hidden>'), StaticTuple('lib-20090627035649-17514uafp7utrch0-26', '<email address hidden>'), StaticTuple('libffi.call-20090627035649-17514uafp7utrch0-35', '<email address hidden>'), StaticTuple('libffi.pc.in-20090627035649-17514uafp7utrch0-6', '<email address hidden>'), StaticTuple('libffi.special-20090627035649-17514uafp7utrch0-30', '<email address hidden>'), StaticTuple('m32r-20090627035649-17514uafp7utrch0-226', '<email address hidden>'), StaticTuple('m68k-20090627035649-17514uafp7utrch0-202', '<email address hidden>'), StaticTuple('man-20090627035649-17514uafp7utrch0-242', '<email address hidden>'), StaticTuple('mips-20090627035649-17514uafp7utrch0-180', '<email address hidden>'), StaticTuple('pa-20090627035649-17514uafp7utrch0-144', '<email address hidden>'), StaticTuple('powerpc-20090627035649-17514uafp7utrch0-163', '<email address hidden>'), StaticTuple('s390-20090627035649-17514uafp7utrch0-222', '<email address hidden>'), StaticTuple('sh-20090627035649-17514uafp7utrch0-185', '<email address hidden>'), StaticTuple('sh64-20090627035649-17514uafp7utrch0-157', '<email address hidden>'), StaticTuple('sparc-20090627035649-17514uafp7utrch0-150', '<email address hidden>'), StaticTuple('src-20090627035649-17514uafp7utrch0-143', '<email address hidden>'), StaticTuple('sysv.s-20091012021018-0qbucxo52gmyrlgv-2', '<email address hidden>'), StaticTuple('targetlibpath.exp-20090627035649-17514uafp7utrch0-27', '<email address hidden>'), StaticTuple('testsuite-20090627035649-17514uafp7utrch0-22', '<email address hidden>'), StaticTuple('texinfo.tex-20090627035649-17514uafp7utrch0-239', '<email address hidden>'), StaticTuple('tree_root-20090627035649-17514uafp7utrch0-2', '<email address hidden>'), StaticTuple('wrapper.exp-20090627035649-17514uafp7utrch0-28', '<email address hidden>'), StaticTuple('x86-20090627035649-17514uafp7utrch0-211', '<email address hidden>')]
I wouldn't be shocked to find that some other failures are caused or at least related, e.g. <https:/ /bugs.launchpad .net/bzr/ +bug/772935>