在具有向後移植功能的 Debian squeeze (6) 64 上啟用 32 位元編譯(棄用後)

在具有向後移植功能的 Debian squeeze (6) 64 上啟用 32 位元編譯(棄用後)

我嘗試用​​ 32 位元編譯軟體libc,其年齡足以與我的客戶相容。

所以我已經安裝了Debian Squeeze (6) 64 位ProXmox 容器中的最後幾天(即在棄用日期之後)。

我已經設定了存檔存儲庫以允許我更新/安裝軟體包,它可以工作。我的sources.list是:

deb http://archive.debian.org/debian squeeze main contrib non-free
deb http://archive.debian.org/debian squeeze-lts main contrib non-free
# Backports
deb http://archive.debian.org/debian-archive/debian-backports squeeze-backports main contrib non-free
# Security
deb http://archive.debian.org/debian-security squeeze/updates main contrib non-free

我不得不說,有很多過時的GPG密鑰,更新後,有一些總是過時的,它們似乎不再受支援了。

我目前的版本dpkg是 1.15.11 原始 Squeeze 版本,其中multiarch不存在該功能。它只出現在 1.16 中...足夠好了,上面列出的向後移植包含 wheezy 軟體包,其中 dpkg 版本為 1.16.9 。

http://archive.debian.org/debian-archive/debian-backports/pool/main/d/dpkg/

但我無法安裝此向後移植。當我運行命令時

apt-get install -t squeeze-backports dpkg

它回應:

Reading package lists... Done
Building dependency tree
Reading state information... Done
dpkg is already the newest version.
 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt-get policy dpkg回報

dpkg:
  Installed: 1.15.11
  Candidate: 1.15.11
  Version table:
 *** 1.15.11 0
        500 http://archive.debian.org/debian/ squeeze/main amd64 Packages
        100 /var/lib/dpkg/status

如果我問,那是因為我確信我已經把事情做好了。我想我正處於存檔版本有限制的前沿。

答案1

i386對於 Debian 6上 64 位元 ( ) 的32 位元 ( ) 構建amd64,您不需要多架構;如果您安裝gcc-multilibor g++-multilib(取決於您的目標)並使用gcc -m32(or g++ -m32) 進行編譯,您應該會得到您想要的結果。

相關內容