[pacman] Mise à jour impossible (Résolu)

Mise à jour / Création /debug de paquetages
Avatar de l’utilisateur
Fif91
yeomen
Messages : 225
Inscription : lun. 17 janv. 2011, 13:23

[pacman] Mise à jour impossible (Résolu)

Message par Fif91 »

Bonjour la communauté,
Il m'est impossible de mettre à jour mon système.

Code : Tout sélectionner

pacman -Syu 
:: Synchronisation des bases de données de paquets…
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/core.db.part en /var/lib/pacman/sync/core.db (Aucun fichier ou dossier de ce type)
erreur : la mise à jour de core a échoué (erreur en invoquant le client externe de téléchargement)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Downloading /usr/bin/printf: avertissement : arguments superflus ignorés, débutant par « && »
erreur : impossible de renommer /var/lib/pacman/sync/extra.db.part en /var/lib/pacman/sync/extra.db (Aucun fichier ou dossier de ce type)
Ma version de pacman

Code : Tout sélectionner

pacman --version

 .--.                  Pacman v5.2.0 - libalpm v12.0.0
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2018 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       Ce programme peut être librement redistribué
                       sous les termes de la licence GNU GPL.
Ma version de libarchive

Code : Tout sélectionner

pacman -Qs libarchive
avertissement : database file for 'core' does not exist (use '-Sy' to download)
avertissement : database file for 'extra' does not exist (use '-Sy' to download)
avertissement : database file for 'community' does not exist (use '-Sy' to download)
avertissement : database file for 'multilib' does not exist (use '-Sy' to download)
local/libarchive 3.4.0-2
    Multi-format archive and compression library
Le contenu du répertoire /var/lib/pacman/sync/

Code : Tout sélectionner

ls -la /var/lib/pacman/sync/
total 20
drwxr-xr-x 2 root root  4096  9 nov.  10:34 .
drwxr-xr-x 5 root root  4096 10 nov.  10:55 ..
-rw-r--r-- 1 root root 11707 18 oct.   2018 archlinuxfr.db
Mon mirrorlist

Code : Tout sélectionner

# With:       reflector --verbose -c France -c Belgium -c Netherlands -c 'United Kingdom' -c Luxembourg -l 20 -n 7 --sort rate --save /etc/pacman.d/mirrorlist
# When:       2019-11-10 09:21:34 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2019-11-10 09:21:31 UTC
# Last Check: 2019-11-10 08:50:44 UTC

Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch
Server = http://archlinux.polymorf.fr/$repo/os/$arch
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = https://mirror.thekinrar.fr/archlinux/$repo/os/$arch
Server = https://arch.nimukaito.net/$repo/os/$arch
Server = http://archlinux.mailtunnel.eu/$repo/os/$arch
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Avez-vous une idée ?
Dernière modification par Fif91 le dim. 10 nov. 2019, 14:02, modifié 1 fois.
Mageia 4 x64 | ArchLinux x64 | KDE
MSI P45 Neo-F - Intel E8500 @3.16 GHz - 7 Go RAM - ATI HD Radeon 3850
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [pacman] Mise à jour impossible

Message par benjarobin »

Bonjour,
Il manque le fichier le plus intéressant :-) La configuration de pacman : /etc/pacman.conf
Pas aussi de variable d'environnement "foireuse" ?

Code : Tout sélectionner

env | grep -vE "LS_COLORS|LESS_"
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Fif91
yeomen
Messages : 225
Inscription : lun. 17 janv. 2011, 13:23

Re: [pacman] Mise à jour impossible

Message par Fif91 »

Voici 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/
CacheDir    = /media/Repository/archlinux/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir    = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=3 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=0 -t5 -d / -o %o %u
XferCommand = /usr/bin/printf 'Downloading ' && echo %u | awk -F/ '{printf $NF}' && printf '...' && /usr/bin/aria2c -q --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=0 -t5 -d / -o %o %u && echo ' Complete!'
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

#ILoveCandy

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
TotalDownload
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.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

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

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

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

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

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

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

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

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

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

#[archlinuxfr] 
#SigLevel=Never
#Server = http://repo.archlinux.fr/$arch
Le résultat de la commande demandée :

Code : Tout sélectionner

# env | grep -vE "LS_COLORS|LESS_"
SHELL=/bin/bash
SESSION_MANAGER=local/PCMaster:@/tmp/.ICE-unix/927,unix/PCMaster:/tmp/.ICE-unix/927
BCyan=\e[1;36m
WINDOWID=58720263
COLORTERM=truecolor
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
BGreen=\e[1;32m
HISTCONTROL=ignoreboth:erasedups
IWhite=\e[0;97m
BIRed=\e[1;91m
LANGUAGE=fr
Cyan=\e[0;36m
On_IGreen=\e[0;102m
SHELL_SESSION_ID=f823a9660fb8415fae4227a6d6d69161
UPurple=\e[4;35m
DESKTOP_SESSION=/usr/share/xsessions/plasma
Blue=\e[0;34m
IRed=\e[0;91m
On_Cyan=\e[46m
GTK_RC_FILES=/etc/gtk/gtkrc:/home/arphilippe/.gtkrc:/home/arphilippe/.config/gtkrc
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/etc
LOGNAME=arphilippe
XDG_SESSION_DESKTOP=KDE
BBlack=\e[1;30m
XDG_SESSION_TYPE=x11
BIYellow=\e[1;93m
BBlue=\e[1;34m
Purple=\e[0;35m
XAUTHORITY=/tmp/xauth-500-_0
IGreen=\e[0;92m
BIBlack=\e[1;90m
Red=\e[0;31m
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/arphilippe/.gtkrc-2.0:/home/arphilippe/.config/gtkrc-2.0
White=\e[0;37m
Yellow=\e[0;33m
HOME=/root
LANG=fr_FR.UTF-8
XDG_CURRENT_DESKTOP=KDE
URed=\e[4;31m
KONSOLE_DBUS_SERVICE=:1.43
KONSOLE_DBUS_SESSION=/Sessions/5
PROFILEHOME=
On_Black=\e[40m
PROMPT_COMMAND=echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
BRed=\e[1;31m
ICyan=\e[0;96m
KONSOLE_VERSION=190802
IBlue=\e[0;94m
On_Blue=\e[44m
KDE_SESSION_UID=500
On_IBlack=\e[0;100m
BYellow=\e[1;33m
On_Red=\e[41m
XDG_SESSION_CLASS=user
TERM=xterm-256color
On_Green=\e[42m
On_ICyan=\e[0;106m
USER=arphilippe
On_Purple=\e[45m
COLORFGBG=15;0
KDE_SESSION_VERSION=5
PAM_KWALLET5_LOGIN=/run/user/500/kwallet5.socket
VISUAL=nano
DISPLAY=:0
BIWhite=\e[1;97m
Color_Off=\e[0m
BWhite=\e[1;37m
SHLVL=1
On_IYellow=\e[0;103m
BIBlue=\e[1;94m
UGreen=\e[4;32m
On_Yellow=\e[43m
BICyan=\e[1;96m
On_IRed=\e[0;101m
XDG_VTNR=1
BIPurple=\e[1;95m
XDG_SESSION_ID=2
UYellow=\e[4;33m
IBlack=\e[0;90m
IYellow=\e[0;93m
XDG_RUNTIME_DIR=/run/user/500
PS2=> 
PS3=> 
PS1=[\u@\h \W]\$ 
PS4=+ 
BPurple=\e[1;35m
On_IPurple=\e[0;105m
On_IWhite=\e[0;107m
On_White=\e[47m
QT_AUTO_SCREEN_SCALE_FACTOR=0
XCURSOR_THEME=breeze_cursors
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
KDE_FULL_SESSION=true
BIGreen=\e[1;92m
PATH=/bin:/usr/bin:/usr/local/bin:/home/arphilippe/bin
UWhite=\e[4;37m
UCyan=\e[4;36m
Green=\e[0;32m
KONSOLE_PROFILE_NAME=Terminal
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/500/bus
IPurple=\e[0;95m
MAIL=/var/spool/mail/arphilippe
On_IBlue=\e[0;104m
UBlack=\e[4;30m
Black=\e[0;30m
UBlue=\e[4;34m
OLDPWD=/home/arphilippe
_=/bin/env
Mageia 4 x64 | ArchLinux x64 | KDE
MSI P45 Neo-F - Intel E8500 @3.16 GHz - 7 Go RAM - ATI HD Radeon 3850
Avatar de l’utilisateur
Fif91
yeomen
Messages : 225
Inscription : lun. 17 janv. 2011, 13:23

Re: [pacman] Mise à jour impossible

Message par Fif91 »

Je pense avoir trouvé ce qui cloche, merci Benjarobin.
Dans le pacman.conf :

Code : Tout sélectionner

XferCommand = /usr/bin/printf 'Downloading ' && echo %u | awk -F/ '{printf $NF}' && printf '...' && /usr/bin/aria2c -q --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=0 -t5 -d / -o %o %u && echo ' Complete!'
Mais alors, pourquoi ?
En activant la ligne avec le wget, pas d'erreur et les fichiers sont bien présents dans /var/lib/pacman/sync
Mageia 4 x64 | ArchLinux x64 | KDE
MSI P45 Neo-F - Intel E8500 @3.16 GHz - 7 Go RAM - ATI HD Radeon 3850
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [pacman] Mise à jour impossible

Message par benjarobin »

Tu sors la commande XferCommand d'où ? Cela à peut peut être changé, mais maintenant manifestement il n’accepte pas une ligne de script bash. J'ai toujours utilisé la configuration par défaut (pas besoin de XferCommand) j'utilise le downloader intégré à pacman
XferCommand doit comprendre le chemin absolue vers l’exécutable et des arguments. Cette ligne n'existe pas par défaut, tu as du l'ajouter un jour...
Pour information par défaut (dans mon pacnew comme dans mon .conf) il y a (un extrait) :

Code : Tout sélectionner

HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Fif91
yeomen
Messages : 225
Inscription : lun. 17 janv. 2011, 13:23

Re: [pacman] Mise à jour impossible

Message par Fif91 »

@benjarobin
Je te confirme l'avoir ajouté jadis, il y a fort longtemps.
Peut-être provenait-elle du wiki anglais ?
Mageia 4 x64 | ArchLinux x64 | KDE
MSI P45 Neo-F - Intel E8500 @3.16 GHz - 7 Go RAM - ATI HD Radeon 3850
Répondre