Pacman: bzip2 corrupted. [SOLVED]

During the latest update, pacman came up with an error saying bzip2 was corrupt. So I tried to reinstall it, but pacman complained on some bzip2 file dependencies which existed. So I tried to remove bzip2 with pacman, which didn't work because of the same dependencies. This is where I screwed up. I used mc to manually remove all the files pacman was complaining about to be able to install bzip2 again. What I didn't know was that pacman depend on bzip2, so I kind of cut off the branch I was sitting on. This is my position: I have a fully working system, except for a missing bzip2 package which makes it impossible to run pacman.
Can anyone tell me if I can recover from this?
Last edited by thunderogg (2009-03-25 11:01:27)

Probably the mirror was not in sync or corrupted or still syncing... doesn't matter now.
Try to download the package directly from another mirror, or use this link:
http://ftp.iasi.roedu.net/mirrors/archl … pkg.tar.gz
after the download finishes unpack the package and try to move every file where it belongs, there are not very many files to put in place
here  pacman -Ql bzip2
bzip2 /bin/
bzip2 /bin/bunzip2
bzip2 /bin/bzcat
bzip2 /bin/bzip2
bzip2 /bin/bzip2recover
bzip2 /lib/
bzip2 /lib/libbz2.so
bzip2 /lib/libbz2.so.1
bzip2 /lib/libbz2.so.1.0
bzip2 /lib/libbz2.so.1.0.4
bzip2 /usr/
bzip2 /usr/include/
bzip2 /usr/include/bzlib.h
bzip2 /usr/lib/
bzip2 /usr/lib/libbz2.a
bzip2 /usr/lib/libbz2.so
bzip2 /usr/share/
bzip2 /usr/share/licenses/
bzip2 /usr/share/licenses/bzip2/
bzip2 /usr/share/licenses/bzip2/LICENSE
bzip2 /usr/share/man/
bzip2 /usr/share/man/man1/
bzip2 /usr/share/man/man1/bunzip2.1.gz
bzip2 /usr/share/man/man1/bzcat.1.gz
bzip2 /usr/share/man/man1/bzip2.1.gz
bzip2 /usr/share/man/man1/bzip2recover.1.gz
after that reinstall bzip2 from pacman, force if necessary
Last edited by silvik (2009-03-25 10:48:07)

Similar Messages

  • Pacman download corrupt extension(Solved)

    Download of libpng for x86_64 produces a download with the extension .pkg.tar.xz...instead of .pkg.tar.gz.
    Whazzup?
    EDIT: Same for avahi, smbclient and fluidsynth.
    Last edited by lilsirecho (2010-03-14 02:45:25)

    PierreL:
    The problem is not what you suggest.  I have dutifully performed upgrades almost every day.  Some of them take half the day to perform since I have a backup HDD which needs the same upgrade.  The size of recent upgrades has made the system unuseable for most of the day waiting for the upgrades to finish.
    That being said, I have a system that is up to date.  This does not say that I know what each and every package downloaded and installed does for the system.  Some things cause repercussions.
    In this case, the repercussions are in an arch-related Live USB boot system wherein I use a cachedir of pacman packages which can be installed via pacman -U into the live system.  This live system is not subject to archlinux upgrades which permit the use of pacman .gz and pacman .xz packages.
    Therefore when utilizing xz packages in the cachedir, pacman -U cannot install xz extension packages (nor can it delete them since it cannot handle a "corrupt" package).
    What has happened is the archlinux admins have decided to utilize the xz format and have provided for it . in a normal sense for usual download and installs.
    It seems that cachedir packages installed via pacman -U do not fit the "normal" install mode.  Therefore, the corrupt package result.
    The cachedir I utilize saves time and is a raid cache which installs rapidly.  It has 16 gb of storage available.
    Whazzup?  I need to know how to provide for a compatible pacman -U install of both gz and xz packages in a live usb archlinux based OS.
    Certainly the pacman -U cammand is not dead yet.  But it isn't compatible with the xz format.
    I have used my raid cache for two years or more and now its defunct. 
    Allan:
    Is xz format useable with a cache array utilizing pacman -U to install cached packages?  If it is, what change is necessary to permit the install of xz "corrupt" packages.

  • Pacman installing corrupt files - MMDF Mailbox?

    On two separate occasions I have run into problems with packages after updating them.
    Binary files have been turned into garbage, running 'file' on them results in 'MMDF mailbox'. I opened one of them and it was filled with '^H' characters.
    It seems to effect all the packages from a specific Pacman update command. Yesterday I got updates to Krita and Awesome, today those files where corrupt. The downloaded packages themselves seem fine. I don't remember any issues reported by the update.
    I fixed the issue by reinstalling all the packages on the system, but it seems like it might be a bug that should be tracked down.
    Not sure if its a Pacman bug or if there is something else going on such as a filesystem issue (I'm on Btrfs).
    Last edited by H3g3m0n (2014-04-01 21:15:37)

    Potentially related to this bug?

  • Pacman seg fault(Solved but with comments on pacman-db-upgrade)

    Performed an install from FTP and booted into root login.
    Performed pacman -Syu  and received report system up to date.
    Performed downloads via pacman of twelve packages including xorg and xfce4.
    Performed download of abs package. 
    Downloaded abs repos.
    Modified abs extra vlc package and performed pacman -U install of modified package.
    Pacman working well at this point.
    Rebooted.
    After reaching xfce4 Desktop, attemptd to install firefox.
    Pacman -S firefox produced..... /usr/bin/pacman/ report(forget the exact error)
    Subsequent trials with ...pacman -U .... produces seg fault.
    Cannot use pacman.  All other programs seem to perform correctly.  Perhaps have lost DNS.
    Cannot perform ...pacman -Syu --debug.....segfaults.
    Last edited by lilsirecho (2011-07-19 18:19:49)

    Solved the difficulty but have no idea what can be done to prevent it from occuring for another user.
    It seems that the db did not get upgraded when the ...pacman-db-upgrade ...command was executed.  There was no statement for ..."pre 3.5 db" upgrade....while executing the command.
    After re-install, the upgrade command performed correctly and pacman now performs correctly after reboots.
    The question comes up as to what to do if the upgrade command does not work correctly and whether some indicator of correct response should appear in the beginners guide.  Additionally, what can be done in the event that the upgrade command fails to meet the correct response.
    These questions will in time be resolved by a new .iso but the present exposure is amazing in its consequences!
    Perhaps the upgrade command is also a function of properly synced mirrors but the command requesting the upgrade was ...pacman -Syy... the mirror sync function!
    What do we have...catch22?
    The resultant segfaults make sense if the pacman sync db is not upgraded.
    How is a user to know the upgrade failed?  What to do about such a condition?
    Marking this thread as solved ...with comments...

  • Pacman strange behavior (SOLVED)

    I installed Arch bare and I am liking it. I set up pacman "to the book" but it is behaving rather "strangely". When I am installing a package it DLs one item then books out with a message "Failed Downloading . . . " then it locks. Each time I have to go to /tmp and delete pacman.lck then rerun the instllation and it does this up to about the last 3 items of which I get the message "Failed Downloading . . . " then it searches the next repo and processed to DL and install. Could it be something with my config? Do I have to disable the other repos?

    I'm having the same problem.  It looks like not being able to retreive the filesize is causing pacman to dump.
    Here is my output:
    [root@stheno ~]# pacman -S scons
    Targets: scons-0.96.92-2
    Total Package Size:   0.6 MB
    Proceed with upgrade? [Y/n] y
    :: Retrieving packages from extra...
    warning: failed to get filesize for scons-0.96.92-2.pkg.tar.gz
    failed downloading scons-0.96.92-2.pkg.tar.gz from ftp.nethat.com: 550 scons-0.96.92-2.pkg.tar.gz: No such file or directory
    warning: failed to get filesize for scons-0.96.92-2.pkg.tar.gz
    failed downloading scons-0.96.92-2.pkg.tar.gz from ftp-linux.cc.gatech.edu: 550 Failed to open file.
    warning: failed to get filesize for scons-0.96.92-2.pkg.tar.gz
    failed downloading scons-0.96.92-2.pkg.tar.gz from ftp.archlinux.org: 550 Failed to open file.
    warning: failed to get filesize for scons-0.96.92-2.pkg.tar.gz
    failed downloading scons-0.96.92-2.pkg.tar.gz from ftp.ibiblio.org: 550 scons-0.96.92-2.pkg.tar.gz: No such file or directory
    warning: failed to get filesize for scons-0.96.92-2.pkg.tar.gz
    failed downloading scons-0.96.92-2.pkg.tar.gz from mirror.cs.vt.edu: 550 Failed to open file.
    connect: Connection refused
    error: cannot connect to archlinux.antesis.org
    *** glibc detected *** pacman: double free or corruption (fasttop): 0x0875ce70 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x400b7b10]
    /lib/libc.so.6(__libc_free+0x89)[0x400b91a9]
    pacman[0x80604ee]
    pacman[0x805b731]
    pacman[0x805bdeb]
    pacman[0x80523c6]
    pacman[0x8055335]
    /lib/libc.so.6(__libc_start_main+0xd8)[0x400697c8]
    pacman[0x804a0a1]
    ======= Memory map: ========
    08048000-0806b000 r-xp 00000000 03:43 2083461    /usr/bin/pacman
    0806b000-0806c000 rw-p 00023000 03:43 2083461    /usr/bin/pacman
    0806c000-0877f000 rw-p 0806c000 00:00 0          [heap]
    40000000-4001a000 r-xp 00000000 03:43 5226508    /lib/ld-2.5.so
    4001a000-4001b000 r--p 00019000 03:43 5226508    /lib/ld-2.5.so
    4001b000-4001c000 rw-p 0001a000 03:43 5226508    /lib/ld-2.5.so
    4001c000-4001f000 rw-p 4001c000 00:00 0
    4001f000-40027000 r-xp 00000000 03:43 5226552    /lib/libnss_files-2.5.so
    40027000-40029000 rw-p 00007000 03:43 5226552    /lib/libnss_files-2.5.so
    40029000-4002d000 r-xp 00000000 03:43 5226549    /lib/libnss_dns-2.5.so
    4002d000-4002f000 rw-p 00003000 03:43 5226549    /lib/libnss_dns-2.5.so
    4002f000-4003d000 r-xp 00000000 03:43 5226548    /lib/libresolv-2.5.so
    4003d000-4003f000 rw-p 0000d000 03:43 5226548    /lib/libresolv-2.5.so
    4003f000-40042000 rw-p 4003f000 00:00 0
    40042000-40053000 r-xp 00000000 03:43 2065997    /usr/lib/libz.so.1.2.3
    40053000-40054000 rw-p 00011000 03:43 2065997    /usr/lib/libz.so.1.2.3
    40054000-40178000 r-xp 00000000 03:43 5226513    /lib/libc-2.5.so
    40178000-40179000 r--p 00124000 03:43 5226513    /lib/libc-2.5.so
    40179000-4017b000 rw-p 00125000 03:43 5226513    /lib/libc-2.5.so
    4017b000-40184000 rw-p 4017b000 00:00 0
    401a9000-401b3000 r-xp 00000000 03:43 2065391    /usr/lib/libgcc_s.so.1
    401b3000-401b4000 rw-p 00009000 03:43 2065391    /usr/lib/libgcc_s.so.1
    40200000-40221000 rw-p 40200000 00:00 0
    40221000-40300000 ---p 40221000 00:00 0
    bfb19000-bfb2e000 rw-p bfb19000 00:00 0          [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0          [vdso]
    Aborted
    Is this a mirror syncing issue?

  • Rebuild pacman database?[solves]

    During update disk was full, now pacman doesnt work correctly. Only get those error:
    pacman -Su
    db_read: error: /var/lib/pacman/local/less-394-1/depends: No such file or directory
    Is it possible to solve this problem?

    thx that solved the problem 

  • Circular: can't install libusb-compat for `pacman-key --init` [SOLVED]

    So like a lot of people on here have upgraded to pacman 4.
    I can't run `pacman-key --init` to update the keyring:
    [stuart@myhost ~]$ sudo pacman-key --init
    Password:
    gpg: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
    chmod: cannot access `/etc/pacman.d/gnupg/trustdb.gpg': No such file or directory
    gpg: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
    gpg: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
    ==> Updating trust database...
    gpg: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
    And because of signature issues can't install libusb-compat:
    [stuart@myhost ~]$ sudo pacman -S libusb-compat
    Password:
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): libusb-compat-0.1.3-2
    Total Installed Size: 0.06 MiB
    Net Upgrade Size: -0.02 MiB
    Proceed with installation? [Y/n] y
    (1/1) checking package integrity [######################] 100%
    warning: Public keyring not found; have you run 'pacman-key --init'?
    error: GPGME error: Invalid crypto engine
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    Last edited by Skipper_the_eye_child (2012-01-26 19:24:00)

    That worked - thanks. It'd have helped had I remembered to write over pacman.conf of course! I've not done any mainentance for while, got a little rusty i'm afraid.
    Last edited by Skipper_the_eye_child (2012-04-11 14:02:52)

  • Pacman / flac error [solved]

    I have just tried to upgrade my system by issueing pacman -Syu but when i answer Y to Proceedwith Upgrade i get the following error message
    checking package integrity...
    error: archive flac-1.1.1-2.pkg.tar.gz is corrupted
    If i issue the following command pacman -S flac i get the following message
    :: flac-1.1.2-1: local version is newer.  Upgrade anyway? [Y/n] n
    I then tried to see what version of flac i have by typing flac -v and got the following message.
    flac: error while loading shared libraries: libFLAC.so.6: cannot open shared object file: No such file or directory
    Any advice?

    it has been discovered that flac 1.1.2 has a bug in it that disables xmms. This package is being removed from the servers this is why its giving you the 'local version is newer' message. If your getting 1.1.1 as corrupt go into your /var/cache/pacman/pkg folder find and delete flac 1.1.1. Then go to /etc/pacman.d and edit the 'current' file (I believe this is were it gets it from) and move a server up on the list until you get flac 1.1.1 with integrety. If you still can get it, go to http://ftp.nluug.nl/ftp/pub/os/Linux/di … pkg.tar.gz
    and download it manually. You can install by cd'ing into the directory it is saved and do
    pacman -U flac-1.1.1-2.pkg.tar.gz

  • Checking package integrity... corrupted [ SOLVED ]

    I got this error,
    checking package integrity...
    error: archive flac-1.1.4-1.pkg.tar.gz is corrupted
    archive flac-1.1.4-1.pkg.tar.gz is corrupted
    prompt#
    What can I do ?
    I got this while running pacman -Syu  Can I do pacman -Syu  "minus flac" ?
    Last edited by go4it (2007-03-28 20:09:00)

    lucke wrote:rm /var/cache/pacman/pkg/flac-1.1.4-1.pkg.tar.gz and run pacman again.
    Good to remember should I have this problem again
    Many thanks !

  • Weird Pacman Error! [solved]

    Since last night, I've been getting this weird error when I run 'pacman -Syu' as root. What's going on?
    :: Synchronizing package databases...
    current 71.2K 143.5K/s 00:00:00 [#####################] 100%
    extra is up to date
    community 274.6K 339.7K/s 00:00:01 [#####################] 100%
    :: Starting full system upgrade...
    resolving dependencies... done.
    looking for inter-conflicts... done.
    Targets: gd-2.0.35-1 gstreamer0.10-good-0.10.6-1 gstreamer0.10-flac-0.10.6-1
    gstreamer0.10-gconf-0.10.6-1
    Total Package Size: 0.84 MB
    Proceed with installation? [Y/n]
    :: Retrieving packages from current...
    gd 175.9K 627.3K/s 00:00:00 [#####################] 100%
    checking package integrity... done.
    cleaning up... done.
    (4/4) checking for file conflicts [#####################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    gstreamer0.10-good: /usr/lib/gstreamer-0.10/libgstqtdemux.so exists in filesystem
    gstreamer0.10-good: /usr/lib/gstreamer-0.10/libgstvideocrop.so exists in filesystem
    errors occurred, no packages were upgraded.
    Any ideas, anyone?
    Last edited by tony5429 (2007-06-29 22:38:16)

    @ tony5429
    I was running in a semilar problem!
    I forced the update from gstreamer0.10-good with
    pacman -Syf gstreamer0.10-good
    after then I run again
    pacman -Syu
    and all run normal.
    You can also read here in this topic about it
    http://bbs.archlinux.org/viewtopic.php?id=34669
    the arch developmer tomk wrote
    tomk wrote:If you're not in a hurry, wait for the -bad package upgrade. Otherwise, I'd suggest -Syf for the -good package, followed by -Su for everything else.
    cheers
    JaDa

  • Can't pacman virtualbox-ose [SOLVED]

    Hi!
    I'm trying to install virtualbox-ose. I've never used it before (as well as any other virtual machine). But the problem is that I can't install it via pacman. It says:
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: klibc-extras: requires klibc-jfflyAahxqaliwAofrf_fdf5upI
    :: klibc-kbd: requires klibc-jfflyAahxqaliwAofrf_fdf5upI
    :: klibc-module-init-tools: requires klibc-jfflyAahxqaliwAofrf_fdf5upI
    :: klibc-udev: requires klibc-jfflyAahxqaliwAofrf_fdf5upI
    wtf? What is wrong?
    Thanks.
    Last edited by Axell (2009-01-30 01:33:19)

    Ok, it helped Thank you!

  • Deleting Pacman Database File [SOLVED]

    Hello,
    just a quick question. I tested the "testing" repos but now disabled it in pacman.conf. When I'm doing pacman -Syy oder pacman -Syu it updates
    the remaing databases ( core,extra,community ) and complains that it can't find a server for "testing" and "community-testing". It doesn't cause
    any problem but looks ugly. How can I get pacman to stop trying to update my disabled repos?
    Kind Regards,
    blackout23
    Last edited by blackout23 (2012-03-07 15:24:24)

    Post your pacman.conf, I can't reproduce your issue.
    In the future, please post the exact error message you're getting.
    Just a guess, it looks like you forgot to comment out the header:
    :: Synchronizing package databases...
    error: failed to update testing (no servers configured for repository)
    error: failed to update community-testing (no servers configured for repository)
    core is up to date
    [testing]
    should now be
    #[testing]
    Last edited by karol (2012-03-07 15:05:14)

  • Pacman/mirror errors (solved)

    For the last 4 days when I have tried to install anything with pacman  (the mirror I use is "unixheads") I get errors saying it failed to retrieve files and no access. Prior to this I had very fast responses.
    Last edited by viking (2008-09-01 05:39:49)

    andrew123456 wrote:
    i had the same problem, too, that's how i ended up here.
    i fixed it by going into the /etc/pacman.d/mirrorlist file and scrolling to the very bottom. there's an entry called #setup entry.
    change the ftp to http in the unixheads url (and make sure all the other mirrors are still commented) that worked for me
    I did as you suggested and then received this error when using pacman.
          bash-3.2# pacman -Syu
    :: Synchronizing package databases...
    error: failed to init transaction (unable to lock database)
      if you're sure a package manager is not already
      running, you can remove /var/lib/pacman/db.lck
    Thanks for your reply, not sure how to remove the /var/lib/pacman/db.lck
    Last edited by viking (2008-09-01 02:53:15)

  • Error: archive mozilla-firefox.pkg.tar.gz is corrupted.solve

    I wanted to see which of Opera and FireFox was bigger but started the download. Instinctly I do ^C-c just to soon notice the above (subject name) error when trying to install firefox. I've tried to force it without success. I can't find the package neither when searching with "find". Help appreciated.

    Stinky wrote:
    You'll find the package in
    /var/cache/pacman/pkg/
    ..and delete it then try again.

  • Can't pacman -Syu : errors(solved)

    I am having lots of conflicting erros when I try to update packages one at a time. So I went to update the whole system pacman -Syu and I get the following
    error: could not prepare transaction
    error: failed to commit transaction ( conflicting files)
    filesystem /usr/local/share/man exists
    nvidia-utils: /usr/lib/libXvMCNVIDIA_dynamic.so.1 exists
    errors occured no packages were upgraded
    I know that I can force individual packages to upgrade by adding-f, should I try to fix the problems or should I force the system upgrade? and can you do that with pacman -Syu -f ??
    Last edited by Trevorofmolino (2008-07-26 01:22:01)

    Maybe these threads can help :
    http://bbs.archlinux.org/viewtopic.php?id=45482
    http://bbs.archlinux.org/viewtopic.php?id=44888
    http://bbs.archlinux.org/viewtopic.php?id=44278
    http://bbs.archlinux.org/viewtopic.php?id=43921
    http://bbs.archlinux.org/viewtopic.php?id=43826
    http://bbs.archlinux.org/viewtopic.php?id=41979
    http://bbs.archlinux.org/viewtopic.php?id=30933

Maybe you are looking for