[SOLVED] lost pacman sync db of installd pakages

hi.
as I said, I lost pacman database off installd pakages.
─(simke@philander:pts/0)─────────────────────────────────────────────────(~)─┐
└─(21:33:%)── pacman -Q ──(Mon,May18)─┘
┌─(simke@philander:pts/0)─────────────────────────────────────────────────(~)─┐
└─(21:34:%)── ──(Mon,May18)─┘
I installd pacman-cage and ih faild tu, what eve hi nead to do, end I now nead install all dependencies agein.
┌─(simke@philander:pts/0)─────────────────────────────────────────────────(~)─┐
└─(21:34:%)── pS openbox ──(Mon,May18)─┘
resolving dependencies...
looking for inter-conflicts...
Targets (46): xcb-proto-1.4-1 xproto-7.0.15-1 kernel-headers-2.6.29.1-1
tzdata-2009g-1 glibc-2.9-7 libxdmcp-1.0.2-2 libxau-1.0.4-1
libxcb-1.2-1 kbproto-1.0.3-2 libx11-1.2.1-1 libice-1.0.5-1
ncurses-5.7-2 readline-5.2.013-2 bash-3.2.048-3
e2fsprogs-1.41.5-2 libsm-1.1.0-1 xcb-util-0.3.4-2
startup-notification-0.10-1 zlib-1.2.3.3-3 libxml2-2.7.3-1
inputproto-1.5.0-1 xextproto-7.0.5-1 libxext-1.0.5-2
xineramaproto-1.1.2-2 libxinerama-1.0.3-2 renderproto-0.9.3-2
libxrender-0.9.4-2 randrproto-1.3.0-1 libxrandr-1.3.0-1
fixesproto-4.0-3 libxfixes-4.0.3-2 libxcursor-1.1.9-2
gcc-libs-4.4.0-1 pcre-7.9-1 glib2-2.20.1-1 libpng-1.2.36-1
freetype2-2.3.9-2 expat-2.0.1-2 fontconfig-2.6.0-2
pixman-0.14.0-2 cairo-1.8.6-1 libxft-2.1.13-1
libdatrie-0.2.2-1 libthai-0.1.11-1 pango-1.24.2-1
openbox-3.4.7.2-2
Total Download Size: 30.50 MB
Total Installed Size: 115.61 MB
Proceed with installation? [Y/n]
and, I think, that I wiil not get an updates.
I have installd pacamn-cage, end hi did not finish, what ever hi nead tu.
pleas help.
sorry for bed eanglish, I am from croatia.
Last edited by simke (2009-05-18 20:20:05)

I find it, it is in
/var/lib/pacman/pacman.bak/pacman.bak/local
but there are folders whit name of all installd pakages.
how can I now retrive my db. can I do that vhit this information. and how.
could I yust c/p those folders tu, where they nead to bee.
Last edited by simke (2009-05-18 20:10:36)

Similar Messages

  • [SOLVED] Pacman syncs repos when doing -Syu immediately after -Syyu

    Hello!
    I've tried to find information regarding my problem but I've not found any, so maybe you would care to help me (I hope).
    It's not a big deal for me really, but it is annoying. The problem is as follows:
    Say I'm about to upgrade my system and I do:
    sudo pacman -Syyu
    then pacman syncs with the repos even if they may be up-to-date and upgrades all packages. That's awesome and exactly as it should be. However, were I to execute
    sudo pacman -Syu
    immediately after the
    sudo pacman -Syyu
    command, it still downloads the repo-data even though it's up to date with a 100% certainty.
    As I said, I'm not bothered bery much with this, but it would be nice to fix.
    Also, It works on my other computer without problems.
    Thanks in advance for any help.
    /R
    Last edited by roobie (2012-06-09 12:10:52)

    My laptop behaved in a similar way, that is it sync'ed repos even if I wrote "pacman -Syu" right away after another system update. When I changed /etc/pacman.d/mirrorlist to choose another repos mirror first, the problem got solved. So my advice is, change the mirror in /etc/pacman.d/mirrorlist

  • [solved] pacman sync delete

    I did a VERY stupid operation:
    rm -r /var/lib/pacman/sync/extra/firefox-3.0.5-1
    After that I can not install firefox with pacman anymore. What can I do for this?
    Thank you!
    Last edited by horsecool (2008-12-24 19:45:04)

    pacman -Syy && pacman -S firefox
    EDIT:  he beat me to the Submit button. 
    Last edited by Wintervenom (2008-12-22 03:59:55)

  • [Solved] error could not open file /var/lib/pacman/sync/core.db

    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    # pacman -Syuf
    I have also tried pacman -Syy with no luck.
    What more is there to do besides installing ubuntu?
    Last edited by johane (2012-08-11 08:22:07)

    johane wrote:
    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    Pacstrap was telling you it couldn't open a file, so you just deleted the entire directory tree? Did it appear to be downloading the database files correctly before this? Did you try running pacstrap again after you deleted everything?
    And then you tried to run pacman with the -f (force) option? What happened? "no luck" doesn't tell us anything.
    What more is there to do besides installing ubuntu?
    There are many things you can do. You can give us more information about what you did and what happened. Did you follow all the steps in the Beginners Guide up to the pacstrap step? Did you get any errors or warnings before that step? Are you sure you had a working network connection? Did you interrupt the pacstrap process at any time? Did you try running it again after you deleted /var/lib/pacman/sync?
    Did you check the sha1sum of the iso you downloaded before you put it on a usb stick?
    https://wiki.archlinux.org/index.php/Be … oaded_file
    How did you put it on the usb stick?
    When you got the error, did you do
    ls /var/lib/pacman/sync
    to see what (if anything) was there?
    Last edited by 2ManyDogs (2012-08-06 23:38:27)

  • [solved] pacman 4 breaks if there's no /var/lib/pacman/sync/foo.db

    Allan had problems with his webhost: http://identi.ca/notice/87871795 After I have added
    [allanbrokeit]
    Server = http://allanmcrae.com/$repo/$arch
    to my pacman.conf, I couldn't use update and install packages anymore:
    [karol@black ~]$ pacman -Syu
    warning: database file for 'allanbrokeit' does not exist
    :: Synchronizing package databases...
    testing is up to date
    community-testing is up to date
    core is up to date
    extra is up to date
    community is up to date
    error: failed retrieving file 'allanbrokeit.db' from allanmcrae.com : The requested URL returned error: 404
    error: failed to update allanbrokeit (download library error)
    :: Starting full system upgrade...
    error: failed to prepare transaction (could not find database)
    [karol@black ~]$ pacman -S hdparm
    warning: database file for 'allanbrokeit' does not exist
    error: failed to prepare transaction (could not find database)
    hdparm is in [core]. pacman 3.5.4-4 throws a bunch of errors
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    but works and allows me to update and install stuff.
    Is it a feature of pacman 4?
    Allan's repo seems to be already back online, so you have to test it with some nonexistent repo & db.
    Last edited by karol (2012-01-07 22:48:29)

    Dan responded to my e-mail:
    Dan McGee wrote:
    Yes, this was mostly an intended change.
    Note that you can do an -R operation (or anything not requiring sync databases) just fine. However, once we hit any machinery that requires sync databases to be present, we require all configured ones are accounted for. This is for a few reasons:
    1) dependency resolving if you have 1 out-of-date database and 4 up-to-date ones, things can get ugly or messed up.
    2) integrity- if you insist on a database being signed, we'd rather not proceed with nothing.
    3) replay attacks- what you don't fully see in the above situation is we also validate the signature on the database at load time; if that were to fail we'd also bail out. This is so pacman is capable of verifying the expiration time on a database signature; it makes sense to only allow database signatures to be valid for a week at a time so people know they have out-of-date repo metadata.
    Closing.

  • [yaourt] patch to remove a lost pacman lockfile

    I'm posting this for everyone who are lazy to remove a lost pacman lockfile.
    I often misspell a package name or an option and interrupt pacman quickly before it syncs.
    This ends up with pacman getting killed before it's lockfile can be removed.
    I made a patch for yaourt to remove the lockfile if pacman is not running,
    so I don't have to remove it manually every time.
    --- lib/pacman.sh.in 2013-04-05 21:35:17.000000000 +0300
    +++ pacman.sh.in.patched 2013-04-08 11:13:16.202378062 +0300
    @@ -33,8 +33,13 @@
    pacman_queue() {
    # from nesl247
    if [[ -f ${P[lockfile]} ]]; then
    - msg $(gettext 'Pacman is currently in use, please wait.')
    - while [[ -f ${P[lockfile]} ]]; do sleep 3; done
    + if [[ -z `pidof pacman` ]]; then
    + msg $(gettext 'Pacman is not running, but a lockfile exists; removing it.')
    + launch_with_su rm ${P[lockfile]}
    + else
    + msg $(gettext 'Pacman is currently in use, please wait.')
    + while [[ -f ${P[lockfile]} ]]; do sleep 3; done
    + fi
    fi

    Durzo wrote:
    tomk wrote:Durzo, I'm sure you're delighted you got yaourt installed, and hopefully you learned something, but IMO you're getting off to a bad start. Others have already said it, but it's worth saying again - fi you're going to use the AUR, learn how it works first before you start using any helper application. Your self-confessed uber-noobiness makes this an even more crucial requirement.
    As meph mentioned, I too intended on having Yaourt only install AUR packages keeping pacman the primary in package installation.
    The point is to know how to use the AUR without relying on a helper, because yaourt is more than a 'helper'. Something like 'cower' is much more of a helper in that you still have to take care of the main steps yourself. Using yaourt instead of pacman for -Syu doesn't change much, its using it as a 'pacman for the AUR' which can cause confusion. Which is as well the only reason to use it....
    Durzo wrote:"learn how it works first" ...do you mean download each tarball PKGBUILD from the AUR separately, and then install with the "makepkg -is" command?
    Yes. The fact that you even know that's what you have to do is already good (perhaps better than those who have right-away gone for yaourt).
    There's no inherent 'negative' to yaourt (if you ignore the fact that it may not work following some pacman/libarchive upgrades) if you know how to live without it.

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

  • How to get back music lost while syncing to itunes?

    how to get back music lost while syncing to itunes?

    If the music you lost during the sync process is no longer on the iPod, in your iTunes library, or in a backup elsewhere, I'm afraid you are out of luck.
    You may be able to redownload any lost purchases via iCloud (pending you live in a country where iCloud has gone live).
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    B-rock

  • Error: could not open the file /var/lib/pacman/sync/.....

    Heya Arch Forums,
    So it's my first time installing and I've made it to the point were I'm ready to install X11.
    When I run "pacman -S xorg-server xorg-xinit xorg-server-utils" my console returns the following errors:
    error: could not open file /var/lib/pacman/sync/testing.db: Unrecognized archive format 
    error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/community-testing.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/testing.db: Unrecognized archive format
    These errors repeat again followed by:
    error: target not found: xorg-twm
    I'm in Canada, so I've only set my mirror list to use "Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch"
    Also, in my /etc/pacman.conf all SigLevel's are = Never.
    Thanks for any replies.

    skunktrader wrote:Did you run pacman -Syu before attempting to install new packages?
    Thanks for the quick reply
    Yes, however pacman -Syu as well as pacman -Syyu return the same errors.

  • I up graded to the new software, and I lost the sync to my calender and verizon yahoo. How do I get it back?

    I upgraded to the ne software on the I Pad and lost my sync with my verizon yahoo calander. How do I get it back?

    Then just select the calendar to sync in iTunes again in the Info Tab before you sync. If you were running iOS 5 and were using iCloud go to Settings>iCloud>Calendar>On.

  • I reformated my PC and lost my sync key and I have my iPhone connected to Sync but cannot find my sync key in the iPhone app

    I have lost my sync key because I reformatted my PC and didn't have a backup of it and my only other device connected to Sync is my iPhone but I cannot access the sync key in the Firefox Home app. I really wish I didn't have to erase all my sync data as I have some important passwords and bookmarks saved only in Sync.

    I did. Safari could not open the show sync key addon and Firefox Home didn't even try to load it for some reason.
    The second addon install button is grey when I try to open it with Firefox Home.
    Thank you, I appreciate the help but I guess unless there's a way to get the sync key for example via sftp from the iPhone (I have jailbroken) I'm pretty much doomed. I tried looking around the Firefox Home app folder but could not find the sync key in there. If someone knows where to look for the key it would be helpful, in case it isn't encrypted.

  • Dozens of open tabs lost! Synced them, reinstalled Windows and Firefox, set up Sync, looked up "tabs on other devices" in history - Only a third or so listed.

    Dozens of open tabs lost! Synced them, reinstalled Windows and Firefox, set up Sync, looked up "tabs on other devices" in history -> Only a third or so listed.
    Usually, when I reinstall Windows, I manually backup my Firefox bookmarks and open tabs, but because Sync has worked perfectly for me in the past, I didn't do it this time. I backed up all my other files and settings and whatnot from the rest of my system, then in Firefox I hit the Sync button (put in on the GUI so I see if it's syncing or done) for the last time, waited until the green rotating dot was gone, closed Firefox, shut down the system, formatted the drive and reinstalled Windows and Firefox. After setting up Sync I waited a while to make sure everything is on my system.
    Then I wanted to have all the tabs and windows open as I had on the old system, so I went to the history and "tabs on other devices". I could already see from the small size of the list, that tabs were missing. I went through all of them, opened them and sorted them into windows.
    -> Maybe about two thirds of the tabs I had open on my old system are gone!
    Not just new tabs that might not have been synced (although the button showed sync was complete), but also old tabs (from weeks ago) that must have been synced before. Actually maybe especially or even only the old ones are lost. And the lost tabs are not just from one of the open windows, but from several.
    What can I do to recover my lost tabs?
    They contain important websites that I didn't bookmark yet, articles that I wanted to read, windows with dozens of tabs on a topic that I did some research for and stuff like that.
    What does the green circle mean? Does it indicate that the sync is complete (to the Firefox servers) or just that the changes have been saved locally and set up for some next scheduled sync with the Firefox servers?
    Further info:
    I always run the newest stable release of Firefox (v19 on both systems). Old system was Windows 8 Enterprise Evaluation, new system is Windows 8 Pro. My used Sync quota is about 10 MB. I had 4 Firefox windows open with different amount of tabs in each of them, from 10 to maybe 80 with an overall amount of 150-200. Most of them weren't loaded. Firefox start is set to "load last session" and tabs are set to "load when selected". Memory usage 500 MB - 1 GB.

    I have most of the items bookmarked. Having 200 - 300 tabs open saves time, since I don't have to go to the bookmarks, if the tabs are already open. One problem has been crashes, but as long as I can restore a previous session, I can still get to the data. I had quite a few tabs open when I was planning to purchase a new computer. I also follow the stock market, and the weather. I was also looking at various VIrtual Private Networking (VPN) sites. At one time, I probably had 20 - 50 tabs open, just for those. I did bookmark a few, but unfortunately lost the VPN tabs, when Firefox crashed. Even if I don`t go to a particular group of tabs very often, leaving it open is faster, especially since I will know where they are. I often put the computer in standby mode, rather than shutting it off, especially if I will remain in the same location.

  • Pacman --sync: could not open sync database: extra

    I'de like to install packages from the extra repository.
    So I tried:
    pacman --sync
    This told me:
    error: could not open sync database: extra
    have you used --refresh yet?
    So I did this.
    But still pacman --sync tells me the same.
    I have
    Include = /etc/packman.d/extra
    in /etc/pacman.conf.
    What else is missing?

    ozar wrote:
    twelvegates wrote:
    I have
    Include = /etc/packman.d/extra
    in /etc/pacman.conf.
    Don't know that this is the problem but you have a spelling error in your code line.
    Pacman doesn't have a "k" in it.
    Oh, yes. I have made the error when a copied it. But in the config file it is in fact without 'k'.
    Include = /etc/pacman.d/extra
    So this is not the problem.

  • [SOLVED] Pacman sync problem

    I'm recently having a problem trying to sync the package databases or any packages with pacman.
    Here're some outputs: http://pastebin.ca/2108502
    I've tried different mirrors but no avail. should I delete the dbs and then try ?
    Last edited by debdj (2012-02-01 18:13:21)

    falconindy wrote:Post the output of 'df -Th' please.
    Here it is:
    └$ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    rootfs rootfs 9.3G 2.8G 6.1G 31% /
    /dev devtmpfs 371M 0 371M 0% /dev
    /run tmpfs 374M 208K 374M 1% /run
    /dev/sda6 ext4 9.3G 2.8G 6.1G 31% /
    shm tmpfs 374M 0 374M 0% /dev/shm
    tmpfs tmpfs 374M 8.0K 374M 1% /tmp
    /dev/sda7 ext4 3.8G 2.4G 1.2G 67% /home
    /dev/sda8 ext4 610M 610M 0 100% /var
    /dev/sda9 ext4 1.2G 81M 1006M 8% /boot
    /dev/sda10 fuseblk 59G 49G 11G 83% /media/softwares
    /dev/sda11 fuseblk 59G 56G 3.2G 95% /media/games
    /dev/sda12 fuseblk 59G 56G 3.4G 95% /media/E2
    /dev/sda13 fuseblk 59G 56G 2.7G 96% /media/New_Free_Drive
    /dev/sda18 fuseblk 115G 109G 5.8G 95% /media/Entertainment
    /dev/sda5 fuseblk 15G 6.4G 8.3G 44% /media/books.docs.fun
    I deleted the db files and sync went fine for once. After rebooting its the same problem. Though core and extra rep databases got synced, it was stuck at community @ 24%. and now the same is happening again.
    Never had this problem defore after upgrading to pacman4.
    EDIT: I have swap on sda16. shouldn't it show that as well?
    Last edited by debdj (2012-02-01 17:01:05)

  • Album cover lost in sync

    When i add album covers to my iTunes library on Windows 7 and then sync with my iPhone ( 64Go, if that matters ), covers are lost. The weirdest thing is, if i play any song i did add covers to, the cover shows in the back. But it won't show in the album tab. To make it simple, it seems like songs do have cover, but the album doesn't. ?_?
    I tried :
    - Using older / recent iTunes
    - Restore / Update my iPhone
    - Reboot computer / iPhone several times
    - adding covers in the iPhone instead of the library
    - changing image extension for the cover
    - changing resolution
    _Somehow, a cover did work on an album, and after several sync, it just disappear, but as i was saying, songs do have covers when played, but the album cover doesnt work. It's just blank.
    I spend several hours on my computer / internet trying to solve this, in vain.
    Need  help :c

    I have the same problem and this is how I get it to work.
    Although the artwork in iTunes seems correct, you still need to check individual Artwork on each Album.  (The new iTunes seems to mass them up.)
    Go to iTunes Music and right click "get info -> artwork" on each of your song.
    Make sure the artwork shows up.
    In my case, some of the artwork is missing and some of them looks strange.  Reset any artwork that is missing.
    Uncheck the music sync so the existing music in your ipod is removed.
    Before resync, go to your ipod to make sure all the music files are actually removed.
    Resync.
    Hope this help.

Maybe you are looking for