It seems to be a bug:
- ubuntuforums.org/showthread.php?t=2196108&p=13088005#post13088005
- unix.stackexchange.com/a/185979
- bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1793436
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=779842
You most likely symlinked the php.ini between the packages. That’s not supported.
github.com/oerdnj/deb.sury.org/issues/1473#issuecomment-713839096
See also:
- How to fix «ucfr: Attempt from package php7.1-cli to take /etc/php/7.1/fpm/php.ini away from package php7.1-fpm»?
- How did I fix «ucfr: Attempt from package php7.2-fpm to take /etc/php/7.2/common/php.ini away from package php7.2-cli»?
- How did I fix «ucfr: Attempt from package php7.3-fpm to take /etc/php/7.3/common/php.ini away from package php7.3-cli»?
- How did I fix «ucfr: Attempt from package php8.1-fpm to take /etc/php/8.1/common/php.ini away from package php8.1-cli»?
- How did I fix «ucfr: Attempt from package php8.2-fpm to take /etc/php/8.2/common/php.ini away from package php8.2-cli»?