niklasb / libc-database

Build a database of libc offsets to simplify exploitation
https://libc.rip/
MIT License
1.71k stars 192 forks source link

Failed to decompress package (rpm) #56

Closed wzsx150 closed 1 year ago

wzsx150 commented 2 years ago

hi, ubuntu 20.04: ./get.sh rpm

Getting rpm -> Location: http://rpmfind.net/linux/fedora/linux/updates/35/Everything/x86_64/Packages/g/glibc-2.34-29.fc35.x86_64.rpm -> ID: libc-2.34-29.fc35.x86_64 -> Already have this version, 'rm /home/wzsx150/bin/libc-database/db/libc-2.34-29.fc35.x86_64.*' to force Getting rpm -> Location: http://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/glibc-2.34-25.el9.x86_64.rpm -> ID: libc-2.34-25.el9.x86_64 -> Downloading package -> Extracting package error: pkg.rpm: signature hdr data: BAD, no. of bytes(27320) out of range error reading header from package rpm2cpio failed cpio: 归档非正常终止 cpio failed Cannot locate the libc file

how to fix it?

TheDuchy commented 2 years ago

Also getting this error. Might troubleshoot later.

peace-maker commented 1 year ago

That's a bug in the rpm2cpio version packaged with Ubuntu 20.04. https://bugs.launchpad.net/ubuntu/+source/rpm/+bug/1947120

Try upgrading to Ubuntu 22.04 or compile it from source https://rpm.org/download.html