You are not logged in.

#1 2008-03-01 17:50:56

z0phi3l
Member
From: Waterbury CT
Registered: 2007-11-26
Posts: 278

Small pacman issue

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

#2 2008-03-01 19:09:31

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Small pacman issue

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

#3 2008-03-02 00:39:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: Small pacman issue

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

#4 2008-03-04 03:56:30

z0phi3l
Member
From: Waterbury CT
Registered: 2007-11-26
Posts: 278

Re: Small pacman issue

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 smile

Offline

#5 2008-03-04 04:04:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: Small pacman issue

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

#6 2008-03-04 04:59:28

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Small pacman issue

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

#7 2008-03-04 20:49:05

z0phi3l
Member
From: Waterbury CT
Registered: 2007-11-26
Posts: 278

Re: Small pacman issue

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

#8 2008-03-04 21:22:13

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Small pacman issue

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

#9 2008-03-04 22:10:27

z0phi3l
Member
From: Waterbury CT
Registered: 2007-11-26
Posts: 278

Re: Small pacman issue

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

#10 2008-03-04 22:35:14

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: Small pacman issue

And to set up the right (fast responding) mirrors you can use (python) rankmirrors:
http://wiki.archlinux.org/index.php/Beg … ing_pacman

Offline

#11 2008-03-05 00:01:56

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: Small pacman issue

do you have a /etc/pacman.conf.pacnew file?  if so you should move it to /etc/pacman.conf and make you changes.

Offline

Board footer

Powered by FluxBB