You are not logged in.

#1 2010-08-20 09:57:37

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

[SOLVED] how to reinstall pacman?

Hi,

Today, after I migrated to KDE-meta from KDEmod, i did

pacman -Rsn shaman2-svn

which showed that it is removing shaman and aqpm. I proceeded after which, while tried to make sure that everything is up-to-date with pacman -Syu, I got the following error:

bash: /usr/bin/pacman: No such file or directory

I downloaded the pacman package (pacman-3.4.0-2-x86_64.pkg.tar.gz) from repository and tried various commands to install it. Nothing worked. I do not know the right command to invoke it. Please help me.

Mine is a 64 bit installation.

Last edited by absolutevoid (2010-08-25 07:15:31)


Everything void is absolute and everything absolute is void.

Offline

#2 2010-08-20 10:19:45

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] how to reinstall pacman?

it is removing pacman and aqpm. I proceeded after which, while tried to make sure that everything is up-to-date with pacman -Syu, I got the following error: No such file or directory

makes sense, no? you will need to untar the pacman package to root. Maybe you have to do the same for dependencies as well, have a look into pacman wiki troubleshooting section. And do not remove pacman next time you have the chance to tongue

Last edited by hokasch (2010-08-20 10:20:40)

Offline

#3 2010-08-20 10:23:32

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] how to reinstall pacman?

hokasch wrote:

it is removing pacman and aqpm.

Oh sorry. That was a typo from my part. it is

removing shaman and aqpm


Everything void is absolute and everything absolute is void.

Offline

#4 2010-08-20 10:48:52

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] how to reinstall pacman?

hokasch wrote:

you will need to untar the pacman package to root.

I did this. now, pacman is back in /usr/bin. But no result. I am not able to search or download files using pacman, let alone, install it.

hokasch wrote:

Maybe you have to do the same for dependencies as well, have a look into pacman wiki troubleshooting section.

hmm, that is tricky. http://www.archlinux.org/packages/core/x86_64/pacman/ is showing four dependencies. But I suppose, these must be there in my system itself. Otherwise, should I untar these packages too in root?

hokasch wrote:

And do not remove pacman next time you have the chance to tongue

will never!


Everything void is absolute and everything absolute is void.

Offline

#5 2010-08-20 11:42:38

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: [SOLVED] how to reinstall pacman?

Hi there,

You have to untar the dependencies only if they are not already on the system (obvious I know...). Here is how to check quickly without pacman:

$ ls /var/lib/pacman/local | grep package-name-here

Exemple for libarchive on my system :

$ ls /var/lib/pacman/local | grep libarchive
libarchive-2.8.4-1

Cool, I have libarchive version 2.8.4-1 installed big_smile

Once your done with manual package untar, don't forget to force install (-Sf) pacman so the package and its dependencies get properly installed

Good luck


Carpe Diem

Offline

#6 2010-08-20 12:37:28

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] how to reinstall pacman?

Checking your pacman log (or posting it here) would be a good way to find out what actually happened.

P.S.:

I did this. now, pacman is back in /usr/bin. But no result. I am not able to search or download files using pacman, let alone, install it.

what errors do you get?

Last edited by hokasch (2010-08-20 12:38:59)

Offline

#7 2010-08-20 12:44:07

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] how to reinstall pacman?

Thank you NSB-fr for the tip on ls

The only missing dependency was pacman-mirrorlist and I installed it.

# pacman -U pacman-mirrorlist-20100808-1-any.pkg.tar.gz 

ie, pacman -U worked. I hadn't done pacman -Sf pacman after having extracted it in root. The mirrorlist is installed as mirrorlist.pacnew. Reflect script, which I had in my system is not working. Meanwhile, I tried to install some packages using pacman -S <packagename>. But I am getting the following error:

 error: 'pacman': could not find or read package 

So I copied the tar.gz file of pacman to /var/cache/pacman/pkg and tried

root /var/cache/pacman/pkg #  pacman -U pacman                                                                                  
error: 'pacman': cannot open package file  

Then I again tried with

root /var/cache/pacman/pkg #  pacman -U  pacman-3.4.0-2-x86_64.pkg.tar.gz                                                       
resolving dependencies...                                                                                                       
looking for inter-conflicts...                                                                                                  
                                                                                                                                
Targets (1): pacman-3.4.0-2                                                                                                     
                                                                                                                                
Total Download Size:    0.00 MB                                                                                                 
Total Installed Size:   2.23 MB                                                                                                 
                                                                                                                                
Proceed with installation? [Y/n] y                                                                                              
checking package integrity...                                                                                                   
(1/1) checking for file conflicts                                            [############################################] 100%
(1/1) upgrading pacman                                                       [############################################] 100% 

So I have to think that pacman is installed.


The next step I tried was with rankmirrors.

root /etc/pacman.d #  rankmirrors -n 6 mirrorlist.pacnew > mirrorlist                                                           
root /etc/pacman.d #  pacman -Syy                                                                                               
:: Synchronizing package databases...                                                                                           
downloading core.db.tar.gz...                                                                                                   
downloading extra.db.tar.gz...                                                                                                  
 community                                           0.0K    0.0K/s 00:00:00 [--------------------------------------------] -214

As you can see, not even a message is displayed. Am I lost? I am totally clueless.

Last edited by absolutevoid (2010-08-20 12:50:43)


Everything void is absolute and everything absolute is void.

Offline

#8 2010-08-20 13:28:11

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] how to reinstall pacman?

hokasch wrote:

Checking your pacman log (or posting it here) would be a good way to find out what actually happened.

Here is the tail end of the log. Probles started after uninstalling shaman. So I am attaching the log from that onwards.

[2010-08-20 12:30] Running 'pacman -R shaman2-svn'
[2010-08-20 12:31] Running 'pacman -Rsn shaman2-svn'
[2010-08-20 12:31] removed shaman2-svn (1136181-2)
[2010-08-20 12:31] removed aqpm2 (20100615-2)
[2010-08-20 16:07] Running 'pacman -Syu'
[2010-08-20 16:07] synchronizing package lists
[2010-08-20 16:07] starting full system upgrade
[2010-08-20 16:08] Running 'pacman -Syu'
[2010-08-20 16:08] synchronizing package lists
[2010-08-20 16:08] starting full system upgrade
[2010-08-20 16:08] Running 'pacman -S imagemagik'
[2010-08-20 16:09] Running 'pacman -S gimp'
[2010-08-20 16:11] Running 'pacman -S k3b'
[2010-08-20 16:14] Running 'pacman -S pacman'
[2010-08-20 17:24] Running 'pacman -U pacman-mirrorlist-20100808-1-any.pkg.tar.gz'
[2010-08-20 17:24] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2010-08-20 17:24] upgraded pacman-mirrorlist (20100620-2 -> 20100808-1)
[2010-08-20 17:25] Running 'pacman -Sf pacman'
[2010-08-20 17:25] Running 'pacman -U pacman'
[2010-08-20 17:28] Running 'pacman -S reflect'
[2010-08-20 18:00] Running 'pacman -U pacman'
[2010-08-20 18:00] Running 'pacman -Sf pacman'
[2010-08-20 18:02] Running 'pacman -Sf pacman'
[2010-08-20 18:02] Running 'pacman -S yaourt'
[2010-08-20 18:11] Running 'pacman -Syy'
[2010-08-20 18:11] synchronizing package lists
[2010-08-20 18:16] Running 'pacman -U pacman-3.4.0-2-x86_64.pkg.tar.gz'
[2010-08-20 18:16] upgraded pacman (3.4.0-2 -> 3.4.0-2)
[2010-08-20 18:16] Running 'pacman -Sf pacman-3.4.0-2-x86_64.pkg.tar.gz'

P.S.:

I did this. now, pacman is back in /usr/bin. But no result. I am not able to search or download files using pacman, let alone, install it.

what errors do you get?

I will show an example.  Here I am trying to install drupal. [http://www.archlinux.org/packages/community/any/drupal/] Meanwhile, I do find that there is a missing dependency for kipi-plugins too. So I am also trying to install it.

 sebinaj ~  
$  sudo pacman -S drupal                                                          
Password: 
error: 'drupal': could not find or read package
sebinaj ~  
$  yaourt -S drupal                                                               
error: 'drupal': could not find or read package
missing dependency for kipi-plugins : libgpod

sebinaj ~  
$  yaourt -S libgpod
error: 'libgpod': could not find or read package
missing dependency for kipi-plugins : libgpod

sebinaj ~  
$  sudo pacman -S libgpod
error: 'libgpod': could not find or read package

Another thing, I noticed was, pacman -Q was working while pacman -Ss was not yielding any results.

Last edited by absolutevoid (2010-08-20 14:27:51)


Everything void is absolute and everything absolute is void.

Offline

#9 2010-08-24 20:36:52

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] how to reinstall pacman?

From where can I get help on this subject? How could I zync with the rolling releases?


Everything void is absolute and everything absolute is void.

Offline

#10 2010-08-24 20:44:52

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED] how to reinstall pacman?

http://wiki.archlinux.org/index.php/Pac … tall_it.3F

Perhaps you are missing one of the packages listed in the wiki (THE WIKI!!!).


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#11 2010-08-25 07:34:55

absolutevoid
Member
From: Keralam, India
Registered: 2009-08-12
Posts: 78
Website

Re: [SOLVED] how to reinstall pacman?

toad wrote:

http://wiki.archlinux.org/index.php/Pac … tall_it.3F

Perhaps you are missing one of the packages listed in the wiki (THE WIKI!!!).

Thanks Toad. I had checked whether all of the dependencies were in place after NSB-fr told so and yeah, they were up to date.

The problem was, I later figured out myself, to be un-updated mirrors listed in /etc/pacman.d/mirrorlist. I had downloaded the package pacman-mirrorlist-20100808-1-any.pkg.tar.gz and installed it. But I did use the rankmirrors script to rank it and the listed six were obviously not having the rsync access on rsync.archlinux.org. It may have been disabled for all mirrors that have not moved to 2-tier scheme according to this mail . I came to know about this from this forum discussion.

So what I did to overcome this was, I downloaded reflector and installed it using -U switch.  Then used the command

reflector -l 5 -r -o /etc/pacman.d/mirrorlist

after which pacman -Suy was working perfect.


Everything void is absolute and everything absolute is void.

Offline

#12 2010-08-25 07:39:32

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED] how to reinstall pacman?

Great! Glad you got it sorted smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

Board footer

Powered by FluxBB