What does the mistake you mentioned have to do with my mistake?
My problem was unfortunately not solved by your suggested solution.
Unfortunately there is some other strange problem here.
It seems to me that there are some right mistakes, possibly permissions.
QuoteDisplay More[INFO] Scanning PHP site for the PHP 5.3 sources...
[INFO] Found PHP 5.3 sources at http://php.net/distributions/php-5.3.29.tar.gz
[INFO] The PHP 5.3.29 sources are already present in the /usr/local/src/phpswitcher directory. Skipping download.
[INFO] Extracting the PHP 5.3.29 archive into /usr/local/src/phpswitcher/php-5.3.29 ...
[INFO] Setup PHP build environment...
I: Copying COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.26797
I: forking: cp -al /var/cache/pbuilder/psw-debian-stretch.cow /var/cache/pbuilder/build/cow.26797
I: unlink for ilistfile /var/cache/pbuilder/build/cow.26797/.ilist failed, it didn't exist?
I: Invoking pbuilder
I: forking: pbuilder update --override-config --configfile /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/.pbuilderrc --hookdir /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/hook.d --buildplace /var/cache/pbuilder/build/cow.26797 --mirror http://deb.debian.org/debian --distribution stretch --extrapackages 'apt-transport-https apt-utils ca-certificates devscripts eatmydata equivs gnupg2 quilt wget' --no-targz --internal-chrootexec 'chroot /var/cache/pbuilder/build/cow.26797'
I: Running in no-targz mode
I: Upgrading for distribution stretch
I: Current time: Thu Feb 6 17:45:25 CET 2020
I: pbuilder-time-stamp: 1581007525
I: copying local configuration
I: forking: rm -rf /var/cache/pbuilder/build/cow.26797
[ERROR] main: An error occurred while setup of PHP build environment: cp: cannot create regular file '/var/cache/pbuilder/build/cow.26797/etc/hosts': No such file or directory
E: pbuilder update failed
Now I have tried the following Solution: Switcher 5.0.1 compile errors & > 5.0.2 Upg Error
I have upgraded here, too - but i do not know from which version at the moment
After reinstallation I have got the error message, that one directory is missing:
QuoteDisplay MoreI: forking: rm -rf /var/cache/pbuilder/psw-debian-stretch.cow
[ERROR] main: An error occurred while setup of PHP build environment: find: '/var/cache/pbuilder/psw-aptcache-debian-stretch': No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
debconf: delaying package configuration, since apt-utils is not installed
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: pbuilder create failed
I have created it manually, now I have got the following error message:
QuoteDisplay MoreErrors were encountered while processing:
/tmp/apt-dpkg-install-KXj3WK/07-perl-modules-5.24_5.24.1-3+deb9u5_all.deb
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: forking: rm -rf /var/cache/pbuilder/psw-debian-stretch.cow
[ERROR] main: An error occurred while setup of PHP build environment: debconf: delaying package configuration, since apt-utils is not installed
debconf: delaying package configuration, since apt-utils is not installed
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: pbuilder create failed