You are not logged in.
Hi everyone
I am new to Arch but have been using linux for about two years.
I have installed arch and can log in as root however I have not been able to install xorg and kde. I have followed this guide:
http://wiki.archlinux.org/index.php/Beg … ith_pacman
But I get the following mesasge when doing pacman -S xorg:
error: config file /etc/pacman.conf, line 42: directive 'core' not recognised.
I have been searching the net for over an hour and not been able to figure this out so any help would be much appreciated.
Thanks
Offline
Please post your /etc/pacman.conf; specifically around line 42.
Likely you have "core" where you should have "[core]".
M*cr*s*ft: Who needs quality when you have marketing?
Offline
Hi pointone
I thought that I had to remove the [] from core? So I replaced the [] so it know reads:
[core]
Server= http://www.mirrorservice.org/sites/ftp/archlinux.org/
Include = /etc/pacman.d/mirrorlist
However when I now do pacman -S xorg I get:
Error: xorg not found in sync db
Any ideas?
Offline
Do you have the [extra] repo in there. Good idea to have [community] too. Then do a "pacman -Syy" to refresh the pacman database and all shoud be good.
Offline
Hi Allan
I'm not sure what mirrors to add in extra and community. I did pacman -Syy and got:
failed to synchronise community: Transient resolver failure
failed to synchronise any databases
Offline
Get rid of the "Server = " lines and just comment out (with a # at the start of the line) the mirrors you do not want in /etc/pacman.d/mirrorlist.
The relevant section from my pacman.conf for you to copy paste
[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist
[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist
[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist
Offline
Okay did all that Allan but im still getting:
failed to synchronise community: Transient resolver failure
failed to synchronise any databases
Offline
First try un-commenting a different mirror in you /etc/pacman.d/mirrorlist. If that does not work, can you post your complete /etc/pacman.conf and /etc/pacman.d/mirrorlist and the output of "pacman --debug -S xorg"
Offline
Allan
How does one go about posting the complete list as currently i am writing this on my laptop while arch is installed on my desktop
Offline
good point... did you try changing mirrors in your /etc/pacman.d/mirrorlist?
Just the last few lines of output from "pacman -Syy --debug" should be fine. From where it mentions using community.
Offline
When I do nano /etc/pacman.d/mirrorlist? it is empty?
Offline
Here: my pacman.conf Yours should be something like this:
#
# /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# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = wesnoth virtualbox_bin koffice jre
#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[core]
Server=http://server.elsistech.com/archlinux/core/os/i686
# Add your preferred servers here, they will be used first[extra]
Server=http://server.elsistech.com/archlinux/extra/os/i686
# Add your preferred servers here, they will be used first[community]
Server=http://server.elsistech.com/archlinux/community/os/i686
# Add your preferred servers here, they will be used first# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs[archlinuxfr]
Server = http://repo.archlinux.fr/i686[arch-games]
Server=http://twilightlair.net/files/arch/games/i686[kdemod-core]
Server = http://kdemod.iskrembilen.com/repo/core/i686[kdemod-extragear]
Server = http://kdemod.iskrembilen.com/repo/extragear/i686[proaudio]
Server=http://arch.madfire.net/proaudio/i686[kdemod-playground]
Server=http://kdemod.iskrembilen.com/repo/playground/i686
Offline
Mine looks pretty much the same only I removed the Server = from core, extra and community as per your previous post
Offline
When I do nano /etc/pacman.d/mirrorlist? it is empty?
well, that is weird....
This is what I would do. Make your pacman.conf look like this:
[core]
Server = ftp://ftp.archlinux.org/core/os/i686
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
#[extra]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
#[community]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
then "pacman -Syy pacman" and move /etc/pacman.conf.pacnew to /etc/pacman.conf and /etc/pacman.d/mirrorlist.pacnew to /etc/pacman.d/mirrorlist. Then everything should be working fine (hopefully...)!
Offline
Okay changed my pacman.conf to your example, then did pacman -Syy pacman but still got
failed to synchronise community: Transient resolver failure
failed to synchronise any databases
Allan is it usual to have so much trouble installing xorg and a desktop environment once you have installed Arch after reading here:
http://wiki.archlinux.org/index.php/Desktop_Environment
I assumed it would be fairly straightforward?
Offline
You can't have followed my above example exactly. Note that community and extra parts are all commented out.
This is not normal. For some reason your mirrorlist file is empty which is very strange...
Offline
Apologies Allan I did not follow your guide exactly.
I have now changed pacman.conf to:
[core]
Server = ftp://ftp.archlinux.org/core/os/i686
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
#[extra]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
#[community]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
Then did pacman -Syy pacman
But I got:
Sychronizing package database
error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org
transient resolver failure
failed to synchronise community: Transient resolver failure
failed to synchronise any databases
Offline
Maybe you should write yout mirrorlist manually:
Put only this:
Offline
OK, try this:
wget ftp://ftp.archlinux.org/core/os/i686/pacman-3.2.1-1-i686.pkg.tar.gz
pacman -U pacman-3.2.1-1-i686.pkg.tar.gz
mv /etc/pacman.conf.pacnew /etc/pacman.conf
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist
If the wget fails, we need to setup you network properly.
Edit: I should have also pointed out that if you are using x86_64 change the i686...
Offline
Also use ping command to see whether or not your network is working:
ping www.google.com
Offline