после того еще попробовал и
apt install php7.4-pdo && php7.4-mysql
консоль ответила:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.4-common' instead of 'php7.4-pdo'
php7.4-common is already the newest version.
php7.4-common set to manually installed.
The following packages were automatically installed and are no longer required:
libicu64 php7.3-mbstring
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded.
-bash: php7.4-mysql: command not found