Contexte :
J'utilise peu Arch, donc je le connais très peu.
Je l'utilise depuis 4 ans au travers de l'environnement
SystemRescue
: https://www.system-rescue.org/Download/Je fais une customisation sur DD selon :https://www.system-rescue.org/ (Ça me donne un environnement plutôt bien bétonné pour accéder à ma banque...)
À laquelle j'ajoute des packages avec
pacman
Initialement j'ai dû modifier le
pacman.conf
existant dans l'archive SystemRescue
pour pouvoir faire des installationsLe script d'alors est devenu, pour être fonctionnel :
Code : Tout sélectionner
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[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/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#Color
#TotalDownload
# We cannot check disk space from within a chroot environment
#CheckSpace
#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.
# DUF # SigLevel = Required DatabaseOptional
SigLevel = Never
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
##################
# SystemRescue
##################
# offers 2 different set of repositories, snapshot (the default) and rolling.
# With snapshot you get the packages at the moment of SystemRescue release
# rolling is the traditional rolling-release repository of Arch
#
# You can switch on a per-command basis like this:
# pacman --config /etc/pacman-rolling.conf <regular-pacman-command>
#
# or you can change the /etc/pacman.conf symlink for a permanent change
[core]
Include = /etc/pacman.d/mirrorlist-snapshot
[extra]
Include = /etc/pacman.d/mirrorlist-snapshot
[community]
Include = /etc/pacman.d/mirrorlist-snapshot
Avec la dernière mouture de
SystemRescue
les ajouts de packages échouaient.En grattant sur le net (je n'ai plus le lien) j'ai appris que j'avais 2 ans de retard et qu'il fallait commenter les 2 dernières lignes :
Code : Tout sélectionner
#[community]
#Include = /etc/pacman.d/mirrorlist-snapshot

Par curiosité j'ai essayé le dernier
pacman.conf
livré avec la dernière release de SystemRescue
: SystemRescue 12.00
Je me retrouve encore avec une erreur de syncronisation de database :
Code : Tout sélectionner
root@sysrescue /etc]# pacman -Syu
:: Synchronizing package databases...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: archive.archlinux.org
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: europe.archive.pkgbuild.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: america.archive.pkgbuild.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: asia.archive.pkgbuild.com
error: failed to synchronize all databases (error invoking external downloader)
[root@sysrescue /etc]#
pacman.conf
:
Code : Tout sélectionner
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[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/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
# wrap downloading in a faketime call that uses the real "today" as date
# this is to counter the faketime date introduced when running "pacman-faketime"
# necessary to deal with TLS certificate lifetimes
XferCommand = /usr/bin/faketime "today" /usr/bin/curl --continue-at - --output "%o" --fail --location "%u"
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#Color
#TotalDownload
# We cannot check disk space from within a chroot environment
#CheckSpace
#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.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
##################
# SystemRescue
##################
# offers 2 different set of repositories, snapshot (the default) and rolling.
# With snapshot you get the packages at the moment of SystemRescue release
# rolling is the traditional rolling-release repository of Arch
#
# You can switch on a per-command basis like this:
# pacman --config /etc/pacman-rolling.conf <regular-pacman-command>
#
# or you can change the /etc/pacman.conf symlink for a permanent change
[core]
Include = /etc/pacman.d/mirrorlist-snapshot
[extra]
Include = /etc/pacman.d/mirrorlist-snapshot
Et je n'ai pas de :# DUF # SigLevel = Required DatabaseOptional
Code : Tout sélectionner
XferCommand
Code : Tout sélectionner
XferCommand = /usr/bin/faketime "today" /usr/bin/curl --continue-at - --output "%o" --fail --location "%u"
Code : Tout sélectionner
error: failed to synchronize all databases (error invoking external downloader)
Code : Tout sélectionner
#[community]
#Include = /etc/pacman.d/mirrorlist-snapshot
pacman.conf
)Donc (enfin) mes questions :
1) Le fait de ne pas avoir de
[b][i]XferCommand[/i][/b]
dans le mien est-il préjudiciable ?2) Puis-je continuer ainsi sans risque ?
3) Que signifie cette syntaxe ? :
Code : Tout sélectionner
XferCommand = /usr/bin/faketime "today" /usr/bin/curl --continue-at - --output "%o" --fail --location "%u"
SystemRescue 12.00
...Je pourrais me contenter de continuer ainsi, mais la curiosité me pousse à poser les questions.
En plus à 73 ans je commence à pédaler dans le vide

Désolé d'avoir été si long.
Merci