raspberry-pi - 树莓派无法安装mysql或nginx
问题描述
不确定是什么问题。但是当我
sudo apt-get install mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql
尝试安装 nginx 时出现同样的错误。有一个树莓派 3 b+。sudo apt-cache search nginx
没有结果
解决方案
首先你应该更新包列表:
sudo apt-get update
然后:
sudo apt-get install mysql-server nginx