[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)

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 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)

  • [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.

  • [SOLVED] Pacman failed retrieving file 'core.db' after removing KDE

    Hey, I had to remove KDE and foolishly used the -Rsc flag. Now, trying to update yields:
    [root@Gal-PC2 gal]# pacman -Sy
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from mirror.isoc.org.il : Resolving timed out after 10524 milliseconds
    error: failed retrieving file 'core.db' from mirror.us.leaseweb.net : Resolving timed out after 10523 milliseconds
    I tryed using the -Sy and -Syy flags to update the database, and made sure I am not using ipv6. I think the -Rsc flag might deleted an importent package. I can connect to the net, and I can acess mirrors using http and I can ping the mirrors. The error persists on a large number of mirrors. Any help will be appriciated.
    Last edited by Greenstuff (2015-02-08 20:49:24)

    Sorry, will do!
    The debug printed a lot of the first errors, so I cut them. This is what pacman --Syu --debug show:
    debug: adding new server URL to database 'multilib': [url]http://ftp.nluug.nl/pub/os/Linux/distr/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.ds.hj.se/pub/os/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.uni-kl.de/pub/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.tu-chemnitz.de/pub/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://mirror.lnx.sk/pub/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://mirrors.st.uz/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://mirrors.mithril.org.ua/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.uni-bayreuth.de/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://artfiles.org/archlinux.org/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://repo.ukdw.ac.id/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://linux.cs.nctu.edu.tw/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.kaist.ac.kr/ArchLinux/multilib/os/x86_64[/url]
    debug: config: new section '(null)'
    debug: config: finished parsing /etc/pacman.conf
    :: Synchronizing package databases...
    debug: url: [url]http://mirror.isoc.org.il/pub/archlinux/core/os/x86_64/core.db[/url]
    debug: maxsize: 26214400
    debug: using time condition: 1422991262
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 28 from transfer
    error: failed retrieving file 'core.db' from mirror.isoc.org.il : Resolving timed out after 10523 milliseconds
    debug: url: [url]http://mirror.us.leaseweb.net/archlinux/core/os/x86_64/core.db[/url]
    debug: maxsize: 26214400
    debug: using time condition: 1422991262
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    EDIT: SOLVED!
    Ok, so I did indeed disable ipv6 as I promised, but turns out I put in the GRUB kernel line "ipv6.disable_ipv6=1". Upon re-reading the wiki, turns out this means ipv6 is disabled but tunnels with ipv6 may be opened by programs. I changed to "ipv6.disable=1" and pacman updates away! I hope others will find this usefull. Be careful!
    Last edited by Greenstuff (2015-02-08 20:52:45)

  • [SOLVED] Pacman GPGME error: No data

    I recently bought a new computer and, of course, wanted to get away from windows 8 asap. I've installed arch several times before, and this time, from the outset, I've been plagued with GPGME errors. First was during the installation when I tried to install the base system with pacstrap. I solved that using the method here: https://bbs.archlinux.org/viewtopic.php?id=142798 (essentially delete /var/lib/pacman/sync and then run pacman -Syyu). From there on out, the install proceeded happily. After booting into my system, I attempted to begin downloading and installing things such as openssh, gparted, virt-manager...etc. Now I get the same error that I had before.
    pacman -Syyu
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    ::Synchronizing package databases. . .
    Core
    Core.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    extra
    extra.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    community
    community.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    multilib
    multilib.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    error: failed to synchronuze any databases
    error: failed to init transaction (invalid or corrupted database (PGP signature))
    As soon as this happened, I attempted to re initialize pacman and the keys with
    pacman-key --init && pacman-key --populate archlinux
    This ran properly, but I was still unable to sync or update pacman. I then tried deleting /var/lib/pacman/sync and updating with the same result. 
    Next, I tried commenting out the mirrors, as that was mentioned in several posts while perusing the wiki. This still did not work. The next ting I tried was setting the SigLevel in the pacman.conf to Never, which brought about a whole host of different errors when trying to update (Unrecognized archive format error).
    After reinitializing the keys again, deleting the /var/lib/pacman/sync folder and attempting another (unsuccessful) pacman -Syyu, and running pacman-key --refresh-keys, I set the SigLevel back to it's default, and decided it might be time to post asking for help. Does anyone have any other ideas that I could try? I've been working on this unsuccessfully for a few hours now, and I'd like to see it up and running.
    Thank you all in advance!
    Searching the archwiki, I tried these threads for additional help:
    https://bbs.archlinux.org/viewtopic.php … 2#p1111872 -- had a problem in pacman conf I do not
    https://bbs.archlinux.org/viewtopic.php?id=169225 --commenting out mirrors did not work
    https://bbs.archlinux.org/viewtopic.php?id=135310 --- did not help with archive errors
    ..... and many many more that were totally unrelated despite similar titles to mine
    Last edited by ephreal (2014-03-29 23:28:46)

    I shutdown my computer, moved to a different network area, and it is now running happily. I have no idea why... perhaps firewall controls? Whatever the reason was, this is no longer happening. Marking as solved.

  • [SOLVED]pacman problem

    I am getting the following error when i try to install/upgrade anything with pacman.
    error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'
    error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'
    error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'
    error: could not open file /var/lib/pacman/sync/archlinuxfr.db: Failed to open '/var/lib/pacman/sync/archlinuxfr.db'
    this occurred after i removed: package-query, pacman-color, perl-xyne-arch, powerpill and yaourt.
    i removed those because when i tried to upgrade pacman itself i was getting the following error
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: package-query: requires pacman<3.5
    :: pacman-color: requires pacman=3.4.3
    :: perl-xyne-arch: requires pacman<3.5
    I am guessing package-query is something i should not have removed?
    anyone know how to solve this?
    Thanks.
    Last edited by murfMan (2011-03-27 04:23:17)

    yup always keep an eye on what the upgrade manager tells you. As mrunion noted, you have to run pacman-db-upgrade because pacman 3.5 uses a different db format than pacman 3.4.x

  • [Solved]Yaourt sync issue

    I installed yaourt according to the instruction here http://archlinux.fr/yaourt-en
    But when I run yaourt -Syu --devel --aur , I get an error: problem setting dbpath '//usr/local/var/lib/pacman/' (could not find or read directory)
    The directory doesn't exist and pacman -v shows nothing related to that directory. What should I do?[]
    Last edited by codetrick (2011-03-04 14:28:03)

    I have the same problem. I get it when try to install 'package-query' and 'yaourt' from AUR, but i install it manually.
    In INSTALL file of package-query I found interesting thing:
    By default, `make install' installs the package's commands under
    `/usr/local/bin', include files under `/usr/local/include', etc. You
    can specify an installation prefix other than `/usr/local' by giving
    `configure' the option `--prefix=PREFIX', where PREFIX must be an
    absolute file name.
    I uninstall yaourt and package-query using pacman and delete /usr/local directory (the system is fresh and this directory is not important)
    Then i do
    ./configure --prefix=''
    sudo make install
    With yaourt i have more problems... Iven if you delete "/usr/local" from Makefile you don't solve the problem.
    I find all "/usr/local" substrings in files from yaourt.x.x.x.tar.gz with commands:
    tar -xzvf yaourt.x.x.x.tar.gz
    cd yaourt.x.x.x
    grep -RiHn 'usr/local/' *
    and manually delete them.
    Then i make and install my yaourt. It worked.
    Oh, i know that it is unnormal, but i can't find anything in internet and write it to others.
    P.S. I may install yaourt with this instruction^ http://archlinux.fr/yaourt-en  (with pacman)
    Last edited by Grandma (2011-12-18 00:06:52)

  • [SOLVED] pacman error: could not open file /var/lib ...

    the actual error is
    error: could not open file /var/lib/pacman/sync/community/fonteditfs-1.2-2/desc: No such file or directory
    removing that folder fixed it. i dont know if it was a coding mistake or just my box did something stupid today :S
    any thoughts?
    Last edited by eldragon (2010-04-20 17:25:18)

    geniuz wrote:
    I don't know if this error occured during an update of right after you've invoked pacman, but in any way synchronizing pacman I think should fix the issue. This is something you might have tried before deleting the file, but then again I don't know when the error occured. If it occured immediately deleting the file would probably be the easiest solution. I would've done the same.
    If you've synchronized pacman after you've removed the file all should be well now, maybe something indeed went wrong during an update (maybe your mirror went down or something, you never know).
    yes, the error apperared right after syncing the databases. the update went as expected...

  • My iPod 5 will not sync ANY music. All my music was on prior to syncing. The sync deleted all my music. I can now no longer add any music. I have the "sync music" checked. Restoring factory settings did not work. Any thoughts?

    All my music was on prior to syncing. The sync deleted all my music. I can now no longer add any music. I have the "sync music" checked. Restoring factory settings did not work. Any thoughts?

    When you synced with iTunes It would have tried to replace the music on the iPhone with what is on the computer. which is what happens when you sync with iTunes.
    If the songs are purchased you can re-downloaded them Pretty easily. You mentioned that you still see the songs and that you could not play them. Do they have a Cloud symbol next to them? If so this means that you can download them but that they are not on the device.

  • I download apps directly to my iphone.  When I sync with my laptop, how do I avoid having sync delete apps, photos, songs downloaded on my iphone?

    I download apps directly to my iphone.  When I sync with my laptop, how do I avoid having sync delete apps, photos/vdeos, songs downloaded on my iphone?

    If you are syncing to the same computer that you always sync to, and have each of the items in itunes that you want synced then you shouldnt have an issue. The only way you would have an app come off your phone is if you uncheck that app from syncing in th apps location in itunes.

  • Iphone Sync deleted all contacts on google, Mac Address Book and Itunes

    I have my phone synced to my google contacts. I did a sync trying to sync itunes, google and my address book and now everything has been deleted. I created a back up a month ago but when I do a restore from back up, it still does not give me my contacts, some how it is still syncing to google which is now blank. It's weird because the restore even gives me texts and photos I had on the back up date but it won't give me the contacts. I have tried changing the settings on the phone so it won't sync to google, I even changed my password on google hoping this would stop teh sync & allow the backup to show my contacts. I have tried using an iphoen extractor as well but since my phone is not jailbroken I am unable to use the file. I would appreciate any help you can give me.

    Sorry, should have given more info-I have an iphone 3G, MacBook Pro, operating system is MAC OS X.
    Iphone syncs to google contacts but last sync deleted all of them (google & address book). I do have a back up which I know has all the contacts but when I do the restore, it still is syncing to google so I still don't have any contacts. How do I get my contacts from the backup & prevent the iphone from over riding the back up & syncing to google?

  • [Solved] pacman errors out after a hardlock

    Hi, I experienced a hardlock today due to a bad memory stick during a pacman update. Now pacman tells me this (with --debug):
    looking for inter-conflicts...
    debug: looking for conflicts
    debug: check targets vs targets
    debug: check targets vs targets
    debug: check targets vs db and db vs targets
    debug: check targets vs db
    debug: check db vs targets
    debug: checking dependencies
    debug: checkdeps: package openoffice-base-3.1.0-1
    debug: returning error 33 from compute_download_size : package filename is not valid
    error: failed to prepare transaction (package filename is not valid)
    I deinstalled openoffice-base but I still get the same error.
    Oh I think I found the culprit, in /var/lib/pacman/sync/extra/openoffice-base-3.1.0-1/ all files are empty.
    I'm removing this directory now...
    execute pacman -Syu again
    still doesn't work
    someone on IRC suggests pacman -Syy, this forces a synchronization of the database
    I did that and now I do pacman -S openoffice-base.
    This works, it's downloading openoffice-base from one of the mirrors now.
    I thought I'd share this.

    Thanks for sharing, I'm sure it'll help out someone in the future.

  • [SOLVED] Pacman issue after -Syu

    Hello guys,
    This morning I did a full update with "pacman -Syu", before that, I also did an installation for gnome and gnome-extra as well as openoffice. There were some connection loss during the update and perhaps some packages failed to be retrieved, however, I repeated "pacman -Syu" and install the packages again and again until it  showed that everything was installed.
    But after that, every time I execute the pacman command, I always get the message "error: could not open file /var/lib/pacman/sync/community/chrootuid-1.3-3/desc: No such file or directory", it still shows that "local db is up to date" though, however, it seems like virtualbox isn't installable as "pacman -S virtualbox-ose" returns a "not found" error.
    Please give me your solution about this
    Thank you
    Last edited by Himari (2010-02-23 03:17:07)

    Pacman -Syy did the trick, but I also need to change to another mirror as well, I suppose there was something wrong with the previous mirror.
    Thank you all for your help

Maybe you are looking for