I used apt-get to install the distribution package for the PHP 8.2 SQLite extension after the interpreter reported PDO without a database driver. The noninteractive install finished, and the next run could open a database.
- What worked
- One package install produced the missing extension without a reported conflict or a follow-up fix. The driver was usable immediately afterward.