[Bug 790760] Re: linaro-hwpack-create fails with GPG errors from APT
Loïc Minier
lool at dooz.org
Fri Jun 3 10:39:24 UTC 2011
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
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/790760
Title:
linaro-hwpack-create fails with GPG errors from APT
Status in “linaro-image-tools” package in Ubuntu:
New
Status in “python-apt” package in Ubuntu:
New
Bug description:
Binary package hint: linaro-image-tools
17:49 hrw at home:t$ linaro-hwpack-create hwpack.natty.linaro-panda/hwpacks/linaro-panda 1 --debug
2011-05-31 17:49:39,483 - linaro_image_tools.hwpack.builder - INFO - Building for armel
2011-05-31 17:49:39,489 - linaro_image_tools.hwpack.builder - INFO - Fetching packages
2011-05-31 17:49:39,489 - linaro_image_tools.hwpack.packages - DEBUG - Writing apt configs
2011-05-31 17:49:39,515 - linaro_image_tools.hwpack.packages - DEBUG - Updating apt cache
Traceback (most recent call last):
File "/usr/bin/linaro-hwpack-create", line 66, in <module>
builder.build()
File "/usr/lib/pymodules/python2.7/linaro_image_tools/hwpack/builder.py", line 84, in build
with fetcher:
File "/usr/lib/pymodules/python2.7/linaro_image_tools/hwpack/packages.py", line 580, in prepare
self.cache.prepare()
File "/usr/lib/pymodules/python2.7/linaro_image_tools/hwpack/packages.py", line 511, in prepare
self.cache.update()
File "/usr/lib/python2.7/dist-packages/apt/deprecation.py", line 98, in deprecated_function
return func(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 373, in update
raise FetchFailedException(e)
apt.cache.FetchFailedException: W:GPG error: http://ppa.launchpad.net natty Release: No keyring installed in /tmp/hwpack-apt-cache-8Dj1Sw/etc/apt/trusted.gpg.d/., W:GPG error: http://ports.ubuntu.com natty-security Release: No keyring installed in /tmp/hwpack-apt-cache-8Dj1Sw/etc/apt/trusted.gpg.d/., W:GPG error: http://ports.ubuntu.com natty-updates Release: No keyring installed in /tmp/hwpack-apt-cache-8Dj1Sw/etc/apt/trusted.gpg.d/., W:GPG error: http://ports.ubuntu.com natty Release: No keyring installed in /tmp/hwpack-apt-cache-8Dj1Sw/etc/apt/trusted.gpg.d/., W:Failed to fetch copy:/tmp/tmpdG6S0V/./Packages
, E:Some index files failed to download. They have been ignored, or old ones used instead.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linaro-image-tools 0.4.8-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.39-2.8-generic 2.6.39-rc7
Uname: Linux 2.6.39-2-generic x86_64
Architecture: amd64
Date: Tue May 31 17:46:34 2011
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
PackageArchitecture: all
ProcEnviron:
SHELL=/bin/bash
LANG=pl_PL.UTF-8
LANGUAGE=pl_PL:en
SourcePackage: linaro-image-tools
UpgradeStatus: No upgrade log present (probably fresh install)
More information about the foundations-bugs
mailing list