Bug#789868: pbuilder: pdebuild fails with sudo error

Vincent Lefevre vincent at vinc17.net
Thu Jun 25 00:07:42 UTC 2015


Package: pbuilder
Version: 0.215+nmu3
Severity: normal

When following the steps in

  https://www.debian.org/doc/manuals/maint-guide/build.en.html#pbuilder

I get the following error when running "pdebuild":

sudo: sorry, you are not allowed to preserve the environment

Note that I use sudo's default config.

With "/bin/bash -x pdebuild", I can see a line starting with:

  sudo -E pbuilder --build --buildresult /var/cache/pbuilder/result/ [...]

But it seems that for security reasons, the -E option no longer works.
So, this would no longer be the right method.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages pbuilder depends on:
ii  coreutils              8.23-4
ii  debconf [debconf-2.0]  1.5.56
ii  debianutils            4.5.1
ii  debootstrap            1.0.70
ii  dpkg-dev               1.18.1
ii  wget                   1.16.3-3

Versions of packages pbuilder recommends:
ii  devscripts  2.15.5
ii  fakeroot    1.20.2-1
ii  iproute2    4.0.0-1
ii  net-tools   1.60-26+b1
ii  sudo        1.8.12-1

Versions of packages pbuilder suggests:
pn  cowdancer     <none>
ii  gdebi-core    0.9.5.5+nmu1
pn  pbuilder-uml  <none>

-- debconf information:
* pbuilder/mirrorsite: http://ftp.debian.org/debian/
  pbuilder/nomirror:
  pbuilder/rewrite: false



More information about the Pbuilder-maint mailing list