You are not logged in.

#1 2009-09-23 18:50:21

undergroundx
Member
Registered: 2009-09-23
Posts: 22

pacman.conf kinda confused

Hello i am just trying out Arch Linux and just did a fresh install. And i trying to enable the repositories and i seem to keep running into an error

everytime i type pacman or anything related it get this error

error: config file /etc/pacman.conf, line 65: directive 'Add your preferred servers here, they will be used first' not recognized.

I know you have to add your own mirrors and such which i did, but still getting errors here is my etc/pacman.conf and /etc/pacman.d/mirrorlist

here is the 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
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled

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

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#NoPassiveFtp
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload

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

# Testing is disabled by default.  To enable, uncomment the following
# two 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

[localmirror]
Server = http://www.pollicina.org/arch/localmirror

core
Add your preferred servers here, they will be used first
Server = http://mirrors.easynews.com/linux/archl … po/os/i686
Include = /etc/pacman.d/core

extra
Add your preferred servers here, they will be used first
Server = http://mirror.pacific.net.au/linux/arch/extra/os/i686
Include = /etc/pacman.d/extra

community
Add your preferred servers here, they will be used first
Server = http://shlunix.org/archlinux/repo/os/i686
Include = /etc/pacman.d/community

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



Here is the /etc/mirrorlist

# Arch Linux repository mirrorlist
# Generated on 2009-06-16
#


United States
Server = http://mirror.archlinux.com.ve/$repo/os/i686
Server = http://archlinux.unixheads.org/$repo/os/i686
Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
Server = ftp://mirrors.easynews.com/linux/archli … po/os/i686
Server = http://mirrors.easynews.com/linux/archl … po/os/i686
Server = ftp://ftp.archlinux.org/$repo/os/i686
Server = http://mirrors.gigenet.com/archlinux/$repo/os/i686
Server = ftp://ftp.gtlib.gatech.edu/pub/linux/di … po/os/i686
Server = http://www.gtlib.gatech.edu/pub/linux/d … po/os/i686
Server = ftp://mirrors.hosef.org/archlinux/$repo/os/i686
Server = http://mirrors.hosef.org/archlinux/$repo/os/i686
Server = ftp://ibiblio.org/pub/linux/distributio … po/os/i686
Server = http://distro.ibiblio.org/pub/linux/dis … po/os/i686
Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/i686
Server = ftp://mirror.rit.edu/archlinux/$repo/os/i686
Server = http://mirror.rit.edu/archlinux/$repo/os/i686
Server = http://schlunix.org/archlinux/$repo/os/i686
Server = http://mirror.sourceshare.org/archlinux/$repo/os/i686
Server = http://archlinux.umflint.edu/$repo/os/i686
Server = http://mirror.umoss.org/archlinux/$repo/os/i686

# Venezuela
#Server = http://mirror2.archlinux.com.ve/$repo/os/i686

# Vietnam
#Server = ftp://202.78.230.5/archlinux/$repo/os/i686
#Server = ftp://ftp.indochinalinux.com/archlinux/$repo/os/i686
#Server = ftp://mirror-fpt-telecom.fpt.net/archli … po/os/i686
#Server = http://mirror-fpt-telecom.fpt.net/archl … po/os/i686


Any help is greatly appreciated.

Offline

#2 2009-09-23 19:00:49

Sternmull
Member
Registered: 2009-09-22
Posts: 22

Re: pacman.conf kinda confused

The line that causes the error message looks like a comment that got uncommentend. That menas there is a # missing as the first character to say pacman to ignore it. Also it should be "[core]" and not "core". Look at the ArchWiki to setup the mirrors: http://wiki.archlinux.org/index.php/Pacman#Repositories

Offline

#3 2009-09-23 19:02:24

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: pacman.conf kinda confused

1) please use code tags

like this

2) the error is pretty self explanatory: "Add your preferred servers here, they will be used first" is not a valid config option, all comments need to be preceded by `#'

# like this

3) all of your repos should be in [ ]s. 

[likethis]

Offline

#4 2009-09-23 19:36:37

undergroundx
Member
Registered: 2009-09-23
Posts: 22

Re: pacman.conf kinda confused

Thanks for the reply appreciate it. smile

And i think i understand it alittle bit better here is a link to my changed pacman.conf and mirrorlist

Im still receiving errors about the mirrors

pacman.conf link

http://pastebin.ca/1576914

mirrorlist

http://pastebin.ca/1576916

Offline

#5 2009-09-23 19:56:25

Sternmull
Member
Registered: 2009-09-22
Posts: 22

Re: pacman.conf kinda confused

In the mirrorlist you forgot the = behind the Server directive, the lines 9 and 10 should look like this:

Server = ftp://mirrors.easynews.com/linux/archlinux/$repo/os/i686
Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/i686

Read the files more carefully. Both have a lot of lines that serve as examples. All information is there to it the right way on your own.

Offline

#6 2009-09-23 20:01:38

undergroundx
Member
Registered: 2009-09-23
Posts: 22

Re: pacman.conf kinda confused

oh okay thanks. Yeah i actually didn't notice that until you said something. Sorry... I should have looked harder.

Thanks. smile

Offline

Board footer

Powered by FluxBB