You are not logged in.

#1 2010-10-15 11:45:52

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

[solved] yaourt messed up pacman - "pacman: command not found"

Hi,

i got some "xxxxxx not found on AUR" messages after doing a "yaourt -Syu --aur" so I began to remove them with "yaourt -Rs xxxxxxx".
When there was only one left "aqpm2" this is what happened:

[studio@myhost ~]$ yaourt -Rs aqpm2
verificando dependências...

Remover (2): aqpm2-20100615-2  qjson-0.7.1-2

Tamanho total dos pacotes a serem removidos:   2,93 MB

Deseja remover estes pacotes? [S/n] s
(1/2) removendo aqpm2                                                                                                     [##########################################################################] 100%
(2/2) removendo qjson                                                                                                     [##########################################################################] 100%
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
/usr/bin/yaourt: line 201: testdb: comando não encontrado

now pacman is broken:

[studio@myhost ~]$ pacman
bash: pacman: comando não encontrado
[studio@myhost ~]$ yaourt -Syu --aur
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
You are not allowed to launch /usr/bin/pacman with sudo
Please enter root password
Senha:
bash: /usr/bin/pacman: Arquivo ou diretório não encontrado
==> WARNING: problem in pkgbuild.sh library
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
==> Searching for new version on AUR
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
Unable to open file: /etc/pacman.conf
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
/usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
/usr/bin/yaourt: line 201: testdb: comando não encontrado

[studio@myhost ~]$ sudo pacman -Syu
sudo: pacman: command not found

please help

Last edited by capoeira (2010-10-16 14:33:39)

Offline

#2 2010-10-15 13:48:24

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

can't undestand why pacman was excluded.

is there a way to undo a uninstall?

Offline

#3 2010-10-15 14:33:55

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [solved] yaourt messed up pacman - "pacman: command not found"

You can download the pacman package and uncompress it. It's just a regular "tar.xz" file. ("tar xvJf filename.tar.xz") Then, copy the pacman files to where they need to go.

I think that's a good way to install pacman without pacman...

By the way, is pacman really missing? Do you have "/usr/bin/pacman"? Maybe only yaourt is broken...

Offline

#4 2010-10-15 14:53:28

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

drcouzelis wrote:

By the way, is pacman really missing? Do you have "/usr/bin/pacman"? Maybe only yaourt is broken...

yes it's gone.....i posted in first post, too that i allready tried pacman without yaourt, too

i think i will solve this like stated in post #16 here: https://bbs.archlinux.org/viewtopic.php … 81#p712481 as it seams easier than copy everything by hand

BUT i really would like to understand what happened

Offline

#5 2010-10-15 15:18:17

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: [solved] yaourt messed up pacman - "pacman: command not found"

you could also compile it from source. that's rather fast then copying every single part to its right place. do you still have an entry for 'which pacman'?

Offline

#6 2010-10-15 17:19:45

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

linux-ka wrote:

do you still have an entry for 'which pacman'?

[studio@myhost ~]$ which pacman
which: no pacman in (/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/usr/lib/perl5/vendor_perl/bin:/usr/bin/perlbin/vendor:/usr/lib/perl5/core_perl/bin:/opt/qt/bin:/opt/torcs/bin)
[studio@myhost ~]$

Offline

#7 2010-10-15 18:33:34

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

can I use pacman-static from this repro?
I'm afraid to break system even more

http://repo.archmobile.org/x86_64/archmobile/

Offline

#8 2010-10-15 21:53:53

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

capoeira wrote:

can I use pacman-static from this repro?
I'm afraid to break system even more

http://repo.archmobile.org/x86_64/archmobile/

OK, that gave me a segfault, so

I downloaded the package and copied the folders to root.
no pacman works but gaves me this errors afterwards:

pacman-3.4.1-1: description file is missing
pacman-3.4.1-1: dependency file is missing
pacman-3.4.1-1: file list is missing

how do I solve this?


BTW: should I make a bug-report??

EDIT: any package I try to instal I get this error:

erro: não foi possível abrir o arquivo /var/lib/pacman/local/pacman-3.4.1-1/depends: Arquivo ou diretório não encontrado

(it's in portuguese but i think its understandable)

Last edited by capoeira (2010-10-15 22:08:36)

Offline

#9 2010-10-15 23:24:34

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

ok, I downloaded the pacman-package and copied the folders: http://www.archlinux.org/packages/core/x86_64/pacman/

/var/lib/pacman/ is empty in the package-folder - so this is the problem.

how do I get those entries???

EDIT: there is an install script in the package but i don't get how to install it...would this solve this???

Last edited by capoeira (2010-10-15 23:28:22)

Offline

#10 2010-10-16 02:20:39

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

installed pacman from source, but the problem remains

Offline

#11 2010-10-16 09:55:06

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

Re: [solved] yaourt messed up pacman - "pacman: command not found"

get pacman package from a mirror, change directory to / and extract it in there. then pacman -Sf pacman


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

Offline

#12 2010-10-16 14:33:07

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] yaourt messed up pacman - "pacman: command not found"

wonder wrote:

pacman -Sf pacman

that did the trick, thanks

Offline

Board footer

Powered by FluxBB