The solution is similar to How did I fix «ucfr: Attempt from package php7.4-fpm to take /etc/php/7.4/common/php.ini away from package php7.4-cli»?