Page 1 sur 1

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

Publié : lun. 23 juil. 2018, 09:37
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.

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

Publié : lun. 23 juil. 2018, 11:50
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).

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

Publié : mar. 24 juil. 2018, 09:31
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...

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

Publié : mar. 24 juil. 2018, 10:54
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.