You are not logged in.

#1 2007-11-23 21:51:46

hoofty
Member
Registered: 2007-11-23
Posts: 2

pacman error

Hello

I have just installed Arch 2007.08-2 and everything went well (dual booting with Ubuntu), however when I try to add packages with pacman I get "error: failed to add target '.........' (could not find or read file.  Here is my 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
Server = ftp://ftp.heanet.ie/mirrors/ftp.archlin … re/os/i686
Include = /etc/pacman.d/core

[extra]
# Add your preferred servers here, they will be used first
Server = ftp://ftp.heanet.ie/mirrors/ftp.archlin … ra/os/i686
Include = /etc/pacman.d/extra

[community]
# Add your preferred servers here, they will be used first
Server = ftp://ftp.heanet.ie/mirrors/ftp.archlin … ty/os/i686
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

It looks ok as far as I can determine.  I also have uncommented the server in /etc/pacman.d/core, community and extra.

The first thing I did after installiation was to pacman -Sy, then pacman -Su everything appeared to go as it should have so the internet connection is fine.

Am I missing something simple, I have read through the Wiki and went back through the forums several months.

Please help,  Thank you in advance

Offline

#2 2007-11-23 22:02:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: pacman error

to command to install package is:
pacman -S package

i think that you use pacman -A. you do that only when you have the package local. for exameple

pacman -A package-i686.pkg.tar.gz


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2007-11-23 23:57:13

hybrid
Member
Registered: 2007-02-05
Posts: 261

Re: pacman error

wonder wrote:

to command to install package is:
[...] you do that only when you have the package local. for exameple

pacman -A package-i686.pkg.tar.gz

and even then you're supposed to use -U instead (of -A). See manpage for (non existant) details. wink

Offline

#4 2007-11-24 17:15:06

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: pacman error

Looking at your pacman.conf, it may be getting confused(this is just a guess, mind you)  because you have both a 'Server=' line and the 'Include =' line. I believe you can leave the Server = line commented out and just uncomment the applicable servers in the pacman.d/core{extra}{community} files. That's what works for me!

Good luck,
Scott

Offline

#5 2007-11-24 21:47:35

Jack B
Member
Registered: 2006-06-27
Posts: 107
Website

Re: pacman error

No, it should work with both "include=" and "server=".   That's how mine is set up, and it uses the "server=" entry first, then falls back to the others.
I believe the include command literally includes the contents of the file, with exactly the same consequences as copying and pasting the contents of the referenced file into /etc/pacman.conf, i.e a long list of "server=url".  Pacman will then work it's way down the list until it manages to connect.
HTH
Jack

Offline

#6 2007-11-26 08:02:34

hoofty
Member
Registered: 2007-11-23
Posts: 2

Re: pacman error

Hello

Thank you for all replies.  Sorry it took me so long to get back been off line for a while.  I just tried pacman -S and it worked but pacman -U still doesn't work?  Well as long as the -S option works I can at least get the packages I want then figure out why the -U option doesn't work.  Thank you again for your replies.

Offline

#7 2007-11-26 11:45:26

Sekre
Member
From: The Rainy North
Registered: 2006-11-24
Posts: 116

Re: pacman error

with the risk of sounding dull

I refer you to the man page as well as the wiki page
for the -U command.

also these two wiki pages may come in handy in understanding when you might need -U
Wiki.Arch / Makepkg
Wiki.Arch / ABS

hope you will have a pleasant experience of arch! smile

Offline

Board footer

Powered by FluxBB