取决于:libssl0.9.8(> = 0.9.8m-1)但它不可安装

Mar*_*hov 3 linux debian nginx libssl

我正在尝试安装nginx(Debian 7,amd64):

apt-get install nginx
Run Code Online (Sandbox Code Playgroud)

但是我收到一个错误:

nginx:取决于:libssl0.9.8(> = 0.9.8m-1)但它不可安装

我下载了deb并安装它:

wget http://snapshot.debian.org/archive/debian/20110406T213352Z/pool/main/o/openssl098/libssl0.9.8_0.9.8o-7_i386.deb
sudo dpkg -i libssl0.9.8_0.9.8o-7_i386.deb
Run Code Online (Sandbox Code Playgroud)

但这没有效果.我究竟做错了什么?

谢谢.

Mar*_*hov 8

解:

要在Debian 7上安装nginx,您应该将其添加到/etc/apt/sources.list中:

deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx
Run Code Online (Sandbox Code Playgroud)