During installation, fatal PDO error displays

Details

PHP Fatal error:  Class 'PDO' not found in /var/www/html/magento2/setup/module/Magento/Setup/src/Module/Setup/ConnectionFactory.php on line 44

Solution:

Make sure you installed all required PHP extensions (Ubuntu).