cp: cannot create regular file ‘/etc/php/8.1/fpm/pool.d/’: No such file or directory
sed: cannot read /etc/php/8.1/fpm/pool.d/dummy.conf: No such file or directory
cp: cannot create regular file ‘/etc/php/8.1/fpm/’: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php-fpm.conf: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/cli/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
sed: cannot read /etc/php/8.1/fpm/php.ini: No such file or directory
The problem was that the sourcelist of /etc/apt/sources.list.d/ that includes hestiacp had not been updated when I updated debian 11 to 12, I changed the previous name to bookworm and now it has been able to install php8.1