You are not logged in.

#1 2008-11-08 15:55:18

gredawarha
Member
Registered: 2008-11-08
Posts: 36

problems installing xorg and kde after first time installation

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

#2 2008-11-08 16:01:27

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: problems installing xorg and kde after first time installation

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

#3 2008-11-08 16:44:39

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

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

#4 2008-11-08 16:51:35

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

Re: problems installing xorg and kde after first time installation

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

#5 2008-11-08 16:59:28

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

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

#6 2008-11-08 17:02:19

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

Re: problems installing xorg and kde after first time installation

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

#7 2008-11-08 17:09:22

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

Okay did all that Allan but im still getting:


failed to synchronise community: Transient resolver failure
failed to synchronise any databases

Offline

#8 2008-11-08 17:16:09

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

Re: problems installing xorg and kde after first time installation

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

#9 2008-11-08 17:21:16

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

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

#10 2008-11-08 17:36:02

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

Re: problems installing xorg and kde after first time installation

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

#11 2008-11-08 17:39:08

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

When I do nano /etc/pacman.d/mirrorlist? it is empty?

Offline

#12 2008-11-08 17:40:01

GERGE
Member
From: Turkey
Registered: 2008-09-29
Posts: 157
Website

Re: problems installing xorg and kde after first time installation

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

#13 2008-11-08 17:43:40

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

Mine looks pretty much the same only I removed the Server =  from core, extra and community as per your previous post

Offline

#14 2008-11-08 17:46:35

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

Re: problems installing xorg and kde after first time installation

gredawarha wrote:

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

#15 2008-11-08 17:54:03

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

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

#16 2008-11-08 17:56:35

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

Re: problems installing xorg and kde after first time installation

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

#17 2008-11-08 18:03:15

gredawarha
Member
Registered: 2008-11-08
Posts: 36

Re: problems installing xorg and kde after first time installation

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

#18 2008-11-08 18:03:15

GERGE
Member
From: Turkey
Registered: 2008-09-29
Posts: 157
Website

Re: problems installing xorg and kde after first time installation

Maybe you should write yout mirrorlist manually:

Put only this:

Server = ftp://ftp.archlinux.org/$repo/os/i686

Offline

#19 2008-11-08 18:08:46

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

Re: problems installing xorg and kde after first time installation

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

#20 2008-11-08 18:17:26

GERGE
Member
From: Turkey
Registered: 2008-09-29
Posts: 157
Website

Re: problems installing xorg and kde after first time installation

Also use ping command to see whether or not your network is working:

ping www.google.com

Offline

Board footer

Powered by FluxBB