我尝试在我的ubuntu 15.10上安装最新的Nginx版本(1.99).我想要一个Nginx版本> = 1.95,因为我喜欢http 2支持.
我按照我在互联网上找到的ubuntu 14.04的说明,但对于ubuntu 15.10(http://www.liberiangeek.net/2014/10/install-latest-version-nginx-ubuntu-14-10/)应该是相同的:
>下载Nginx存储库验证密钥:
cd /tmp/ && wget http://Nginx.org/keys/Nginx_signing.key
>安装存储库密钥:
sudo apt-key add Nginx_signing.key
sudo nano /etc/apt/sources.list.d/Nginx.list
>然后将下面的行复制并粘贴到文件中并保存(“wily”是我的15.10 ubuntu版本的Ubuntu代号)
deb http://Nginx.org/packages/mainline/ubuntu/ wily Nginx deb-src http://Nginx.org/packages/mainline/ubuntu/ wily Nginx
但是当我最终运行命令时:
apt-get install Nginx
我收到以下错误:
Nginx : Depends: libc6 (>= 2.14) but 2.13-38+deb7u8 is to be installed Depends: libssl1.0.0 (>= 1.0.2~beta3) but 1.0.1e-2+deb7u17 is to be installed
看看Nginx主线PPA:
https://launchpad.net/~nginx/+archive/ubuntu/development.
您可以运行sudo apt-add-repository ppa:Nginx / development来设置它.