Ubuntu Server 18.04 Nginx i386 [英] Ubuntu Server 18.04 Nginx i386

查看:228
本文介绍了Ubuntu Server 18.04 Nginx i386的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在如何在Ubuntu 18.04 i386中安装nginx方面需要一些帮助.

Need some help in how to install nginx in Ubuntu 18.04 i386.

我有一个从版本10开始运行ubuntu服务器的旧服务器... 昨晚决定从16.04更新到18.04.除了Nginx以外,几乎所有东西都工作正常.经过研究,我发现仿生版不支持i386平台...

I have this old server that is running ubuntu server since version 10... Last night decided to update from 16.04 to 18.04. Almost everything worked fine, with the exception of Nginx... After some research I saw that the bionic version doesn't support i386 platform...

所以我有点卡住.

我试图强制安装xenial版本,但没有成功.

I tried to force the installation of the xenial version, but without success.

我已经尝试过的方法,首先是常规方法:

What I already tried, first the normal approach:

apt install nginx

取决于:nginx-extras(> = 1:1.17.3-8.6.0.4〜xenial1)

Depends: nginx-extras (>= 1:1.17.3-8.6.0.4~xenial1)

apt install nginx-extras

取决于:perlapi-5.22.1(仿生不存在,由perl-base 5.26.1-26代替?)

Depends: perlapi-5.22.1 (bionic doesn't exist, replaced by perl-base 5.26.1-26??)

取决于:libperl5.22(> = 5.22.1)(仿生版本为5.26)

Depends: libperl5.22 (>= 5.22.1) (bionic has the 5.26 version)

此后,我试图通过为nginx-extras下载deb软件包并使用dpkg来强制手动安装软件包,但由于与lua相关的某些遗漏依赖项而失败,因此对依赖项,deb文件, dpkg安装,最后安装了nginx-extras. 安装成功,但最后没有运行,在nginx启动时,它尝试加载perl so文件:

After this I tried to force to manual install packages, by downloading deb package for the nginx-extras and to install with dpkg, failed because some missing dependices related to lua, so just did the same for that dependecies, deb files, dpkg to install, and finally installed the nginx-extras. Installed with success, but in the end, it didn't run, on nginx start it tries to load a perl so file:

加载共享库时出错:libperl.so.5.22:无法打开共享库文件:没有这样的文件或目录"

"error while loading shared libraries: libperl.so.5.22: cannot open shared object file: No such file or directory"

这是可以执行的,因为我在系统中使用的版本是5.26,而不是5.22 ...

That was exepcted, because the version that I have in the system it's 5.26 and not the 5.22...

那我该怎么解决我的问题?

So what can i do to solve my problem?

谢谢

推荐答案

查看包装:nginx 并遵循 nginx-full

Looking at Package: nginx and following nginx-full or nginx-light shows, that architecture i386 is still supported in Bionic.

所以您的问题一定是其他问题.

So your problem must be something else.

从您的评论看来,您有 http://nginx.org/packages/ubuntu/作为存储库添加到/etc/apt/sources.list/etc/apt/sources.list.d/中的某个文件中.来自 http://nginx.org/packages/ubuntu/dists/bionic/Release,似乎确实不支持i386

From your comment, it looks like you have http://nginx.org/packages/ubuntu/ added as a repository in either /etc/apt/sources.list or some file in /etc/apt/sources.list.d/. From http://nginx.org/packages/ubuntu/dists/bionic/Release, it seems that i386 indeed is not supported

架构:amd64 arm64

Architectures: amd64 arm64

正在寻找条目

grep nginx.org /etc/apt/sources.list /etc/apt/sources.list.d/*

应该显示,这是相关的文件.注释适当的行(带有#的前缀)或将其删除,然后执行

should reveal, which is the relevant file. Comment the appropriate line (prefix with a #) or remove it, then do an

apt-get update

,然后直接从Ubuntu存储库重新安装该软件包.

and reinstall the package directly from the Ubuntu repository.

这篇关于Ubuntu Server 18.04 Nginx i386的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆