Why pbuilder does not work on free euserv server

amue5700

New Member
Hi,

i have orderd a free virtual server from euserv i have found on reddit. Now i tried to use pbuilder and i got this error:
Code:
[email protected]:~# pbuilder-dist stretch create 
W: /root/.pbuilderrc does not exist
I: Logging to /root/pbuilder/stretch_result/last_operation.log
I: Distribution is stretch.
I: Current time: Tue Oct  1 09:12:03 CEST 2019
I: pbuilder-time-stamp: 1569913923
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
mknod: /var/cache/pbuilder/build/13215/test-dev-null: Operation not permitted
E: Cannot install into target '/var/cache/pbuilder/build/13215' mounted with noexec or nodev
E: debootstrap failed
E: Tail of debootstrap.log:
tail: cannot open '/var/cache/pbuilder/build/13215/debootstrap/debootstrap.log' for reading: No such file or directory
W: Aborting with an error
have anyone an idea how i can solve this problem?
 


amue5700

New Member
Hi,

i have already take a look to the docs. I have found an option to use fakechroot. But now i got the next strange error:
Code:
[email protected]:~# apt install fakechroot
[email protected]:~# mkdir -p /opt/cache/pbuilder/build
[email protected]:~# echo 'BUILDPLACE=/opt/cache/pbuilder/build' > /root/.pbuilderrc
[email protected]:~# fakechroot fakeroot pbuilder-dist bionic create --debootstrapopts --variant=fakechroot
...
I: Installing apt-lines
I: Refreshing the base.tgz 
I: upgrading packages
I: mounting /proc filesystem
mount: /proc: /proc already mounted or mount point busy.
W: Aborting with an error
[email protected]:~#
 

amue5700

New Member
Hi,

i have found a solution that works for me. Here a little howto:
Code:
- Update and Upgrade the server
apt update 
apt upgrade

- Install pbuilder and tools
apt install pbuilder ubuntu-dev-tools debootstrap devscripts

- Install fakechroot
apt install fakechroot

- Create directory for pbuilder
mkdir -p /opt/cache/pbuilder/build

- Set config variables for pbuilder
echo 'BUILDPLACE=/opt/cache/pbuilder/build' > /root/.pbuilderrc
echo 'USEPROC=no' >> /root/.pbuilderrc
echo 'USERUNSHM=no' >> /root/.pbuilderrc

- Start pbuilder in fakechroot mode
fakechroot fakeroot pbuilder-dist bionic create --debootstrapopts --variant=fakechroot
OS:
Ubuntu 18.04 LTS (Bionic Beaver) - 64Bit - minimal v4 (https://www.euserv.com/en/dedicated-server/features/operating-systems.php)

Sources:
https://www.reddit.com/r/VPS/comments/cay4xx


 

Members online


Latest posts

Top