修改安装源, nano 编辑/etc/apt/sources.list添加nginx的官方安装源:deb http://nginx.org/packages/debian/ squeeze nginx deb-src http://nginx.org/packages/debian/ squeeze nginx然后运行 update 并重新安装 nginx即可:apt update apt install nginx © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏