You are not logged in.
Pages: 1
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
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
to command to install package is:
[...] you do that only when you have the package local. for exameplepacman -A package-i686.pkg.tar.gz
and even then you're supposed to use -U instead (of -A). See manpage for (non existant) details.
Offline
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
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
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
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!
Offline
Pages: 1