Solved for me on Linux Mint 22.1
The base problem is that php-mysqlnd is a “virtual package” that is included in the package php-mysql, and trying to install it individually (as the FOG install script does) fails with apt dumping a list of php mysql versions and that “You should explicitly select one to install.” Even if php-mysql is already installed.
The solution for me was to remove php-mysqlnd as an install target in the FOG install scripts. As of this date, that includes:
In file [fog install pkg path]/lib/ubuntu/config.sh:
- remove ‘php-mysqlnd’ from line 26 "packages="apache2[…]
In the file [fog install pkg path]/lib/common/functions.sh:
-
remove the lines
php-mysql*) for phpmysql in $(echo php-mysqlnd php-mysql); do eval $packagelist "$phpmysql" >>$error_log 2>&1 if [[ $? -eq 0 ]]; then x=$phpmysql break fi done ;;