You are not logged in.
Pages: 1
Since the last two pacman updates I'm getting this error every time I run any pacman command:
error: config file /etc/pacman.d/testing, line 7: directive 'Server' not recognized.
I have not edited this file and I don't have the testing repo enabled, can I just delete the file or what is the problem?
Offline
Can you post your pacman.conf? Also if you haven't ever edited pacman.conf depending on when you installed Arch there might be issues since a newer version of pacman changed the way mirrors are listed.
Offline
Make sure you have upgraded pacman/your system. Pacman no longer has a file /etc/pacman.d/testing as the mirror list has been merged for all repos.
Offline
Sorry took me a while to get back
pacman.conf:
#
# /etc/pacman.conf
#
# See the pacman manpage for option directives
#
# GENERAL OPTIONS
#
[options]
LogFile = /var/log/pacman.log
HoldPkg = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#
# 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
#
#[testing]
Include = /etc/pacman.d/testing
[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/core
[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/extra
[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/community
#[unstable]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/unstable
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
[kdemod]
Server = http://kdemod.ath.cx/repo/current/i686
I generally don't mess with these files so it could need some fixing
Offline
#[testing]
Include = /etc/pacman.d/testing
should be
[testing]
Include = /etc/pacman.d/testing
same with unstable...
Last edited by Allan (2008-03-04 04:05:02)
Offline
Since you said you didn't want testing (and I'd guess unstable as well) you probably want to have both lines commented with # at the beginning instead of uncommented the way Allan said.
#[testing]
#Include = /etc/pacman.d/testing
Also you should get a new version of pacman since the way the mirrors are listed has changed. I think it should still work to get an update, I'm not totally certain. If it doesn't you'll need to download and install the pacman package manually before you can update everything else.
Offline
I'm using pacman 3.1.2
As far as I know that's the latest version
I'll fix the commenting in my pacman.conf
Offline
I'm using pacman 3.1.2
In that case you should have a file /etc/pacman.d/mirrorlist. You can change pacman.conf so it has the same line for each of the repositories.
Include = /etc/pacman.d/mirrorlist
That way if you ever want to change mirrors you only need to change one file. Probably want to make sure that /etc/pacman.d/mirrorlist is set for the repositories you want. I guess it's working fine keeping the old setup with seperate mirror files for each repository though.
Offline
So what you are saying is replace the Srever:....
to the Include statement, right? And that would be for al the Arch Repos obviously
Offline
And to set up the right (fast responding) mirrors you can use (python) rankmirrors:
http://wiki.archlinux.org/index.php/Beg … ing_pacman
Offline
do you have a /etc/pacman.conf.pacnew file? if so you should move it to /etc/pacman.conf and make you changes.
Offline
Pages: 1