You are not logged in.

#1 2011-09-10 23:19:16

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Pacman Unable to Download

Hey everyone, I'm relatively new to Arch, and Linux in general, and I've been having some trouble with Pacman.  I am running Arch on my Asus eee-pc 701.

The problem:

Any time I try to download anything, any file (pacman -S file), it gives me the following errors:

filename package not found, searching for group...
error: 'file': not found in sync db

This be the case weather I try to download: python, xorg-server, xorg, gnome, etc.




The status:

I have the second "Any" server uncommented and all of the "United States" servers uncommented in /etc/pacman.d/mirrorlist.
I have internet access through wired ethernet.  Ping -c 5 www.google.com has no failures.
I have tried pacman -Sy, pacman -Syy, pacman -Syu, and pacman -Syyu.  All have updated everything successfully, yet it has not solved my problem.

Any help would be appreciated, this is a fantastic community, and Arch is extremely stable (and awesome) for that matter.

Thanks big_smile

Last edited by Decryptic (2011-09-10 23:30:12)

Offline

#2 2011-09-10 23:21:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

How did you install Arch? From the latest 2011.08.19 release?

If you need a fresh mirrorlist, grab it from http://www.archlinux.org/mirrorlist/ then try 'pacman -Syu' again.
Don't run 'pacman -Sy foo' - it may lead to breakage.
There's no 'kernel-26' package, there was a 'lernel26' one (w/o the hyphen) but we're using linux 3 kernel now. You don't need to install it separately, just run 'pacman -Syu'.

Last edited by karol (2011-09-10 23:25:32)

Offline

#3 2011-09-10 23:29:45

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

Thanks for the reply.  I bought a SD card with Arch on it from OSdisk or something like that two months ago, so it may not be the most recent release.  And ignore what I said about kernel-26, the main problem is that I get errors regardless of the package I try to install.

Offline

#4 2011-09-10 23:35:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

Decryptic wrote:

Thanks for the reply.  I bought a SD card with Arch on it from OSdisk or something like that two months ago, so it may not be the most recent release.  And ignore what I said about kernel-26, the main problem is that I get errors regardless of the package I try to install.

Have you properly merged all the pacnew files and done all the necessary stuff to bring your system up to date, like running 'pacman-db-upgrade'?
You may want to try the latest release too.

Offline

#5 2011-09-10 23:49:49

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

karol wrote:
Decryptic wrote:

Thanks for the reply.  I bought a SD card with Arch on it from OSdisk or something like that two months ago, so it may not be the most recent release.  And ignore what I said about kernel-26, the main problem is that I get errors regardless of the package I try to install.

Have you properly merged all the pacnew files and done all the necessary stuff to bring your system up to date, like running 'pacman-db-upgrade'?
You may want to try the latest release too.

I guess not tongue .  Any idea where I could get started on all that?

Offline

#6 2011-09-10 23:53:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

Decryptic wrote:

I guess not tongue .  Any idea where I could get started on all that?

Check pacman's log /var/log/pacman.log.

[2011-03-28 12:49] Running 'pacman -S pacman'
[2011-03-28 12:49] warning: /etc/makepkg.conf installed as /etc/makepkg.conf.pacnew
[2011-03-28 12:49] warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
[2011-03-28 12:49] >>> The pacman database format has changed as of pacman 3.5.0.
[2011-03-28 12:49] >>> You will need to run `pacman-db-upgrade` as root.
[2011-03-28 12:49] >>>
[2011-03-28 12:49] upgraded pacman (3.4.3-1 -> 3.5.1-1)
[2011-03-28 12:50] Running 'pacman -U reflector-2011.03.26.3-4-any.pkg.tar.xz'
[2011-03-28 12:50] Running 'pacman -Syy'
[2011-03-28 12:50] synchronizing package lists
[2011-03-28 12:51] Running 'pacman -U reflector-2011.03.26.3-4-any.pkg.tar.xz'
[2011-03-28 12:51] installed python (3.2-1)

pacman's output tells you about .pacnew files and any other actions you might need to take.

Offline

#7 2011-09-11 00:25:49

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

Alright, so when I type in pacman -Syyu, the addition to the log is:

[2011-09-11 10:20] synchronizing package lists
[2011-09-11 10:20] starting full system upgrade

Yet when I type in something like: pacman -S xorg-server, the addition is only:

[2011-09-11 10:21] synchronizing package lists



Additional debug information: the error:

xorg-server package not found, searching for group...
error: 'xorg-server': not found in sync db

occurs weather the ethernet cable is in or not.  It also occurs weather the mirror list has any uncommented lines or not.  So perhaps it is a local files fault?  I don't know, any help is appreciated.

Offline

#8 2011-09-11 00:30:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

'pacman -Syy' re-downloads the databases. What's the output of

ls -l /var/lib/pacman/sync

?

Offline

#9 2011-09-11 00:39:24

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

The output is:

total 12
drwxr-xr-x 2 root root 4096 Sep 11 10:31 community
drwxr-xr-x 2 root root 4096 Sep 11 10:31 core
drwxr-xr-x 2 root root 4096 Sep 11 10:31 extra

Offline

#10 2011-09-11 00:40:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

I think you're still using the previous pacman database format.

Offline

#11 2011-09-11 00:42:31

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

Oh, any way I can update it or something?  If that'll fix the problem?

Offline

#12 2011-09-11 00:43:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

Have you run pacman-db-upgrade and any other stuff that was in the pacman output / log?

Offline

#13 2011-09-11 00:51:28

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

When I type pacman-db-upgrade, I get:

-bash: pacman-db-upgrade: command not found

The pacman log doesn't have any explicit information, the only thing it contains is the information at the time of the install, in addition to:

[(date)] synchronizing package lists

a few times.

Offline

#14 2011-09-11 00:54:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

What is the output of

pacman -Q pacman linux kernel26

Offline

#15 2011-09-11 01:10:33

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

Output:

[root@myhost /]# pacman -Q pacman linux kernel26

pacman 3.3.3-5
error: package "linux" not found
kernel26 2.6.33.4-1

Offline

#16 2011-09-11 01:15:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

OK, let's start at the beginning, double-checking every step.
1. Have you got a fresh mirrorlist?
2. Have you successfully run 'pacman -Syu'?

You're still using the old packages. Are you running some kind of live system of that SD card or is it a regular install?

Offline

#17 2011-09-11 01:22:31

Decryptic
Member
Registered: 2011-09-10
Posts: 9

Re: Pacman Unable to Download

Alright.

1. The mirror list was generated on 2011-01-31.  There are certainly mirrors on here that work, including the second one:
2. Yes pacman -Syu works every time.
3. No this is a regular install.

Let me try reinstalling the operating system.

Offline

#18 2011-09-11 01:25:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman Unable to Download

The mirrors might work i.e. be online, but they might be waaaay out of sync and thus provide out of date packages. Pacman uses the first mirror from the list, unless it's unaccessible.

If you have another SD card, a usb pendrive etc., I would recommend installing the 2011.08.19 release.

Last edited by karol (2011-09-11 01:26:31)

Offline

Board footer

Powered by FluxBB