首页 » bug飞 » Debian 安装lnmp报错解决

脚本地址:https://github.com/oneinstack/lnmp
  1. Media change: please insert the disc labeled

编辑/etc/apt/sources.list 删除cdrom那行

  1. There are problems and -y was used without --force-yes

方法1 apt-get update
方法2 Add to /etc/apt/apt.conf:
APT::Get::AllowUnauthenticated 1 ;

3.最重要的,更改中国源

vim /etc/apt/sources.list

 

deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

添加新评论