failing to install package php-mysqlnd
-
when running the install script I get :
E; Package ‘php-mysqlnd’ has no installation candidate
I have tried on 2 separate physical machines, both fresh installs of Mint 21.2.
any advice ?
-
Hi,
being new to linux, i have the same issue. Have you found a solution by any chance?
Tanks, -
@Allen @Nestor2022 Which version of FOG do you use?
FOG does not officially support MINT. We have tested this in the past a couple of times but I can imagine it having a problem right now.
-
@Sebastian-Roth
Last version of MINT (21.2) & FOG stable (1.5.10).
I will try another distribution. -
-
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 ;;