PDA

View Full Version : [ubuntu] trouble using Alien to convert deb to rpm file



chinni.joy
January 7th, 2009, 12:07 PM
Hi,

I m trying to convert deb file to rpm.when type 'alien -r myfile.deb'
instead of creating rpm file it displayed error on output in terminal.

Output:

Warning: Skipping conversion of scripts in package : postrm
Warning: Use the --scripts parameter to include the scripts.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Alien/Package/Deb.pm line 582.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Alien/Package/Deb.pm line 585.
mkdir: invalid option -- 0
Try `mkdir --help' for more information.
unable to mkdir -0: at /usr/share/perl5/Alien/Package.pm line 257.


please help to solve my problem ..:confused:

ibutho
January 7th, 2009, 12:56 PM
Have you tried using sudo in front of the alien command e.g.

sudo alien -r myfile.deb

chinni.joy
January 7th, 2009, 02:58 PM
Yes, I tried with sudo alien -r myfile.deb .but same output

jnw222
January 7th, 2009, 03:09 PM
i thought alien only allows rpm->deb not deb->rpm

chinni.joy
January 7th, 2009, 03:34 PM
we have option -r or --to-rpm which is for convert deb file to rpm according alien manual page

-kumar

chinni.joy
January 7th, 2009, 03:53 PM
Please some one help me to solve my problem

ibutho
January 8th, 2009, 05:00 AM
Try the following

sudo alien -r --scripts myfile.deb

chinni.joy
January 8th, 2009, 03:02 PM
hi ibutho,

I tried with sudo alien -r scripts myfile.deb .its worked fine on others system. it is not working on my machine.The output below please look at once

OutPut:

Modification of a read-only value attempted at /usr/bin/alien line 363.
Usage: alien [options] file [...]
file [...] Package file or files to convert.
-d, --to-deb Generate a Debian deb package (default).
Enables these options:
--patch=<patch> Specify patch file to use instead of automatically
looking for patch in /var/lib/alien.
--nopatch Do not use patches.
--anypatch Use even old version os patches.
-s, --single Like --generate, but do not create .orig
directory.
--fixperms Munge/fix permissions and owners.
--test Test generated packages with lintian.
-r, --to-rpm Generate a Red Hat rpm package.
--to-slp Generate a Stampede slp package.
-l, --to-lsb Generate a LSB package.
-t, --to-tgz Generate a Slackware tgz package.
Enables these options:
--description=<desc> Specify package description.
--version=<version> Specify package version.
-p, --to-pkg Generate a Solaris pkg package.
-i, --install Install generated package.
-g, --generate Generate build tree, but do not build package.
-c, --scripts Include scripts in package.
-v, --verbose Display each command alien runs.
--veryverbose Be verbose, and also display output of run commands.
-k, --keep-version Do not change version of generated package.
--bump=number Increment package version by this number.
-h, --help Display this help message.
-V, --version Display alien's version number.

Segmentation fault

ibutho
January 9th, 2009, 02:48 PM
Unfortunately I am out of ideas. I don't know if anything has changed in recent versions of alien (its not a tool I use very often).