[INSTALL] Installation ArchLinux en mode Hors Ligne

Questions et astuces concernant l'installation et la configuration d'archlinux
dexter74
Daikyu
Messages : 53
Inscription : jeu. 28 oct. 2021, 20:24
Localisation : Annemasse

[INSTALL] Installation ArchLinux en mode Hors Ligne

Message par dexter74 »

Bonjour,

J'aimerai un coup de main pour faire une installation Hors Ligne depuis un LiveCD, j'ai lu le WIKI mais j'y arrive pas.

Documentation: Offline installation)

Partitionnement:

Code : Tout sélectionner

EFI: /dev/sda1
LVM: /dev/sda2
LVM

Code : Tout sélectionner

SWAP
SYSTEM
HOME
Montage sda

Code : Tout sélectionner

/dev/mapper/VG0-SYSTEM   20G   36K   19G   1% /mnt
/dev/mapper/VG0-HOME    6.8G   24K  6.5G   1% /mnt/home
/dev/sda1               511M  4.0K  511M   1% /mnt/boot
Tentative

Code : Tout sélectionner

#Purge Dossier:
cd; rm -rf /tmp/blankdb;

#Création et déplacement dans le dossier:
mkdir /tmp/blankdb; cd /tmp/blankdb;

#Téléchargement des paquets
pacman -Syw --noconfirm --cachedir . --dbpath /tmp/blankdb base;

#????
repo-add ./custom.db.tar.gz ./*

#Déclaration Dépôt
/etc/pacman.conf
[custom]
SigLevel = PackageRequired
Server = file:///tmp/blankdb

#Synchro
pacman -Syu
Erreur

Code : Tout sélectionner

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 custom.db failed to download
error: failed retrieving file 'custom.db' from disk : Couldn't open file /tmp/blankdb/custom.db
error: failed to synchronize all databases (download library error)
Note:

Code : Tout sélectionner

- Partition 1: FAT /boot
- Partition 2: LVM (/, /home, /Backup)
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [INSTALL] Installation ArchLinux en mode Hors Ligne

Message par benjarobin »

Bonjour,
Le Wiki indique de créer d'abord (depuis une autre Arch Linux) un dépôt local.
Puis d'utiliser ce dépôt local lors de l'installation.
Attention de ne pas mélanger des commandes qui doivent être exécuté depuis une Arch Linux existante, et celle à exécuter depuis la clé USB d'installation
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
dexter74
Daikyu
Messages : 53
Inscription : jeu. 28 oct. 2021, 20:24
Localisation : Annemasse

[INSTALL] Installation ArchLinux en mode Hors Ligne

Message par dexter74 »

Bonjour,

Je suis sur une Machine Virtuelle disposant de 2 Disque-dur. (sda: ArchLinux | sdb: Package Offline)
J'ai une connexion très faible d'où l'idée de faire comme ceci.
Je télécharge les packages dans sdb, puis j'édite le fichier pacman.conf.
Je procède à l'installation, mais j'ai une erreur de dépendance.
Pourriez-vous m'aider.



Téléchargements des packages :

Code : Tout sélectionner

pacman -Syw --noconfirm --cachedir /mnt/offline/packages base linux linux-headers linux-firmware;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages amd-ucode;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages lvm2;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages dosfstools exfat-utils ntfs-3g;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages efibootmgr xorg-server;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages xorg-xinit xf86-video-vesa pipewire-pulse;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages pipewire-alsa;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages iw iwd wpa_supplicant;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages dhcpcd dhclient;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages bash-completion base-devel binutils cronie curl dialog fakeroot git go gnome-keyring lha lsb-release mtools nano openssh p7zip pacman-contrib neofetch ntp reflector samba smbclient sudo syslog-ng unzip zip wget;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages xfce4 xfce4-goodies xfce4-dev-tools;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages gvfs gvfs-gphoto2 gvfs-mtp gvfs-nfs gvfs-smb;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages thunar-archive-plugin thunar-media-tags-plugin thunar-volman xfdesktop;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages sddm;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages pavucontrol;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages seahorse;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages libgsf libopenraw ffmpeg ffmpegthumbnailer libgepub poppler poppler-glib;
Téléchargements des dépendances :

Code : Tout sélectionner

pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy base linux linux-headers linux-firmware;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy amd-ucode;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy lvm2;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy dosfstools  exfat-utils ntfs-3g;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy efibootmgr;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy xorg-server xorg-xinit xf86-video-vesa;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy pipewire-pulse pipewire-alsa;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy iw iwd wpa_supplicant;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy dhcpcd dhclient;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy bash-completion base-devel binutils cronie curl dialog fakeroot git go gnome-keyring lha lsb-release mtools nano openssh p7zip pacman-contrib neofetch ntp reflector samba smbclient sudo syslog-ng unzip zip wget
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy xfce4 xfce4-goodies xfce4-dev-tools;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy gvfs gvfs-gphoto2 gvfs-mtp gvfs-nfs gvfs-smb;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy thunar-archive-plugin thunar-media-tags-plugin thunar-volman xfdesktop;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy sddm;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy pavucontrol;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy seahorse;
pacman -Syw --noconfirm --cachedir /mnt/offline/packages --dbpath /mnt/offline/dependancy libgsf libopenraw ffmpeg ffmpegthumbnailer libgepub poppler poppler-glib;
Pacman.conf

Code : Tout sélectionner

[options]
######################################################################################################################################################
# The following paths are commented out with their default values listed. If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
HoldPkg      = pacman glibc
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnoreGroup =
#IgnorePkg   =
#NoExtract   =
#NoUpgrade   =

# Misc options
CheckSpace
Color
#NoProgressBar
ParallelDownloads = 5
#UseSyslog
#VerbosePkgLists

######################################################################################################################################################
# By default, pacman accepts packages signed by keys that its local keyring trusts (see pacman-key and its man page), as well as unsigned packages.
LocalFileSigLevel   = Optional
#RemoteFileSigLevel = Required
SigLevel            = Required DatabaseOptional

#[core]
#Include = /etc/pacman.d/mirrorlist

#[extra]
#Include = /etc/pacman.d/mirrorlist

#[community]
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#Include = /etc/pacman.d/mirrorlist

[custom]
SigLevel = Optional
Server = file:///mnt/offline/packages

Erreurs :

Code : Tout sélectionner

warning: cannot resolve "****", a dependency of "*****"
error: failed to prepare transaction (could not satisfy dependencies)
Problème: Lors du téléchargement des packages et des dépendances, lors de l'installation (pacstrap), j'ai une erreur indiquant qu'il n'arrive pas à résoudre les dépendances. Comment puis je corriger cela ?

Packages qui demandes des dépendances:

Code : Tout sélectionner

- base-devel
- ffmpeg
- ffmpegthumbnailer
- git 
- gnome-keyring  
- gvfs gvfs-gphoto2
- gvfs-mtp
- gvfs-nfs
- gvfs-smb
- libgepub
- libgsf
- libopenraw
- ntp 
- pacman-contrib 
- pavucontrol
- poppler
- poppler-glib
- samba
- sddm
- seahorse
- thunar-archive-plugin
- thunar-media-tags-plugin
- thunar-volman
- xfce4
- xfce4-goodies
- xfce4-dev-tools
- xfdesktop
Note:

Code : Tout sélectionner

- Partition 1: FAT /boot
- Partition 2: LVM (/, /home, /Backup)
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [INSTALL] Installation ArchLinux en mode Hors Ligne

Message par benjarobin »

As tu fait exactement ce qui est indiqué dans le Wiki ? Pourquoi avoir fait en 2 fois le téléchargement, pourquoi ne pas avoir directement utilisé la commande du Wiki ?
As tu bien créer un dépôt local comme indiqué dans le Wiki via repo-add ?
Pourrais tu donner toute la sortie de pacman, surtout le début... Les messages d'erreurs pourraient aider à comprendre ce qui se passe.
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
dexter74
Daikyu
Messages : 53
Inscription : jeu. 28 oct. 2021, 20:24
Localisation : Annemasse

Re: [INSTALL] Installation ArchLinux en mode Hors Ligne

Message par dexter74 »

Bonjour,

La partie 1 Prepare local repository est stocké dans le disque-dur sdb.
La partie 2 Mount and configure est le sda

j'ai monté les deux partitions, j'ai juste quelque paquet qui pose problème liées aux dépendances.

@je poste demain les dépendances
Note:

Code : Tout sélectionner

- Partition 1: FAT /boot
- Partition 2: LVM (/, /home, /Backup)
Répondre