You are not logged in.
I read the wiki, and you'll see that my pacman.conf is basically the example there.
I dont understand why only extra will sync.
Im trying to work my way through the beginner's guide, and because of the lack of syncing, I am pretty much stuck at this point.
Thanks
Miesnerd
----------------------pacman.conf below-----------------------------------------
#
# /etc/pacman.conf
#
# NOTE: If you find a mirror that is geographically close to you, please
# move it to the top of the server list, so pacman will choose it
# first.
#
# To re-sort your mirror lists by ping/traceroute results, use the
# /usr/bin/sortmirrors script. It requires the "netselect" package.
#
# See the pacman manpage for option directives
#
# GENERAL OPTIONS
#
[options]
LogFile = /var/log/pacman.log
NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade = etc/rc.conf etc/rc.local
NoUpgrade = etc/modprobe.conf etc/modules.conf
NoUpgrade = etc/lilo.conf boot/grub/menu.lst
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
#
[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686
[core]
# Add your preferred servers here, they will be used first
#Server = http://mirrors.easynews.com/linux/archl … re/os/i686
Include = /etc/pacman.d/mirrorlist
[extra]
# Add your preferred servers here, they will be used first
#Server = http://mirrors.easynews.com/linux/archl … ra/os/i686
Include = /etc/pacman.d/mirrorlist
#[unstable]
# Add your preferred servers here, they will be used first
#Server = http://mirrors.easynews.com/linux/archl … le/os/i686
#Include = /etc/pacman.d/mirrorlist
[community]
# Add your preferred servers here, they will be used first
#Server = http://mirrors.easynews.com/linux/archl … ty/os/i686
Include = /etc/pacman.d/mirrorlist
Offline
perhaps the other db are up to date.
are there any errors?
vlad
Offline
yeah, tons
I changed my pacman.conf so now it looks like this:
[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686
[core]
Server = http://mirrors.easynews.com/linux/archl … re/os/i686
Include = /etc/pacman.d/mirrorlist
[extra]
Server = http://mirrors.easynews.com/linux/archl … ra/os/i686
Include = /etc/pacman.d/mirrorlist
[unstable]
Server = http://mirrors.easynews.com/linux/archl … le/os/i686
Include = /etc/pacman.d/mirrorlist
[community]
Server = http://mirrors.easynews.com/linux/archl … ty/os/i686
Include = /etc/pacman.d/mirrorlist
and I get these errors:
/etc/pacman.d/mirrorlist: No such file or directory
/etc/pacman.d/mirrorlist: No such file or directory
/etc/pacman.d/mirrorlist: No such file or directory
/etc/pacman.d/mirrorlist: No such file or directory
:: Synchronizing package databases...
:: testing is up to date
failed downloading /linux/archl … re/os/i686/core.db.tar.gz from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize core
failed downloading /linux/archl … ra/os/i686/extra.db.tar.gz from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize extra
failed downloading /linux/archl … le/os/i686/unstable.db.tar.gz from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize unstable
failed downloading /linux/archl … ty/os/i686/community.db.tar.gz from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize community
error: could not open sync database: core
have you used --refresh yet?
when doing pacman --sync --refresh
Sorry, im such a noob to arch, and I've not ever had to configure all of this stuff by hand; the most I've ever done is edit a line or two.
Offline
no problem,
obviously the file mirrorlist under /etc/pacman.d is missing. take a look. is there such a file? if not i would reinstall pacman.
download pacman from here: ftp://ftp.hosteurope.de/mirror/ftp.arch … pkg.tar.gz
(if you use i686) and do
pacman -U pacman-3.1.3-1-i686.pkg.tar.gz
then the mirrorlist file should be there again.
edit it to according your needs (choose a server near your location), then delete the
Server = http://mirrors.easynews.com/linux/archl … ty/os/i686
entries from you pacman.conf. the it should work...
vlad
Last edited by DonVla (2008-03-08 19:31:48)
Offline
that file is indeed missing, as I thought as well. However, because Im such a noob i didnt know if I needed to generate that file somehow.
I'll follow your guidelines as above, but out of curiosity, why am I reinstalling, and not just finding that file and replacing it?
Thanks for all your help
Offline
right so i did that, and it gives me unsatifified dependencies, which seems pretty odd, since it SHOULD have already had those to be working in the first place,right?
anyways, here's the output:
/etc/pacman.d/mirrorlist: No such file or directory
/etc/pacman.d/mirrorlist: No such file or directory
/etc/pacman.d/mirrorlist: No such file or directory
/etc/pacman.d/mirrorlist: No such file or directory
loading package data... done.
error: unsatisfied dependencies:
pacman: requires gcc-libs
pacman: requires libarchive>=2.4.11
pacman: requires libdownload>=1.3
Offline
it´s the easiest way.
let pacman to the dirty stuff.
of course, you have to run pacman -Syu then.
vlad
Offline
oh, ok
then you have an older pacman version.
then i would untar the new pacman package and copy the mirrorlist file by hand.
Offline
great. will do.
Im all about letting the dirty work be done automatically but I also want to learn. That, and rolling releases are why im playing with arch.
Offline
i did that, and am still getting tons of errors, but some additional errors now when I run pacman --sync --refresh:
config: line 6: all directives must belong to a section
config: line 6: all directives must belong to a section
config: line 6: all directives must belong to a section
config: line 6: all directives must belong to a section
:: Synchronizing package databases...
:: testing is up to date
failed downloading /linux/archl … re/os/i686/core.db.tar.gz
from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize core
failed downloading /linux/archl … ra/os/i686/extra.db.tar.gz
from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize extra
failed downloading /linux/archl … le/os/i686/unstable.db.tar .gz from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize unstable
failed downloading /linux/archl … ty/os/i686/community.db.ta r.gz from mirrors.easynews.com: HTTP/1.1 404 Not Found
failed to synchronize community
error: could not open sync database: core
have you used --refresh yet?
Offline
Do you have the file pacman.conf.pacnew in your /etc/ ?
If so - you should:
cd /etc
mv pacman.conf pacman.conf.old
mv pacman.conf.pacnew pacman.conf
And - what files do you have in /etc/pacman.d/ ?
There should be now file mirrorlist (you simply move just one mirror- the one closest to you - from the list to the beginning of the file and it should work).
I hope it will be of a help,
tami
"Possession means worries and luggage bags one has to drag along." Little My
Offline
hi,
you have to delete the Server = ... entries from your pacman.conf. then rerun -Sy
post your pacman.conf somewhere. i'll ahve a look.
vlad
ps: yes, using the default pacman.conf, as tami suggested, may be the solution.
Last edited by DonVla (2008-03-08 20:22:38)
Offline
no, i dont have that file.
in pacman.d I have the files:
community
current
extra
mirrorlist
release
TRANS.TBL
unstable
Offline
Try this: (replace $repo with core,extra,community,unstable)
[core]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
[extra]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
[community]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
[unstable]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
Then pacman -Sy pacman and pacman -Syu, then you should have latest versions and then you search for *.pacnew files and update your old configs to latest syntax.
pacdifviewer helps with that.
Offline
Ok - something obviously went wrong there - you should have the file if you upgraded to the new pacman - what you obviously did having mirrorlist in /etc/pacman/d/.
The /etc/pacman.conf should look similar to this one now - with new pacman:
#
# /etc/pacman.conf
#
# See the pacman manpage for option 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
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/mirrorlist
[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
#[unstable]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
Besides - check output of.
pacman -Q pacman
Here I have:
pacman 3.1.3-1
Hope it will help,
tami
"Possession means worries and luggage bags one has to drag along." Little My
Offline
Try this: (replace $repo with core,extra,community,unstable)
[core]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
[extra]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
[community]
Server = ftp://ftp.gigabit.nu/$repo/os/i686
[unstable]
Server = ftp://ftp.gigabit.nu/$repo/os/i686Then pacman -Sy pacman and pacman -Syu, then you should have latest versions and then you search for *.pacnew files and update your old configs to latest syntax.
pacdifviewer helps with that.
I agree. But, try
pacman -Syy pacman
instead of -Sy.
Offline
I agree. But, try
pacman -Syy pacman
instead of -Sy.
Que?
Edit: just noticed pacman manuals seem to be missing, cant check it myself
yaourt man works, weird...
Last edited by Mikko777 (2008-03-08 20:47:38)
Offline
great-- im making progress. It synced the package list, but fails on the downloads. What gives? Output below:
:: Synchronizing package databases...
:: testing is up to date
core [####### ] 44% 10K core [############## ] 89% 21K core [################] 100% 23K 11.1K/s 00:00:02
:: extra is up to date
:: community is up to date
unstable [################] 100% 5K 3.6K/s 00:00:01
Targets: kernel-headers-2.6.23.1-2 tzdata-2007k-2 glibc-2.7-7 gcc-libs-4.2.3-3
libarchive-2.4.12-1 libdownload-1.3-1 pacman-3.1.3-1
Total Package Size: 14.1 MB
Proceed with upgrade? [Y/n] y
:: Retrieving packages from core...
warning: failed to get filesize for kernel-headers-2.6.23.1-2.pkg.tar.gz
failed downloading kernel-headers-2.6.23.1-2.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for tzdata-2007k-2.pkg.tar.gz
failed downloading tzdata-2007k-2.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for glibc-2.7-7.pkg.tar.gz
failed downloading glibc-2.7-7.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for gcc-libs-4.2.3-3.pkg.tar.gz
failed downloading gcc-libs-4.2.3-3.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for libarchive-2.4.12-1.pkg.tar.gz
failed downloading libarchive-2.4.12-1.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for libdownload-1.3-1.pkg.tar.gz
failed downloading libdownload-1.3-1.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for pacman-3.1.3-1.pkg.tar.gz
failed downloading pacman-3.1.3-1.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
error: failed to retrieve some files from core
Offline
Misfit138 wrote:I agree. But, try
pacman -Syy pacman
instead of -Sy.
Que?
Edit: just noticed pacman manuals seem to be missing, cant check it myself
yaourt man works, weird...
pacman -Sy only updates out-of-date package-info, pacman -Syy redownloads the whole db and overwrites it.
Your man pages issue could be related to the recent /etc/profile update which can be found in /etc/profile.pacnew.
'unset MANPATH' should fix it.
Offline
so should I have done two commands to get pacman to download the files correctly?
Should i have done -Syy then -Sy?
Offline
so should I have done two commands to get pacman to download the files correctly?
Should i have done -Syy then -Sy?
If you ever switch repositories, or experience errors in your db, then use -Syy once and continue with -Sy for normal operation.
From pacman man page:
Passing two --refresh or -y flags will force a refresh of all package lists even if they are thought to be up to
date
Offline
pacman -Syy
:: Synchronizing package databases...
testing [####### ] 46% 11K testing [############## ] 92% 22K testing [################] 100% 24K 7.1K/s 00:00:03
core [###### ] 43% 10K core [############## ] 90% 21K core [################] 100% 24K 6.1K/s 00:00:03
extra [ ] 3% 11K extra [# ] 7% 22K extra [# ] 10% 33K extra [## ] 14% 44K extra [## ] 17% 55K extra [### ] 21% 66K extra [#### ] 25% 78K extra [#### ] 30% 94K extra [##### ] 33% 105K extra [##### ] 37% 116K extra [###### ] 41% 128K extra [####### ] 44% 139K extra [####### ] 48% 150K extra [######## ] 51% 161K extra [######## ] 55% 173K extra [######### ] 60% 189K extra [########## ] 64% 199K extra [########## ] 67% 211K extra [########### ] 71% 222K extra [############ ] 75% 233K extra [############ ] 78% 245K extra [############# ] 82% 256K extra [############# ] 85% 267K extra [############## ] 89% 279K extra [############## ] 93% 290K extra [############### ] 96% 301K extra [################] 100% 311K 27.2K/s 00:00:11
community [ ] 3% 11K community [ ] 6% 23K community [# ] 10% 35K community [## ] 13% 45K community [## ] 16% 57K community [### ] 19% 68K community [### ] 22% 79K community [#### ] 26% 90K community [#### ] 29% 102K community [##### ] 32% 113K community [##### ] 35% 124K community [###### ] 39% 136K community [###### ] 42% 147K community [####### ] 45% 158K community [####### ] 48% 170K community [######## ] 52% 181K community [######## ] 56% 195K community [######### ] 59% 206K community [########## ] 63% 220K community [########## ] 66% 230K community [########### ] 69% 242K community [########### ] 72% 253K community [############ ] 76% 266K community [############ ] 79% 277K community [############# ] 83% 288K community [############# ] 86% 300K community [############## ] 89% 311K community [############## ] 92% 322K community [############### ] 97% 337K community [################] 100% 347K community [################] 100% 347K 34.2K/s 00:00:10
unstable [################] 100% 5K 2.0K/s 00:00:02
[root@localhost ~]# pacman -Sy
:: Synchronizing package databases...
:: testing is up to date
:: core is up to date
:: extra is up to date
:: community is up to date
:: unstable is up to date
[root@localhost ~]# pacman -S wicd
Targets: dbus-1.0.2-4 bash-3.2.033-2 kernel-headers-2.6.24.3-1 tzdata-2007k-2
glibc-2.7-8 gcc-libs-4.3.0-1 pcre-7.6-3 glib2-2.14.5-1 dbus-glib-0.74-1
db-4.6.21-2 python-2.5.2-2 dbus-python-0.82.4-1 dhclient-3.0.6-1
wpa_supplicant-0.5.10-1 ethtool-6-1 wicd-1.4.1-4
Total Package Size: 32.8 MB
Proceed with upgrade? [Y/n] y
:: Retrieving packages from extra...
warning: failed to get filesize for python-2.5.2-2.pkg.tar.gz
failed downloading python-2.5.2-2.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for dbus-python-0.82.4-1.pkg.tar.gz
failed downloading dbus-python-0.82.4-1.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for wicd-1.4.1-4.pkg.tar.gz
failed downloading wicd-1.4.1-4.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
error: failed to retrieve some files from extra
:: Retrieving packages from core...
warning: failed to get filesize for bash-3.2.033-2.pkg.tar.gz
failed downloading bash-3.2.033-2.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for tzdata-2007k-2.pkg.tar.gz
failed downloading tzdata-2007k-2.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for pcre-7.6-3.pkg.tar.gz
failed downloading pcre-7.6-3.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for glib2-2.14.5-1.pkg.tar.gz
failed downloading glib2-2.14.5-1.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
warning: failed to get filesize for db-4.6.21-2.pkg.tar.gz
failed downloading db-4.6.21-2.pkg.tar.gz from ftp.gigabit.nu: 550 Failed to open file.
error: failed to retrieve some files from core
:: Retrieving packages from testing...
warning: failed to get filesize for kernel-headers-2.6.24.3-1.pkg.tar.gz
failed downloading kernel-headers-2.6.24.3-1.pkg.tar.gz from ftp.archlinux.org: 550 Failed to open file.
warning: failed to get filesize for glibc-2.7-8.pkg.tar.gz
failed downloading glibc-2.7-8.pkg.tar.gz from ftp.archlinux.org: 550 Failed to open file.
warning: failed to get filesize for gcc-libs-4.3.0-1.pkg.tar.gz
failed downloading gcc-libs-4.3.0-1.pkg.tar.gz from ftp.archlinux.org: 550 Failed to open file.
warning: failed to get filesize for wpa_supplicant-0.5.10-1.pkg.tar.gz
failed downloading wpa_supplicant-0.5.10-1.pkg.tar.gz from ftp.archlinux.org: 550 Failed to open file.
error: failed to retrieve some files from testing
[root@localhost ~]# pacman --refresh
error: no targets specified
usage: pacman {-h --help}
pacman {-V --version}
pacman {-A --add} [options] <file>
pacman {-R --remove} [options] <package>
pacman {-U --upgrade} [options] <file>
pacman {-F --freshen} [options] <file>
pacman {-Q --query} [options] [package]
pacman {-S --sync} [options] [package]
use 'pacman --help' with other options for more syntax
[root@localhost ~]# Sy -y
bash: Sy: command not found
[root@localhost ~]# pacman -Syy
:: Synchronizing package databases...
:: testing is up to date
:: core is up to date
:: extra is up to date
:: community is up to date
:: unstable is up to date
[root@localhost ~]#
------------------------------------
this just happened. What is still wrong. I thought I refreshed twice so i should be good, yet it cant pull down a single package from the net. What gives?
Offline
i just tried pacman -Syy && pacman -Sy then the same pacman -S wicd, and i still get the same errors. I guess I am not understanding this. can someone shed some light on what im doing incorrectly?
Offline
Which pacman version?
Try pacman -V
or pacman -Q pacman
1) Never try using a Server url containing $repo if you don't have pacman 3.1
2) Don't use Arch if you can't update your system regularly
If you are using a VERY OLD 2.9, as I'm afraid you are, you will need to do something similar to what was mentioned here :
http://bbs.archlinux.org/viewtopic.php? … 33#p319533
I have no idea if it will work, but you could try the following :
pacman -U ftp://ftp.archlinux.org/core/os/i686/gcc-4.2.3-1-i686.pkg.tar.gz ftp://ftp.archlinux.org/core/os/i686/gcc-libs-4.2.3-3-i686.pkg.tar.gz ftp://ftp.archlinux.org/core/os/i686/libdownload-1.3-1-i686.pkg.tar.gz ftp://ftp.archlinux.org/core/os/i686/libarchive-2.4.12-1-i686.pkg.tar.gz ftp://ftp.archlinux.org/core/os/i686/pacman-3.1.3-1-i686.pkg.tar.gz
Last edited by shining (2008-03-13 22:03:12)
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
so i ran pacman -V and as you would guess, i am running 2.9 whatever.
So i guess I need to start all over then. Crap.
Offline