3.1 x86-64: error converrting rpm

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

3.1 x86-64: error converrting rpm

Post#1 by Rava » 04 Jan 2015, 12:57

Some long time ago, (others, when I recall correct) and me already had the same issue:

Trying to convert some rpm gets this error, while it works well for other rpms.

Code: Select all

root@porteus:/mnt/xxx# rpm2targz sK1-0.9.1-0.11.pre_rev730.fc22.x86_64.rpm 
ERROR:  rpm2cpio failed.  (maybe sK1-0.9.1-0.11.pre_rev730.fc22.x86_64.rpm is not an RPM?)
root@porteus:/mnt/xxx# file sK1-0.9.1-0.11.pre_rev730.fc22.x86_64.rpm 
sK1-0.9.1-0.11.pre_rev730.fc22.x86_64.rpm: RPM v3.0 bin i386/x86_64
It worked for an rpm that I needed for viewnior or it contained a needed 64 bit lib.
This rpm I could convert:

Code: Select all

libexiv2-13-0.24-4.1.9.x86_64.rpm: RPM v3.0 bin i386/x86_64
At least for "file" both rpms seem of the same version, so i don't get why I cannot convert some, but can convert others and file reports me they are all the same rpm version...

//Update
Or is it this same issue back from Sep 2014:
viewtopic.php?f=81&t=3889#p27965
Newer fedora rpm's use 7z compression. rpm2cpio doesn't know about 7z yet.
Cheers!
Yours Rava

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: 3.1 x86-64: error converrting rpm

Post#2 by Bogomips » 04 Jan 2015, 16:09

@Rava

3.1rc & 3.1 rc1 32-bit allowed conversion of Fedora rpm which failed before. Presumably rpm2cpio now aware of 7z compression. However your error message looks a lot like that that came before 3.1.

EDIT

Code: Select all

guest@porteus:~/rava$ rpm2cpio ../p10/Por/tmp/sK1-0.9.1-0.11.pre_rev730.fc22.x86_64.rpm | cpio -dim
12592 blocks
guest@porteus:~$ rpm2cpio p10/Por/tmp/sK1-0.9.1-0.11.pre_rev730.fc22.x86_64.rpm | cpio -it
...
./usr/lib64/python2.7/site-packages/sk1/app/scripts/unit.pyc
./usr/lib64/python2.7/site-packages/sk1/app/scripts/unit.pyo
./usr/lib64/python2.7/site-packages/sk1/app/scripts/usersguide.pyc
./usr/lib64/python2.7/site-packages/sk1/app/scripts/usersguide.pyo
./usr/lib64/python2.7/site-packages/sk1/app/skapp.pyc
./usr/lib64/python2.7/site-packages/sk1/app/skapp.pyo
./usr/lib64/python2.7/site-packages/sk1/app/utils/__init__.pyc
./usr/lib64/python2.7/site-packages/sk1/app/utils/__init__.pyo
./usr/lib64/python2.7/site-packages/sk1/app/utils/locale_utils.pyc
./usr/lib64/python2.7/site-packages/sk1/app/utils/locale_utils.pyo
./usr/lib64/python2.7/site-packages/sk1/app/utils/os_utils.pyc
./usr/lib64/python2.7/site-packages/sk1/app/utils/os_utils.pyo
./usr/lib64/python2.7/site-packages/sk1/app/utils/output.pyc
./usr/lib64/python2.7/site-packages/sk1/app/utils/output.pyo
12592 blocks
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: 3.1 x86-64: error converrting rpm

Post#3 by Rava » 04 Jan 2015, 20:48

But I am running x86-64 3.1 finale version. It should work in that, yes?
Is there a way to check if rpm2Whatever is able to handle 7z?

//update
I tried again with a rpm that failed, it's the 7z issue indeed:

Code: Select all

root@porteus:/mnt/xxx# rpm2targz viewnior-1.4-2.fc21.x86_64.rpm 
ERROR:  rpm2cpio failed.  (maybe viewnior-1.4-2.fc21.x86_64.rpm is not an RPM?)
root@porteus:/mnt/xxx# 7z x viewnior-1.4-2.fc21.x86_64.rpm 

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)

Processing archive: viewnior-1.4-2.fc21.x86_64.rpm

Extracting  viewnior-1.4-2.fc21.x86_64.cpio

Everything is Ok

Size:       558200
Compressed: 168400
Cheers!
Yours Rava

Post Reply