这篇文章上次修改于 1698 天前,可能其部分内容已经发生变化,如有疑问可询问作者。

脚本地址: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