[pacman] probléme de initialisation de pacman dans une installation par chroot

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
manouchk
Daikyu
Messages : 96
Inscription : sam. 09 août 2008, 12:56

[pacman] probléme de initialisation de pacman dans une installation par chroot

Message par manouchk »

Je suis l'installation par chroot (https://wiki.archlinux.fr/Install_chroot)

Quand je lance la première commande pacman (pacman -r /mnt --cachedir /mnt/var/cache/pacman/pkg -Sy base syslinux), j' obtient le message d'erreurs:

Code : Tout sélectionner

warning: database file for 'core' does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mir.archlinux.fr : The requested URL returned error: 404 Not Found
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mir.archlinux.fr : The requested URL returned error: 404 Not Found
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mir.archlinux.fr : The requested URL returned error: 404 Not Found
error: failed to update community (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
Après quelque recherche j'ai ajouté deux miroirs français et j'ai maintenant ce message:

Code : Tout sélectionner

warning: database file for 'core' does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mir.archlinux.fr : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from eu.mirrors.coltondrg.com : error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
error: failed retrieving file 'core.db' from mirror.oldsql.cc : error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mir.archlinux.fr : The requested URL returned error: 404 Not Found
error: failed retrieving file 'extra.db' from eu.mirrors.coltondrg.com : error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
error: failed retrieving file 'extra.db' from mirror.oldsql.cc : error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mir.archlinux.fr : The requested URL returned error: 404 Not Found
error: failed retrieving file 'community.db' from eu.mirrors.coltondrg.com : error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
error: failed retrieving file 'community.db' from mirror.oldsql.cc : error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
Je ne sais pas si je comprend bien. Est-ce qu'il me manque l'initialisation de clefs?

J'ai donc essaie la commande pacman-key --init mais pacman-key n'est pas installé. Je ne sais pas trop quoi faire et où chercher maintenant.
Avatar de l’utilisateur
manouchk
Daikyu
Messages : 96
Inscription : sam. 09 août 2008, 12:56

Re: [pacman] probléme de initialisation de pacman dans une installation par chroot

Message par manouchk »

Je sais peu-être quel est le problème. L'hote tourne en i686 et non x86_64. La page en anglais alerte de la nécessité d'installer sur un hôte qui tourne en x86_64 cf https://wiki.archlinux.org/index.php/In ... ting_Linux alors que la page en français ne parle pas de ça (https://wiki.archlinux.fr/Install_chroot).
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [pacman] probléme de initialisation de pacman dans une installation par chroot

Message par FoolEcho »

Salut...

Un chroot n'est effectivement possible que si les architectures sont communes (cf. https://wiki.archlinux.fr/Chroot#Exigences ).
Arch est désormais uniquement en 64 bits. Se tourner vers Arch 32 sinon ( https://archlinux.fr/accueil/fin-du-support-i686 ) .

Mais rien ne t'empêche de faire une installation normale du coup...
«The following statement is not true. The previous statement is true.» :nage:
avi3000
Chu Ko Nu
Messages : 405
Inscription : dim. 19 juin 2011, 18:53
Localisation : dans le neuf trois

Re: [pacman] probléme de initialisation de pacman dans une installation par chroot

Message par avi3000 »

FoolEcho a écrit : mar. 24 juil. 2018, 09:31 Un chroot n'est effectivement possible que si les architectures sont communes (cf. https://wiki.archlinux.fr/Chroot#Exigences ).
bonjour,

Le wiki était partiellement erroné.
On peut effectuer un chroot d'un système 32 bits depuis un hôte en 64 bits.
L'inverse n'est, bien entendu, pas possible.
Je suis sur devuan avec sysvinit et kbwm
Répondre