我有一个远程服务器(Linux Debian 版本:7.8),由于公司的一些安全问题,它无法与外界连接。对于这个 wheezy os:我看到唯一可用的 nginx 版本是:1.2.1-2.2+喘息4,但没有标记此版本支持。
我想升级它,但没有更高的版本可用喘息,所以我下载了 deb 文件1.6.2-5+deb8u1~bpo70+1对于 wheezy-backports,上传到服务器并尝试安装。但我收到此错误:
> sudo dpkg -i nginx-full_1.6.2-5+deb8u1-bpo70+1_amd64.deb
dpkg: dependency problems prevent configuration of nginx-full:
nginx-full depends on nginx-common (= 1.6.2-5+deb8u1~bpo70+1); however:
Package nginx-common is not installed.
dpkg: error processing nginx-full (--install):
dependency problems - leaving unconfigured
所以我下载了 deb 文件nginx 常见对于 wheezy-backports,并尝试安装它,但随后出现此错误:
>sudo dpkg -i nginx-common_1.6.2-5+deb8u1-bpo70+1_all.deb
dpkg: dependency problems prevent configuration of nginx-common:
nginx-common depends on init-system-helpers (>= 1.18~); however:
Package init-system-helpers is not installed.
dpkg: error processing nginx-common (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
我下载了 init-system-helpers_1.34_all.deb,并尝试安装它,但是:
>sudo dpkg -i init-system-helpers_1.34_all.deb
dpkg: regarding init-system-helpers_1.34_all.deb containing init-system-helpers:
init-system-helpers breaks sysvinit-utils (<< 2.88dsf-59.3~)
sysvinit-utils (version 2.88dsf-41+deb7u1) is present and installed.
dpkg: error processing init-system-helpers_1.34_all.deb (--install):
installing init-system-helpers would break sysvinit-utils, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
init-system-helpers_1.34_all.deb
我不知道该做什么,我是不是做错了什么,有没有更好的方法?