You are not logged in.

#1 2011-11-09 22:54:55

castlevaniahellraiser
Member
Registered: 2010-08-31
Posts: 54
Website

(SOLVED) Accidentally rm'ed pacman.db + problems....

1.) Is there anyway to recover or undelete the file? pacman will not query or update anymore.
I do have pacman.log, and have tried the recovery method in the wiki, but, it is not working. I really do not want to have to reinstall, and lose my current arch configuration. sad

2.) Also, when I go to install the archlinux-2011.08.19-core-i686.iso, it tries to load the archiso.img but, then gives up saying "Not enough memory". So, I can't reinstall my system until I know how to get past this. I have 2 gigs of ram, so it shouldn't be a problem.

Last edited by castlevaniahellraiser (2011-11-11 04:58:04)


17:44 < fryguy> TheBilgeRat: they don't tell retards in special ed classes to rtfm either.

Offline

#2 2011-11-09 23:52:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: (SOLVED) Accidentally rm'ed pacman.db + problems....

There is no such thing as pacman.db ...

Offline

#3 2011-11-10 00:15:41

castlevaniahellraiser
Member
Registered: 2010-08-31
Posts: 54
Website

Re: (SOLVED) Accidentally rm'ed pacman.db + problems....

Yes there is, it was in /var/lib, at least for me it was.


17:44 < fryguy> TheBilgeRat: they don't tell retards in special ed classes to rtfm either.

Offline

#4 2011-11-10 00:36:58

disastrophe
Member
From: pdx
Registered: 2010-10-08
Posts: 91

Re: (SOLVED) Accidentally rm'ed pacman.db + problems....

The repo database files /var/lib/pacman/sync/ are like core.db, extra.db, etc. Are U sure you're using Arch? lol


"If we believe absurdities, we shall commit atrocities." ~ Voltaire

Offline

#5 2011-11-10 00:53:14

castlevaniahellraiser
Member
Registered: 2010-08-31
Posts: 54
Website

Re: (SOLVED) Accidentally rm'ed pacman.db + problems....

I am using arch, been using it for a little over a year. Not sure what file got deleted from /var/lib but, I know it was part of the local database. I still have the pacman folder with core.db, extra.db, community.db. Since I did a pacman -Sf core, my query returns with core packages, so now I am restoring .pacorigs. Also in the process of restoring local pacman pkgs in the cache, (pacman -U). Also, the file in question is mentioned here, https://bbs.archlinux.org/viewtopic.php?id=39106. I am pretty sure this is the same file I deleted.


17:44 < fryguy> TheBilgeRat: they don't tell retards in special ed classes to rtfm either.

Offline

#6 2011-11-10 00:57:32

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: (SOLVED) Accidentally rm'ed pacman.db + problems....

That post is 4 years old. pacman.db is the database format from 1.0, before libalpm even existed. I'd hope that in "a little over a year", you'd realize that -Sf doesn't perform a query, but based on the fact that you have have pacorig files, it sounds like you really did just installed a large number of packages with the --force flag.

Chance of hosing your system even further than it already is == extremely high.

Offline

#7 2011-11-10 01:04:41

castlevaniahellraiser
Member
Registered: 2010-08-31
Posts: 54
Website

Re: (SOLVED) Accidentally rm'ed pacman.db + problems....

falconindy wrote:

That post is 4 years old. pacman.db is the database format from 1.0, before libalpm even existed. I'd hope that in "a little over a year", you'd realize that -Sf doesn't perform a query, but based on the fact that you have have pacorig files, it sounds like you really did just installed a large number of packages with the --force flag.

Chance of hosing your system even further than it already is == extremely high.

I know, -Qe performs a query. I just did a -Sf to restore core files to the database, so I would at least have something to query. It is still odd, that I had that file, and since I accidentally deleted it, it affected pacman. Though the pacorig files are restored, so I at least have some functionality back.

On another note, I knew my system was hosed when I started this thread, which is why I burned the core installation cd. But, since the cd wouldn't boot (refer to number 2 on my first post) I decided to make this thread as a last hope.

Besides, I never said that -Sf performs a query (you read my post wrong, thought, I admit I should have been more specific) I said that ever since performed pacman -Sf core, now when I run pacman -Qe (a query) it returns with core packages, so, I seem to be headed in the right direction. I just need to restore packages in the pacman cache (/var/cache/pacman/pkg) which I am attempting to do right now.

EDIT: So, I got nearly all my packages back, using cached packages, and I just found out about a tool called pacsnap, which could have automated the whole process.
http://aur.archlinux.org/packages.php?ID=34290

Last edited by castlevaniahellraiser (2011-11-11 04:57:08)


17:44 < fryguy> TheBilgeRat: they don't tell retards in special ed classes to rtfm either.

Offline

Board footer

Powered by FluxBB