You are not logged in.

#1 2012-02-13 14:07:10

Paingiver
Member
Registered: 2008-03-01
Posts: 83

Broken pacman with the update.

This was the most stupid thing i have done in my 4 years of ArchLinux journey.

Normally i came to read the news, then the forums about possible problems and then update. But this time(this damn first time) i was hurrying for the update. I make an 'pacman -Syu' and i told me to update pacman first. When i try to update i failed because of the damn Yaourt's damn package-query. And i made my first mistake:

'pacman -Rd pacman'

Pacman became broken. Then what i did in this area i can not remember but i think i extracted pacman to the root then tried again for a full system update. Everything went fine. All system up-do-date. But pacman broke again.

Then i found that in forums people suggest downloading all dependencies and pacman then extract them to root. Did it with again an error message:

Error while loading shared libraries: libalpm.so.7 - No such a file or directory

I checked with 'locate' command and there was libalpm.so.7. in the filesystem. How can i fix my pacman?

Plus i have this libpng-14 error nearly on everything so my computer now became  almost unusable. If i can fix pacman i think libpng wont be that hard.

Last edited by Paingiver (2012-02-13 14:32:52)

Offline

#2 2012-02-13 16:39:34

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Broken pacman with the update.

Paingiver wrote:

I checked with 'locate' command and there was libalpm.so.7. in the filesystem.

First the 'locate' command doesn't look into the filesystem but into its database, generated by the 'updatedb' command ran generally as a cron task.
So if you just changed the filesystem, you have to run 'updatedb' manually yourself as root, to get the last state of the filesystem in the locate database.

Paingiver wrote:

Then what i did in this area i can not remember but i think i extracted pacman to the root then ...

You can see what you've done before using the 'history' command of bash.

Paingiver wrote:

people suggest downloading all dependencies and pacman then extract them to root. Did it with again an error message:...

You might have extracted the wrong pacman version.
Tell exactly what packages with their version you extacted manually into root.

libalpm.so.7 comes from pacman 4

So if you don't have it, you have used another pacman version.

Offline

#3 2012-02-13 17:13:37

Paingiver
Member
Registered: 2008-03-01
Posts: 83

Re: Broken pacman with the update.

Thanks for the answer berbae! This is my work computer, i have to fix it until tomorrow sad

I have extracted pacman- 4. But to clean the situation can i remove every instance of pacman in my filesystem and extract a new pacman-4 again?

Is there a command for removing pacman completely?

Offline

#4 2012-02-13 18:03:04

dlh
Member
Registered: 2010-11-26
Posts: 44

Re: Broken pacman with the update.

Did you compile something from AUR?

Try to remove this package and install from official arch repository.

Offline

#5 2012-02-13 20:05:31

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Broken pacman with the update.

moderator action: Moving from Pacman & Package Upgrade Issues to Newbie Corner.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2012-02-13 20:06:29

Paingiver
Member
Registered: 2008-03-01
Posts: 83

Re: Broken pacman with the update.

dlh wrote:

Did you compile something from AUR?

Try to remove this package and install from official arch repository.

Yes i will do it. But my first problem is pacman not working.

Offline

#7 2012-02-13 21:14:07

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Broken pacman with the update.

pacman -Rd pacman

Using pacman to uninstall pacman is like pulling yourself up by your shoelaces.

https://wiki.archlinux.org/index.php/Pa … tall_it.3F


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-02-14 04:08:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,808

Re: Broken pacman with the update.

Did you see this wiki entry ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2012-02-14 10:40:14

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Broken pacman with the update.

Paingiver wrote:

Is there a command for removing pacman completely?

In your case, undo what you've done to extract pacman in your root filesystem, ie remove all the files which were extracted.

Paingiver wrote:

I have extracted pacman- 4

You have to extract also the dependencies of pacman 4: libarchive>=3.0.2, maybe others, depending on what is already present in your system.
Read the wiki links given above and the referenced links cited inside.

Paingiver wrote:

This is my work computer, i have to fix it until tomorrow

If your system is up to date, your libpng-14 errors concern only the AUR packages needing to be re-built.
So you can use everything else for your work without pacman functioning yet.

When you will post again, be precise in your text: tell exactly what commands you used and the exact output of them on your screen.
Without that, it is very difficult to help you efficiently.

Offline

#10 2012-02-14 13:29:01

meph
Member
Registered: 2011-06-06
Posts: 160

Re: Broken pacman with the update.

Paingiver wrote:

This was the most stupid thing i have done in my 4 years of ArchLinux journey.

fsckd wrote:

moderator action: Moving from Pacman & Package Upgrade Issues to Newbie Corner.

That was mean tongue


@Paingiver, here you can check pacman dependencies. It may be a good idea to check everything is where it should be.


Running arch is like raising a puppy - if you spend a bit of time with it each day and do just a bit of training you'll end up with the most loyal partner you could want; if you lock it in a room and don't check on if for several days, it'll tear apart your stuff and poop everywhere.

Offline

Board footer

Powered by FluxBB