Questions sur l'installation et la configuration de Manjaro Linux.
Répondre

Problème pacman.conf

#1Messageil y a 11 ans

Bonjour à tous

je viens enfin de sauter le pas et d'installer manjaro sur mon pc... Après avoir testé toutes sortes de distros.
Tout semble aller, le wiki et le forum apportent les renseignements qu'il faut.
Cependant, j'ai un problème avec pacman.conf.

J'ai voulu le modifier pour ajouter des sources et depuis, j'ai un message d'erreur dès que je veux installer un quelconque paquet:

"Erreur : fichier de configuration /etc/pacman.conf, ligne 1 : toutes les instructions doivent appartenir à une section."


J'avoue que je ne comprends pas trop ce que ça veut dire.
Voici un cc de mon pacman.conf:

#
# /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 manjaro-system
# If upgrades are available for these packages they will be asked for first
SyncFirst   = manjaro-system pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#UseDelta
#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 = Optional TrustedOnly

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official packages
# Manjaro Linux supports with `pacman-key --populate archlinux manjaro`.

#
# 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.
#

[basis]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[platform]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[addon]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

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

[community]
SigLevel = PackageRequired
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.

[basis-multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = PackageRequired
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


Si quelqu'un a une solution à mon problème, je suis preneur...
Merci d'avance !
Dernière modification par forevernoobil y a 11 ans, modifié au total 1 fois.

Problème pacman.conf

#2Messageil y a 11 ans

Bonjour,

Tu as peut-être entré un caractère bizarre dans le fichier. Je viens de le comparer avec le mien, pas de différences, sauf à la ligne 2.

Essaie de reprendre le mien :

#
# /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 manjaro-system
# If upgrades are available for these packages they will be asked for first
SyncFirst = manjaro-system pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

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

#NoUpgrade =
#NoExtract =

# Misc options
#UseSyslog
#UseDelta
#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 = Optional TrustedOnly

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official packages
# Manjaro Linux supports with `pacman-key --populate archlinux manjaro`.

#
# 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.
#

[basis]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[platform]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[addon]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

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

[community]
SigLevel = PackageRequired
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.

[basis-multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = PackageRequired
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


(edit)

Si tu as un pacnew, c'est encore plus simple.

Problème pacman.conf

#3Messageil y a 11 ans

Merci pour ta réponse.
Je pense que l'erreur est venue parce que j'ai édité pacman.conf avec libreoffice, qui m'aura renvoyé un format bizarre.
Ca refonctionne.

Problème pacman.conf

#4Messageil y a 11 ans

ça c'est une drôle d'idée...

pour éditer les fichiers de configuration, il faut le faire avec un éditeur de texte simple (Gedit, Kwrite, Kate, Mousepad, Leafpad,... pour les graphiques ou Nano, Vim,... pour ceux en ligne de commande). tout autre moyen est à proscrire...

Problème pacman.conf

#5Messageil y a 11 ans

ça c'est une drôle d'idée...

Pas tant que ça. Chez moi, après une réinstall, c'est en général Libre Office qui ouvre par défaut les fichiers de ce type. Ce qui n'est pas génial. :confus:

Problème pacman.conf

#6Messageil y a 11 ans

Je confirme que c'est libreoffice qui s'est ouvert par défaut.
La drôle d'idée, c'est surtout d'être passé par nemo en root... mais la commande gedit /etc/pacman.conf me renvoyait une erreur.

Problème pacman.conf

#7Messageil y a 11 ans

Oui, ça m'embête pour gedit aussi. On peut évidemment faire un sudo gedit, mais c'est pas commode.

J'utilise vi, mais il n'est pas commode à apprendre. nano serait peut-être plus simple pour toi ?
Répondre