[yaourt] Yaourt cassé après maj vers pacman 4.1 (résolu)

Annonces, dépannage, évolution du projet yaourt
Répondre
Morhue
newbie
Messages : 7
Inscription : mer. 07 déc. 2011, 08:20

[yaourt] Yaourt cassé après maj vers pacman 4.1 (résolu)

Message par Morhue »

Bonjour,
j'ai un soucis après la maj que j'ai faite ce matin vers pacman 4.1.
J'ai suivi les instructions donnée dans les news et tout s'est bien passé, et j'ai bien mergé les options de pacman.conf.pacnew dans mon pacman.conf.
Mon problème est que pacman tout seul fonctionne très bien, mais que quand j'appelle yaourt j'ai une erreur "bash: pacman-color : commande introuvable".
J'ai peu être fait une bidouille il y a quelque temps qui casse tout maintenant :pastaper: ; mais je n'arrive pas à la pointer du doigt...
Quelqu'un a une idée?

Voici mon 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/
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
CheckSpace
#VerbosePkgLists
ILoveCandy

# 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

# 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

#[repo-ck]
#Server = http://repo-ck.com/$arch
et mon yaourtrc:

Code : Tout sélectionner

#    yaourtrc  - Configuration for yaourt
# 
#   See yaourtrc(5) for more information
#   
#

# General
#AUTOSAVEBACKUPFILE=0
#DEVELBUILDDIR="/var/abs/local/yaourtbuild"
#DEVEL=0
#EDITOR="$EDITOR"
#FORCEENGLISH=0
#FORCE=0
#TMPDIR="/tmp"

# SUDO
#SUDONOVERIF=0      # Avoid multiple sudo checks when timestamp_timeout=0
#SUDOREDIRECT=1     # Define to 0 in case you use a fingerprint device

# ABS
# If the package "abs" is installed, those var are parsed from abs.conf
#REPOS=()           # REPOS available at $SYNCSERVER
#SYNCSERVER=""

# AUR
#AURURL="https://aur.archlinux.org"
#AURCOMMENT=5
#AURDEVELONLY=0
#AURSEARCH=1
#AURUPGRADE=0
#AURVOTE=1

# Build
#EXPORT=0           # Export to 1: EXPORTDIR or PKGDEST
                    # 2: pacman cache (as root)
#EXPORTSRC=0        # Need EXPORT>0 to be used
#EXPORTDIR=""       # If empty, use makepkg's connfiguration (see makepkg.conf)

# Prompt
#NOCONFIRM=0
#UP_NOCONFIRM=0     # No prompt while build upgrades (including -Sbu)
#BUILD_NOCONFIRM=0  # Only prompt for editing files
#PU_NOCONFIRM=0     # Add --noconfirm to $PACMAN -U
#EDITFILES=1
#NOENTER=1

# Output
USECOLOR=1
#USEPAGER=0
#DETAILUPGRADE=1
#SHOWORPHANS=1
#TERMINALTITLE=1

# Command
#PACMAN="pacman"
#DIFFEDITCMD="vimdiff"
Merci

Morhue
Dernière modification par Morhue le sam. 06 avr. 2013, 12:14, modifié 1 fois.
Avatar de l’utilisateur
Anghirrim
Elfe
Messages : 701
Inscription : mar. 28 févr. 2012, 11:09
Localisation : Loire-Atlantique

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par Anghirrim »

pacman-color n'est plus nécessaire, car intégré dans les options de pacman.

As-tu tenté de réinstaller yaourt? Je l'avais désinstallé avant la MAJ de pacman. Puis réinstallé après et tout a fonctionné nickel.
Optiplex 3060 Micro Intel© Core™ i5-8500T, 16Go RAM, Arch Linux Cinnamon + Windows 10
Asus X53S, Linux Mint Cinnamon
Morhue
newbie
Messages : 7
Inscription : mer. 07 déc. 2011, 08:20

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par Morhue »

Effectivement, j'ai désinstallé pacman-color. Je n'aurais pas pu faire la maj de si je ne l'avais pas fait car pacman-color dépend de pacman < 4.1. J'ai aussi réinstallé yaourt en faisant un pacman -Rs yaourt; pacman -Sc (pour nettoyer le cache); pacman -S yaourt.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10707
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par FoolEcho »

Ça doit venir d'un ~/.yaourtrc qu'il te faut éditer (j'imagine que le yaourtrc que tu as présenté est celui de /etc/ ?).
«The following statement is not true. The previous statement is true.» :nage:
Morhue
newbie
Messages : 7
Inscription : mer. 07 déc. 2011, 08:20

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par Morhue »

Tout à fait foolecho, il s'agit du yaourtrc de mon /etc. Je viens de regarder, je n'ai pas .yaourtrc dans mon home.
Je viens de tester en copiant celui de /etc dans mon home, mais ça ne change rien.
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par tuxce »

Tu as défini la variable PACMAN dans :
- l'un des fichiers de ton environnement. Pour vérifier‚ lance un echo $PACMAN
- ou un fichier de yaourt, dans le doute, donne la sortie de :

Code : Tout sélectionner

bash -x yaourt
willcoyote
archer
Messages : 149
Inscription : sam. 25 déc. 2010, 23:41

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par willcoyote »

Salut
J'avais le même problème
résolu en supprimant la ligne:

export PACMAN="pacman-color"

dans le fichier ~/.bashrc
Morhue
newbie
Messages : 7
Inscription : mer. 07 déc. 2011, 08:20

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par Morhue »

Effectivement, j'avais défini une variable d'environnement PACMAN qui correspondait à pacman-color, je l'avais pourtant supprimée et j'avais resourcé mon .bashrc, mais cela n'avait pas du fonctionner. J'ai rebooté la machine et maintenant tout se passe bien.
Merci Tuxce, j'avais pas penser à vérifier ce que contenait la variable, vu que j'avais fait un source.
Morhue
newbie
Messages : 7
Inscription : mer. 07 déc. 2011, 08:20

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1

Message par Morhue »

Je passe le sujet en "RESOLU".
Merci à tous!
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10707
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1 (résolu)

Message par FoolEcho »

Morhue a écrit :j'avais défini une variable d'environnement PACMAN qui correspondait à pacman-color, je l'avais pourtant supprimée et j'avais resourcé mon .bashrc, mais cela n'avait pas du fonctionner. J'ai rebooté la machine et maintenant tout se passe bien.
Il suffisait de te reconnecter (sourcer le .bashrc n'a aucune raison d'effacer les variables existantes). :wink:
«The following statement is not true. The previous statement is true.» :nage:
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1 (résolu)

Message par tuxce »

ou

Code : Tout sélectionner

unset PACMAN
PACMAN=
# ...
(plus simple quand même)
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10707
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [yaourt] Yaourt cassé après maj vers pacman 4.1 (résolu)

Message par FoolEcho »

:mrgreen:
«The following statement is not true. The previous statement is true.» :nage:
Répondre