You are not logged in.

#1 2011-08-04 15:41:33

oceanliu
Member
Registered: 2011-06-27
Posts: 31

Pacman not working

i just install archlinux, and have my network working well, but when i tried to get package through pacman, it always return the same result: target not found, i have checked that the package is on the official package database and the mirror i am using is said to be sycned and updated.
because i can't get a xorg-server, i don't have a graphic desktop and can't post all the code here. but i believe all my pacman.confg is default and i have uncomment "core" "community" and "extra" as source.
when i debug the pacman, i don't get anything unusual except one: "'pacman' not found in sync db => no upgrade", i don't if that helps.
now i am out of idea of what to do with it

Offline

#2 2011-08-04 15:46:42

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

Re: Pacman not working

Have you run 'pacman -Syu' or it's not working either?

Last edited by karol (2011-08-04 15:49:48)

Offline

#3 2011-08-04 15:47:31

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Pacman not working

Perhaps you need to run..... pacman -Syy.....and ...pacman -S pacman.... to initiate pacman.

If you did not use FTP install, the kernel in 2010-05 is very old and several steps are needed to re-initiate pacman.

You may need to perform ....pacman-db-upgrade......as well to correct your db.  That command has no spaces.  Probably run it first.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#4 2011-08-04 15:48:27

oceanliu
Member
Registered: 2011-06-27
Posts: 31

Re: Pacman not working

it said: "there is nothing to do"
but i am not sure whether it has done anything.

Offline

#5 2011-08-04 15:53:41

oceanliu
Member
Registered: 2011-06-27
Posts: 31

Re: Pacman not working

lilsirecho wrote:

Perhaps you need to run..... pacman -Syy.....and ...pacman -S pacman.... to initiate pacman.

If you did not use FTP install, the kernel in 2010-05 is very old and several steps are needed to re-initiate pacman.

You may need to perform ....pacman-db-upgrade......as well to correct your db.  That command has no spaces.  Probably run it first.

i tried pacman -Syy and nothing happend, not even showed anything after several "download ..."
i will try pacman-db-upgrade when i get my computer,
but i am now using the 2011-6-10 test version kernel so i think it is up-to-date.

Offline

#6 2011-08-04 16:06:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,124

Re: Pacman not working

'nothing to do ' means that pacman  thinks your system is uptodate.

what is the EXACT command that gives you the 'target not found' message ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2011-08-04 16:12:46

oceanliu
Member
Registered: 2011-06-27
Posts: 31

Re: Pacman not working

Lone_Wolf wrote:

'nothing to do ' means that pacman  thinks your system is uptodate.

what is the EXACT command that gives you the 'target not found' message ?

every time when i use 'pacman -S ***' like 'pacman -S xorg-server'

Offline

#8 2011-08-04 16:20:43

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,124

Re: Pacman not working

try

# pacman -Si kernel26

#pacman -Ss linux

the first command will give details about the kernel your pacman knows about, the 2nd should give  a long list.
post the kernel version and the number of packages on the list

Last edited by Lone_Wolf (2011-08-04 16:20:57)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2011-08-04 16:32:51

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Pacman not working

Post your /etc/pacman.conf
Also check  the output of `ls -l /var/lib/pacman/sync' to see if the *.db files are there. Post the output as well.


This silver ladybug at line 28...

Offline

#10 2011-08-04 18:32:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Pacman not working

oceanlieu - please don't cross post. Your original thread has exactly the same suggestions and requests for your conf files: https://bbs.archlinux.org/viewtopic.php?id=121919


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2011-08-05 01:13:09

oceanliu
Member
Registered: 2011-06-27
Posts: 31

Re: Pacman not working

ok, i think this problem is solved, although i don't know the reason.
when i changed a different network, the pacman just went back to normal by itself.
Thanks for the help!

Offline

#12 2011-08-07 23:08:02

binskipy2u
Banned
Registered: 2009-09-14
Posts: 212

Re: Pacman not working

I have this same problem.. what did you do please??????

3 threads like this, no one posted what they did to solve the problem


"Sometimes you comfort the afflicted, other times you AFFLICT the COMFORTABLE"

Offline

#13 2011-08-07 23:08:57

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

Re: Pacman not working

binskipy2u wrote:

I have this same problem.. what did you do please??????

3 threads like this, no one posted what they did to solve the problem

Try switching to another mirror.

Offline

Board footer

Powered by FluxBB