64 位 Ubuntu 和 32 位应用程序

64 位 Ubuntu 和 32 位应用程序

我正在尝试在我的 VPS 上运行 32 位服务器进程,但是当我这样做时,它在加载进程所需的共享库时遇到了问题。

当我在谷歌上搜索时,他们建议“sudo apt-get install ia32-libs”,当我这样做时,我担心 Ubuntu 想要用 32 位包替换我安装的每个包,所有以前安装的包(包括 nginx 和 php )都被要求安装。

我究竟做错了什么?

答案1

“我做错了什么?”
好吧,看起来你把 Ubuntu 安装与许多第三方(Dotdeb / debian)软件包混在一起了,最终陷入了 DEB 地狱。
旁注:Dotdeb 的软件包应该可以在 Ubuntu 上运行,但不会提供额外的支持。

ia32-libs无论如何,在 Ubuntu 上安装应该当启用开关使用时,看起来有点像这样no-install-recommends

# apt-get install --no-install-recommends ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386 libv4l-0
Suggested packages:
  lib32asound2-plugins
The following NEW packages will be installed:
  ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386 libv4l-0
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.7MB of archives.
After this operation, 173MB of additional disk space will be used.
Do you want to continue [Y/n]?

我的 Ubuntu 10.04.4 amd64 上只需要 10 个新软件包。

从我的角度来看,全新安装“敌方领土”Ubuntu 服务器是最安全的方式。卸载 dotdeb 软件包(PHP 和 MySQL 软件包),然后从头开始安装不同的官方的repositories 是另一种方法。
或者在 VPS 上安装 Debian 并使用 Dotdeb-repository。

相关内容