Why pbuilder does not work on free euserv server

amue5700

New Member
Joined
Sep 30, 2019
Messages
4
Reaction score
0
Credits
0
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:
root@srv0000:~# 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?
 



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:
root@srv0000:~# apt install fakechroot
root@srv0000:~# mkdir -p /opt/cache/pbuilder/build
root@srv0000:~# echo 'BUILDPLACE=/opt/cache/pbuilder/build' > /root/.pbuilderrc
root@srv0000:~# 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
root@srv0000:~#
 
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:



 

Members online


Latest posts

Top