Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Converting .rpm to .deb problem

  1. #1
    Join Date
    Jan 2011
    Beans
    9

    Converting .rpm to .deb problem

    Hello

    I am a new ubuntu user. My main reason for switching to ubuntu was to get used to use autodesk maya under linux. I followed this guide to install Maya http://rajivpandit.wordpress.com/2012/10/03/how-to-install-maya-2012-64bit-linux-mint-13-or-ubuntu/. I think maya was installed, but I never managed to get the soft running. For some reason, I was missing libtiff.so.3 and all attempts to link libtiff.so.4 or another library were in vain. I found a script on github to install maya2013, but that didn't work either. Script I used: https://gist.github.com/heiths/3250500

    The main problem is that for some reason, alien cannot convert .rpm to .deb, but it worked before I tried running the script.
    This is what comes up now in terminal when I try converting any rpm:
    Code:
        chmod 755 -/./
    chmod: invalid option -- '/'
    Try `chmod --help' for more information.
        mkdir -/debian
    mkdir: invalid option -- '/'
    Try `mkdir --help' for more information.
    mkdir -/debian failed:  at /usr/share/perl5/Alien/Package/Deb.pm line 299.
        find - -type d -exec chmod 755 {} ;
        rm -rf -
    I am running Ubuntu 12.10 x64.
    I tried uninstalling alien and reinstalling it, but the problem persists. I remember that I installed ubuntu tweaks and synaptic manager before trying the script.
    I don't know if its because the script is for v12.10, because of what I installed or maybe something else.

    If anyone has any idea of what to do, then please let me know before I try installing maya on Linux Mint.
    Thank you.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Converting .rpm to .deb problem

    Try calling alien manually:
    Code:
    sudo apt-get install fakeroot
    fakeroot alien -cv $HOME/MAYAINSTALL/*.`arch`.rpm
    Update.
    I doubt you really have any file names beginning with - in any of the rpms, but there's some excessive use of sudo in the script, like
    Code:
    sudo for i in $INSTALLDIR/*.rpm; do sudo alien -cv $i; done
    I wonder if this could be related to the error somehow. If converting the rpms manually works then edit the script and change the line shown above to:
    Code:
    fakeroot alien -cv $INSTALLDIR/*.`arch`.rpm
    or rather comment it out as you will already have the rpms converted, and conversion takes a sizable time.
    Last edited by schragge; March 9th, 2013 at 02:14 PM.

  3. #3
    Join Date
    Jan 2011
    Beans
    9

    Re: Converting .rpm to .deb problem

    Thanks for the reply.

    I have been trying to convert manually after the first time I tried the script. It did not work.
    I tried with fakeroot as well. same thing.
    This is the whole output from terminal.
    Code:
    cc@cc-Aspire-6920:~/maya$ fakeroot alien -kv Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm
    	LANG=C rpm -qp --queryformat %{NAME} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{VERSION} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{RELEASE} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{ARCH} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{CHANGELOGTEXT} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{SUMMARY} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{DESCRIPTION} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{PREFIXES} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{POSTIN} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{POSTUN} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{PREUN} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{LICENSE} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qp --queryformat %{PREIN} 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qcp 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	rpm -qpi 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	LANG=C rpm -qpl 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm'
    	mkdir -
    	chmod 755 -
    	rpm2cpio Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm | lzma -t -q > /dev/null 2>&1
    	rpm2cpio Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm | (cd -;  cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1
    Unpacking of 'Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm' failed at /usr/share/perl5/Alien/Package/Rpm.pm line 168.
    	find - -type d -exec chmod 755 {} ;
    	rm -rf -

  4. #4
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    1,938
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Converting .rpm to .deb problem


  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Converting .rpm to .deb problem

    This is strange. I've just downloaded Maya 2013 tarball, and successfully converted all *.x86_64.rpm files to .deb. However, the rpm in your output is named Maya2011*.rpm Are you sure you've downloaded the right tarball? Also, I don't see anything with _docs_ in its name in my download. Have you tried alien on some rpms you know it worked before?

    Also, do you have $RPMBUILDOPTS and/or $RPMINSTALLOPT defined?

  6. #6
    Join Date
    Jan 2011
    Beans
    9

    Re: Converting .rpm to .deb problem

    @cmcanulty I installed the package. Ubuntu said it was 'bad quality', but went through any way. It doesn't want to start up...

    @schragge
    I have 2011,2012 and 2013 versions of maya. Yes, I am that serious. I tried a 2011 rpm to see if it was any different.
    How do I check if $RPMBUILDOPTS and/or $RPMINSTALLOPT are defined?

  7. #7
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Converting .rpm to .deb problem

    Code:
    echo $RPMBUILDOPTS
    echo $RPMINSTALLOPT
    Another thought. I have the package lzma installed on my system, so when alien unpacks an rpm it uses it, and not the lzma emulation provided by xz.
    Last edited by schragge; March 9th, 2013 at 03:10 PM.

  8. #8
    Join Date
    Jan 2011
    Beans
    9

    Re: Converting .rpm to .deb problem

    Aparently lzma is not installed and the echo commands return a blank line.
    I do have liblzma5 though.
    Last edited by catalinc; March 9th, 2013 at 03:25 PM.

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Converting .rpm to .deb problem

    TBH, I don't think anymore that lzma is involved: I've just rpm2cpio Maya2013*.rpm and the output is not lzma-compressed. Please try
    Code:
    fakeroot alien -k --veryverbose Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm
    Update.
    Also, please post the output of the following commands
    Code:
    LANG=C rpm -qp --qf %{name}\\n Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm
    LANG=C rpm -qp --qf %{version}\\n Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm
    Last edited by schragge; March 9th, 2013 at 03:38 PM.

  10. #10
    Join Date
    Jan 2011
    Beans
    9

    Re: Converting .rpm to .deb problem

    When I execute fakeroot alien -k --veryverbose Maya2011_0-docs_en_US_64-2011-88.x86_64.rpm I get all the lines like this one:
    Code:
    cpio: ./usr/autodesk/maya2011-x64/docs/Maya2011/en_US/style/tech.js: Function open failed: Permission denied
    And the end is like my second post ...line 168
    If I execute with sudo instead of fakeroot, I get all the lines like this one:
    Code:
    cpio: ./usr/autodesk/maya2011-x64/docs/Maya2011/en_US/style/tech.css not created: newer or same age version exists
    And the ending is the same as my first post ...line299.

    When I execute the LANG lines, nothing is returned.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •