[SERVER:root:/home/user:] rsync -avz --delete ...
Could not load program rsync:
    Dependent module /opt/freeware/lib/libpopt.a(libpopt.so.0) could not be loaded.
    The module has an invalid magic number.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
[SERVER:root:/home/user:] oslevel -s
[SERVER:root:/home/user:] rpm -qa | egrep -i 'popt|rsync'

Question: Why does rsync gives the above error message? What could the problem be?


[SERVER:root:/home/user:] file /opt/freeware/lib/libpopt.a*
/opt/freeware/lib/libpopt.a: archive (big format)
[SERVER:root:/home/user:] getconf KERNEL_BITMODE
[SERVER:root:/home/user:] ar t /opt/freeware/lib/libpopt.a
  • What does file /opt/freeware/lib/libpopt.a* give you? (Add the output to your question, not as a comment, thanks) May 10, 2016 at 12:20
  • @EightBitTony : I updated May 11, 2016 at 6:28
  • Archives can have both 32bit and 64bit. Use 'ar t libpopt.a' to look inside
    – user14755
    May 11, 2016 at 8:42
  • it only gaved back libpopt.so.0 May 11, 2016 at 8:59

2 Answers 2


I've seen this when 64bit libraries are installed on 32bit kernels and vice versa.

  • I know how to check that popt is 32 or 64bit, but how about rsync? May 11, 2016 at 6:11
  • file $(which rsync) should help with that. It would help more if you could mention which packages where installed, or provide the output of rpm -qa --qf="%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH} \n" | grep -E "rsync|popt"
    – doktor5000
    May 11, 2016 at 16:54

Solution: a few popt library file was overwritten by someone on the TARGET side. re-installed popt on target side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.