pbuilder-dist crashed with OSError in makedirs()

Bug #671067 reported by xteejx
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Low
Stefano Rivera

Bug Description

Binary package hint: ubuntu-dev-tools

pbuilder-dist fails when trying to create a chroot for debian sid.
i.e. "pbuilder-dist sid create", also with sudo the same happens.

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: ubuntu-dev-tools 0.104
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu Nov 4 17:55:32 2010
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/pbuilder-dist
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate i386 (20100928)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/pbuilder-dist sid build sqlxx_2.3.2-9.dsc
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.utf8
PythonArgs: ['/usr/bin/pbuilder-dist', 'sid', 'build', 'sqlxx_2.3.2-9.dsc']
SourcePackage: ubuntu-dev-tools
Title: pbuilder-dist crashed with OSError in makedirs()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Running
sudo apt-get install debian-archive-keyring && sudo pbuilder-dist sid create --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg
works.

I suppose normally this would be a wishlist item, but running pbuilder-dist create with a debian distribution name, i.e. sid, squeeze, etc should at last say that this needs to be done first, or do it itself under sudo and install and import the correct keyring.

Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Stefano Rivera (stefanor)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Stefano Rivera (stefanor) wrote :

I'll add friendlier errors for this, but the real issue here is probably that ~/pbuilder is owned by root, not your user. The symptoms and workaround you describe are probably not a bug.

Benjamin Drung (bdrung)
Changed in ubuntu-dev-tools (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.107

---------------
ubuntu-dev-tools (0.107) experimental; urgency=low

  [ Stefano Rivera ]
  * edit-patch: Detect quilt patch-system in 3.0 (quilt) packages without any
    patches yet.
  * wrap-and-sort:
    - Correct typo in options --wrap-allways -> --wrap-always
    - Sort debian/install as well as debian/*.install
    - Add one-space-indentation option: --short-indent
    - Remove null-entry from trailing comma in sorted lists
    - Add configurable debian directory location
    - Sort Architecture (LP: #681131)
    - Add --sort-binary-packages and --keep-first (LP: #681119)
  * grab-merge, syncpackage: Export DEB_VENDOR=Ubuntu when unpacking source
    packages. 3.0 (quilt) has optional per-vendor patch series.
  * pbuilder-dist:
    - Refactor to use subprocess.popen instead of os.system (LP: #398974)
    - Catch OSErrors when creating directories (LP: #671067)
    - Set HOME so pbuilder reads .pbuilderrc
    - Add bidirectional workarounds for LP: #599695 (pbuilder uses the host
      apt keyring). Complain if the target's keyring isn't installed.
  * Use dpkg-vendor in ubuntutools.misc.system_distribution(), cache result.

  [ Benjamin Drung ]
  * wrap-and-sort: Remove duplicate items from sorted lists.
  * syncpackage: Fix error message for failed downloads.
  * sponsor-patch: Support building with sbuild (LP: #681242).

  [ Daniel Holbach ]
  * submittodebian: rephrase boilerplate text to be more polite, add reminder
    to explain the patch sufficiently and add necessary information.

  [ Colin Watson ]
  * submittodebian: Encourage sending multiple independent pieces of the
    Ubuntu patch in separate bug reports.
 -- Benjamin Drung <email address hidden> Fri, 03 Dec 2010 00:14:25 +0100

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.