元の質問 私はaarch64Raspberry arm64Pi 3 B +(2017)またはPi 4(ここの画像を使用してください)。今、私はいくつかのアプリケーション/ライブラリの32ビット(armhf/)バージョンを実行したいがarmv7機能しないようです。これは特にraspistillRaspbery Piユーザーエリアアプリケーションではそうです。 質問:可能であればraspistill(および他の32ビットArmバイナリ)を64ビットOSで実行するにはどうすればよいですか? 私が試したこと: 以下で複数のアーキテクチャを有効にしてください。この Debian HOWTO ガイド。 私も追加しましたarmhf Raspberry Piのリソース この手順は、この質問で提供された回答と似ています。64ビットDebian / Ubuntuで32ビットプログラムを実行するにはどうすればよいですか? 次のインストール手順を試しましたraspistill。https://raspberrypi.stackexchange.com/a/67157。 正しく接続されていることを確認しようとするとエラーが発生しますnot a dynamic executable。 バイナリを実行するとNo such file or directoryエラーが発生します。 raspistillインストールを試しましたが、apt-get上記のエラーが発生しました。 また、シェルスクリプトを使ってMinicondaをインストールしてみましたarmv7l(Miniconda3-latest-Linux-armv7l.shここから)。次のエラーが発生します。 cannot execute native linux-armv7l binary, output from 'uname -a' is:
Linux rpi4-20201112 5.9.0-0.bpo.2-arm64 #1 SMP Debian 5.9.6-1~bpo10+1 (2020-11-19) aarch64 GNU/Linux
さらに取るべき措置 libc6:armhをインストールしてみてください。 ラズベリーパイソースを使う libc6:armh以下を使用してインストールしようとしましたが、sudo apt-get install libc6:armhf次のメッセージが表示されます。 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:
libc6:armhf : Depends: libgcc1:armhf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
すると、インストールするsudo apt-get install libc6:armhf libgcc1:armhf追加または新しいパッケージ、推奨パッケージ、および削除するパッケージの長いリストが表示されます。メッセージの最後の部分では、これを明確に説明します。 WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt) libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash
libtinfo6 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) debconf (due to dash) diffutils libbz2-1.0 (due to dpkg)
liblzma5 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk libfdisk1 (due to fdisk)
libmount1 (due to fdisk) libncursesw6 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) gzip hostname init systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login
libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login) mount util-linux (due to mount) ncurses-bin sed sysvinit-utils libcap-ng0 (due to util-linux) libudev1 (due to util-linux)
0 upgraded, 3 newly installed, 272 to remove and 1 not upgraded.
Need to get 2534 kB of archives.
After this operation, 718 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
デフォルトの Debian ソースの使用 今、私はraspbianソースを削除し/etc/apt/sources.list、アーキテクチャが有効になっているデフォルトのDebianソースのみを使用すると思いますarmhf。次の例sources.list:deb [arch=arm64,armhf] http://deb.debian.org/debian buster main contrib non-free。 今実行すると、sudo apt-get install libc6:armhfエラーメッセージが表示されますpackage architecture (armhf) does not match system (arm64)。sudo apt-get update、、、upgradeおよびdist-upgradeを実行した後もcleanこのエラーが発生しますautoclean。 Get:2 http://deb.debian.org/debian buster/main armhf libgcc1 armhf 1:8.3.0-6 [37.2 kB]
Get:3 http://deb.debian.org/debian buster/main armhf libc6 armhf 2.28-10 [2390 kB]
Get:4 http://deb.debian.org/debian buster/main armhf libunistring2 armhf 0.9.10-1 [368 kB]
Get:5 http://deb.debian.org/debian buster/main armhf libidn2-0 armhf 2.0.5-1+deb10u1 [74.3 kB]
Fetched 3060 kB in 2s (1430 kB/s)
Preconfiguring packages ...
dpkg: error processing archive /var/cache/apt/archives/gcc-8-base_8.3.0-6_armhf.deb (--unpack):
package architecture (armhf) does not match system (arm64)
dpkg: error processing archive /var/cache/apt/archives/libgcc1_1%3a8.3.0-6_armhf.deb (--unpack):
package architecture (armhf) does not match system (arm64)
dpkg: error processing archive /var/cache/apt/archives/libc6_2.28-10_armhf.deb (--unpack):
package architecture (armhf) does not match system (arm64)
dpkg: error processing archive /var/cache/apt/archives/libunistring2_0.9.10-1_armhf.deb (--unpack):
package architecture (armhf) does not match system (arm64)
dpkg: error processing archive /var/cache/apt/archives/libidn2-0_2.0.5-1+deb10u1_armhf.deb (--unpack):
package architecture (armhf) does not match system (arm64)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-8-base_8.3.0-6_armhf.deb
/var/cache/apt/archives/libgcc1_1%3a8.3.0-6_armhf.deb
/var/cache/apt/archives/libc6_2.28-10_armhf.deb
/var/cache/apt/archives/libunistring2_0.9.10-1_armhf.deb
/var/cache/apt/archives/libidn2-0_2.0.5-1+deb10u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
実行apt policy libc6:arm{hf,64} libgcc1:arm{hf,64}出力: libc6:armhf:
Installed: (none)
Candidate: 2.28-10
Version table:
2.28-10 990
990 http://deb.debian.org/debian buster/main armhf Packages
libc6:
Installed: 2.28-10
Candidate: 2.28-10
Version table:
*** 2.28-10 990
990 http://deb.debian.org/debian buster/main arm64 Packages
100 /var/lib/dpkg/status
libgcc1:armhf:
Installed: (none)
Candidate: 1:8.3.0-6
Version table:
1:8.3.0-6 990
990 http://deb.debian.org/debian buster/main armhf Packages
libgcc1:
Installed: 1:8.3.0-6
Candidate: 1:8.3.0-6
Version table:
*** 1:8.3.0-6 990
990 http://deb.debian.org/debian buster/main arm64 Packages
100 /var/lib/dpkg/status
試しましたが、新しいパッケージとアップデートがダウンロードされませんでしたsudo -f remove。autoclean admin@pop-os:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
avahi-utils lib32gcc-s1 lib32stdc++6 libasn1-8-heimdal libc6-i386
libclang-common-6.0-dev libclang-common-7-dev libclang1-6.0 libclang1-7
libegl-mesa0:i386 libegl1:i386 libfprint-2-tod1 libgbm1:i386 libgc1c2
libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libllvm6.0
libllvm7 libnvidia-common-440-server libnvidia-decode-440-server
libnvidia-encode-440-server libnvidia-extra-440-server
libnvidia-fbc1-440-server libnvidia-gl-440-server libnvidia-glcore
libnvidia-ifr1-440-server libomp-10-dev libomp-dev libomp5-10
libroken18-heimdal libwayland-server0:i386 libwind0-heimdal
libxcb-xfixes0:i386 libxnvctrl0 llvm-6.0 llvm-6.0-dev llvm-6.0-runtime
llvm-7 llvm-7-dev llvm-7-runtime nvidia-compute-utils-440-server
nvidia-dkms-440-server nvidia-kernel-common-440-server
nvidia-kernel-source-440-server nvidia-settings nvidia-support
nvidia-utils-440-server screen-resolution-extra xserver-xorg-video-nvidia
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libxcb-xfixes0:i386
The following NEW packages will be installed:
libxcb-xfixes0:i386
0 upgraded, 1 newly installed, 0 to remove and 1171 not upgraded.
3 not fully installed or removed.
Need to get 0 B/105 kB of archives.
After this operation, 148 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 315734 files and directories currently installed.)
Preparing to unpack .../libxcb-xfixes0_1.14-2_i386.deb ...
Unpacking libxcb-xfixes0:i386 (1.14-2) ...
dpkg: error processing archive /var/cache/apt/archives/libxcb-xfixes0_1.14-2_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libxcb-xfixes0/changelog.Debian.gz', which is different from other instances of package libxcb-xfixes0:i386
Errors were encountered while processing:
/var/cache/apt/archives/libxcb-xfixes0_1.14-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
私はDebian wheezyで古いサーバーをアップグレードしようとしています(例えば、遅れています)。systemd-sysvとの紛争を克服する方法を教えてくださいsysvinit。 適切なリストの言及を置き換えましたwheezy。jessiesed -i 's/wheezy/jessie/g' sources.list sources.list.d/* 実行するとapt -V upgradeエラーが発生します。 dpkg: error processing archive /var/cache/apt/archives/systemd-sysv_241-5_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man8/halt.8.gz', which is also in package sysvinit 2.88dsf-41+deb7u1
sysvinit以下を使用して既存のパッケージを削除してみましたdpkg -P sysvinit。 dpkg: error processing package sysvinit (--purge):
this is an essential package; it should not be removed
(私も試してみましたがapt --fix-broken installダメです。)