On Thu, Jun 02, 2011, Guilherme Salgado wrote:
> http://paste.ubuntu.com/616721/ seems to confirm my hypothesis.
> something that used to work on Maverick no longer works on Oneiric. Now
> we need to figure out whether it's a regression in python-apt or just a
> new requirement that trusted.gpg.d is in place before you run
> cache.update()
I couldn't reproduce with the testcase in the above paste; with
oneiric's apt (0.8.14.1ubuntu5):
>>> import apt
>>> apt.Cache(rootdir='apt-test')
creating: apt-test/var/lib/dpkg
creating: apt-test/var/cache/apt/archives/partial
creating: apt-test/var/lib/apt/lists/partial
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 93, in __init__
self.open(progress)
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 136, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Could not open file
apt-test/var/lib/apt/apt-test/var/lib/dpkg/status - open (2: No such file or
directory), E:The package lists or status file could not be parsed or opened.
>>> c=apt.Cache(rootdir='/home/lool/h/apt-test')
>>> c.update()
True
I do have at least one PPA in my sources.list. I suppose APT is still
reading some data from / instead of rootdir (perhaps via apt-key).
I also couldn't reproduce with
"linaro-hwpack-create hwpacks/linaro-panda 12" as run from a checkout
of
lp:~linaro-maintainers/linaro-images/hwpack.natty.linaro-panda
Probably the same problem
--
Loïc Minier
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/790760
Title:
linaro-hwpack-create fails with GPG errors from APT
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs