在(32位用户区/64位内核)debian上安装64位应用程序

在(32位用户区/64位内核)debian上安装64位应用程序

我正在尝试安装pepperflashplugin-nonfree,我正在尝试安装 64 位版本,因为 32 位版本不再可用。

如果不删除 binutils:i386,我无法安装它。 如何pepperflashplugin-nonfree在这个 32 位系统上安装?

我尝试过的:

#> sudo apt-get install pepperflashplugin-nonfree:amd64
[sudo] password for richard:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pepperflashplugin-nonfree:amd64 : Depends: binutils:amd64 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

所以我尝试添加binutils(64位版本)

#> sudo apt-get install pepperflashplugin-nonfree:amd64 binutils:amd64;
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dblatex docbook-to-man docbook-utils eclipse-cdt-jni highlight highlight-common intltool
  kernel-common libsgmls-perl linux-kbuild-3.16 sgmlspl texlive texlive-bibtex-extra
  texlive-math-extra xmlto
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libnspr4:amd64 libnss3:amd64
Suggested packages:
  binutils-doc:amd64 chromium:amd64 ttf-mscorefonts-installer:amd64 ttf-dejavu:amd64
  ttf-xfree86-nonfree:amd64 hal:amd64
The following packages will be REMOVED:
  binutils build-essential debhelper dpkg-dev eclipse-cdt equivs g++ g++-4.9 gcc gcc-4.8
  gcc-4.9 gnome-common gtk-doc-tools hardening-includes kernel-package libtool lintian
  linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-686-pae linux-headers-3.16.0-4-amd64
  linux-headers-686-pae linux-headers-amd64 network-manager-pptp pptp-linux
The following NEW packages will be installed:
  binutils:amd64 libnspr4:amd64 libnss3:amd64 pepperflashplugin-nonfree:amd64
0 upgraded, 4 newly installed, 24 to remove and 0 not upgraded.
Need to get 4,806 kB of archives.
After this operation, 117 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

然而这表明它将删除 32 位版本。如果我告诉它安装两者,它会告诉它存在冲突。

#> sudo apt-get install pepperflashplugin-nonfree:amd64 binutils:amd64 binutils:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
binutils is already the newest version.
binutils set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 binutils:amd64 : Conflicts: binutils but 2.25-5 is to be installed
 binutils : Conflicts: binutils:amd64 but 2.25-5 is to be installed
E: Unable to correct problems, you have held broken packages.

我运行的是 Debian Jessie 32 位,除了内核和虚拟盒是 64 位(虚拟盒必须与内核匹配)。

#> uname -a
Linux richard-laptop 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux

#> dpkg-query -l "virtualbox*" base-files
||/ Name            Version                    Architecture  Description 
ii  virtualbox-5.1  5.1.14-112924~Debian~jess  amd64         Oracle VM VirtualBox      
ii  base-files      8+deb8u7                   i386          Debian base system miscellaneous files

#> cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

#> cat /etc/debian_version
8.7

注意:我无法安装 64 位 Debian。 (请参阅有关此问题的其他问题安装 64 位 Debian了解更多详情)

答案1

build-essential您可以将您的工具链(及其依赖项)与要删除的其他包一起进行交叉分级amd64,但在开始之前,事实证明它pepperflashplugin-nonfree无论如何都不适用于您的设置,因为它尝试下载与您的主程序相对应的文件架构( 的结果dpkg --print-architecture)。

因此,我建议针对该软件包提交一个错误,请求在 32 位系统上支持 64 位 Chromium;这需要一些修复update-pepperflashplugin-nonfree和依赖binutils:any(尽管未经测试,我不知道这是否适用于 Debian 8)。

或者,您可以下载来源,从那里提取更新脚本并强制其运行(在脚本中amd64查找,将其设置为并删除以下内容)。arch=""x86_64case

相关内容