View previous topic :: View next topic |
Author |
Message |
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Wed Sep 07, 2022 6:28 pm Post subject: chroot exec Format Error |
|
|
Bonjour,
j'essaye actuellement d'installer Gentoo sur mon ssd externe vide et partitionné, j'ai suivi le manuel mais lorsque je dois utiliser la commande $chroot /mnt/gentoo /bin/bash j'obtiens l'erreur :
chroot: failed to run command /bin/bash: exec format error
L'architecture de mon système est en AMD64 ainsi que la version du manuel que j'ai suivi, je ne comprend pas d'où vient le probleme.
En espérant un peu d'aide,
Merci d'avance |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1904 Location: 127.0.0.1
|
Posted: Wed Sep 07, 2022 7:15 pm Post subject: |
|
|
Salut,
Au moment de télécharger et de décompresser l'archive stage3, es-tu certain d'avoir téléchargé une archive amd64 ? L'une de celles-ci en fonction de tes choix d'installation :
Code: |
current-stage3-amd64-nomultilib-openrc/ 07-Sep-2022 05:01
current-stage3-amd64-nomultilib-systemd/ 07-Sep-2022 05:01
current-stage3-amd64-openrc/ 07-Sep-2022 05:01
current-stage3-amd64-systemd/ 07-Sep-2022 05:01
|
|
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Wed Sep 07, 2022 7:43 pm Post subject: |
|
|
Oui, j'ai pris la première: stage3-amd64-openrc. |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3169 Location: Paris
|
Posted: Wed Sep 07, 2022 8:48 pm Post subject: |
|
|
Et tu es dans quel environnement au moment de faire le chroot? Un LiveCD Gentoo (lequel)?
Quel CPU as-tu? _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Fri Sep 09, 2022 7:30 am Post subject: |
|
|
Salut, j'utilise le Boot Live Cd avec l'iso minimal-amd64-20220904T170535Z.
Mon cpu est un AMD Ryzen 5 5500U. |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Fri Sep 09, 2022 8:18 am Post subject: Re: chroot exec Format Error |
|
|
bibendum wrote: | lorsque je dois utiliser la commande $chroot /mnt/gentoo /bin/bash j'obtiens l'erreur :
chroot: failed to run command /bin/bash: exec format error |
Salut,
Tu tapes exactement cette commande ?
A tout hasard, il ne faut pas de "$" devant chroot.
Ce qui figure devant le chroot fait partie de l'affichage du "prompt". Le "$" est en général le prompt affiché à l'utilisateur. Le "#" est d'habitude associé à root
Code: | root #chroot /mnt/gentoo /bin/bash
root #source /etc/profile
root #export PS1="(chroot) ${PS1}" |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Fri Sep 09, 2022 3:06 pm Post subject: |
|
|
As-tu bien pris un stage AMD64 et pas ARM64? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 8:40 am Post subject: |
|
|
Evidemment, j'ai mis le $ par habitude pour montrer la commande que j'ai tapée.
Je suis bien bloqué à cet endroit :
root #chroot /mnt/gentoo /bin/bash
root #source /etc/profile
root #export PS1="(chroot) ${PS1}"
Mais lorsque je tape la première ligne, j'obtient l'erreur, l'iso que j'ai utilisée est bien une amd64. |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Sat Sep 10, 2022 10:52 am Post subject: |
|
|
Que donnent les commandes
Code: | ~ # file /mnt/gentoo/bin/bash
~ # ls -al /mnt/gentoo/bin/bash | ?
(Pas d'espace entre "/gentoo" et "bin/", contrairement à la commande chroot ! ) |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 10:54 am Post subject: |
|
|
Je refais toute l'installation depuis le début et je vous dit |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 11:21 am Post subject: |
|
|
Pour la première commande j'obtiens le message suivant :
/mnt/gentoo/bin/bash: ELF 64-bit LSB pie exécutable, ARM aarch65, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, stripped
Pour la deuxième commande j'ai:
-rwxr-xr-x 1 root root 859976 Aug 1 00:33 /mnt/Gentoo/bin/bash |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1904 Location: 127.0.0.1
|
Posted: Sat Sep 10, 2022 11:44 am Post subject: |
|
|
bibendum wrote: | Pour la première commande j'obtiens le message suivant :
/mnt/gentoo/bin/bash: ELF 64-bit LSB pie exécutable, ARM aarch65, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, stripped
|
Tu dois faire erreur quelque part, révérifie tes téléchargements. |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 11:46 am Post subject: |
|
|
Je me suis trompe en tapant, j'obtiens bien aarch64 |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1904 Location: 127.0.0.1
|
Posted: Sat Sep 10, 2022 11:48 am Post subject: |
|
|
bibendum wrote: | Je me suis trompe en tapant, j'obtiens bien aarch64 |
aarch64 c'est une architecture ARM.
Toi tu as une architecture amd64.
Tu télécharges donc les mauvais fichiers. |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 11:50 am Post subject: |
|
|
Merci pour votre réponse, est-ce que vous sauriez me dire quels fichiers ne sont pas les bons ? |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Sat Sep 10, 2022 1:43 pm Post subject: |
|
|
bibendum wrote: | Merci pour votre réponse, est-ce que vous sauriez me dire quels fichiers ne sont pas les bons ? |
Difficile à dire puisque qu'on ne sait pas ce que tu as exactement téléchargé !
Dans sa première réponse, Netfab t'a donné le nom des stages3 qui pourraient te convenir. Retiens surtout que le nom doit spécifiquement mentionner le nom de l'architecture de ton processeur, c'est-à-dire amd64 !
Par exemple, tu pourrais aller voir http://gentoo.mirrors.ovh.net/gentoo-distfiles/releases/ : tu y verras la liste des architectures supportées. Tu dois obligatoirement fureter dans le répertoire amd64. Là, tu serais certain de n'y trouver que des fichiers relatifs à ton architecture !
Pour le reste, tout dépend du type d'installation que tu veux faire (systemd, openrc, multilib ou pas ...). |
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 1:48 pm Post subject: |
|
|
Merci, vous m'avez débloqué, j'ai tout refait en téléchargeant le bon fichier tar, je suis actuellement en train de compiler le kernel. |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Sat Sep 10, 2022 2:09 pm Post subject: |
|
|
|
|
Back to top |
|
|
bibendum n00b
Joined: 07 Sep 2022 Posts: 11
|
Posted: Sat Sep 10, 2022 5:07 pm Post subject: |
|
|
C'est bon, Gentoo est installé, merci à tous pour votre aide. |
|
Back to top |
|
|
Mickael Advocate
Joined: 05 Sep 2005 Posts: 2387 Location: ~Belfort! - France - EU
|
Posted: Tue Oct 18, 2022 2:10 pm Post subject: |
|
|
y 'a des trucs qui se perdent
Quote: |
[Title] truc machin [Résolu] |
_________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3169 Location: Paris
|
Posted: Mon Nov 07, 2022 2:17 pm Post subject: |
|
|
Mickael wrote: | y 'a des trucs qui se perdent
Quote: |
[Title] truc machin [Résolu] |
|
Tout à fait.
Bonjour,
Peux-tu STP mettre ton titre en conformité avec les règles en usage sur notre forum (Le format choisi est : [THEME] description (état))?
Merci. _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
|