我正在使用Ubuntu 17.4上的Laravel。当我输入以下命令:
php artisan migrate:refresh
时,出现以下问题:
我尝试通过运行[Illuminate\Database\QueryException] 找不到驱动程序 (SQL:select * from sqlite_master where type = 'table' and name = migrations)
[PDOException]
找不到驱动程序
sudo apt-get install php7.1-sqlite3
来安装sqlite驱动程序,但是我遇到了以下问题:
同时我的PHP版本是:读取软件包列表...完成
构建依赖关系树
读取状态信息...完成
E: 无法定位软件包php7.1-sqlite3
E: 无法找到任何与glob“php7.1-sqlite3”匹配的软件包
E: 无法找到任何与正则表达式“php7.1-sqlite3”匹配的软件包。
PHP 7.1.5-1+deb.sury.org~yakkety+2
。
apt-get update
命令以更新您的依赖项。 - hassan