Can't use pbuilder inside simple lxc container?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbuilder (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 18.04, I was trying to reproduce a problem, so I spun up an lxc container and ran my reproduce script in it, i.e.
#!/bin/sh
set -ex
sudo apt install dh-make-golang
DIST=bionic git-pbuilder create
dh-make-golang github.
cd renderizer/
gbp buildpackage --git-dist=bionic --git-pbuilder
This failed with
+ DIST=bionic git-pbuilder create
I: Invoking pbuilder
I: forking: pbuilder create --buildplace /var/cache/
W: /home/ubuntu/
I: Running in no-targz mode
I: Distribution is bionic.
I: Current time: Sat Sep 8 14:40:20 UTC 2018
I: pbuilder-
I: Building the build environment
I: running debootstrap
/usr/sbin/
mknod: /var/cache/
E: Cannot install into target '/var/cache/
Sad face. Not sure who's at fault here, is it me, debootstrap, pbuilder, or gbp?
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: pbuilder 0.229.1
ProcVersionSign
Uname: Linux 4.15.0-33-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Sat Sep 8 14:47:59 2018
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: pbuilder
UpgradeStatus: No upgrade log present (probably fresh install)
Correction: the repro script was
#!/bin/sh com/gomatic/ renderizer com/gomatic/ renderizer
set -ex
sudo apt install dh-make-golang
DIST=bionic git-pbuilder create dh-make-golang github.
dh-make-golang github.
cd renderizer/
gbp buildpackage --git-dist=bionic --git-pbuilder