因项目需求,在树莓派上折腾了LAMP环境,安装过程中遇到一些问题,慢慢折腾解决了。
1、更换系统源
sudo nano /etc/apt/sources.list
注释掉系统默认源,更换阿里云源。
# deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib rpi
2、更新系统
sudo apt-get update -y