Error While Installing Deb File

Discussion in 'iOS Jailbreak & Cydia' started by iHaxU, Apr 8, 2010.

  1. iHaxU

    iHaxU New Member

    Joined:
    Mar 16, 2009
    Messages:
    276
    Likes Received:
    0
    Device:
    4G iPod touch
    Hmmm... wasn't sure if this was the right place to post this but oh well.

    I am making a deb file but whenever i attempt to install it. This is log for error:

    Code:
    Executing Command: /usr/bin/dpkg -i "/var/root/debs/DoodleJump/debian.deb"
    
    (Reading database ... 
    dpkg: serious warning: files list file for package `com.ihaxu.mods' missing, assuming package has no files currently installed.
    1933 files and directories currently installed.)
    Preparing to replace com.ihaxu.mods 1.0 (using .../debs/DoodleJump/debian.deb) ...
    dpkg (subprocess): unable to execute new pre-installation script: No such file or directory
    dpkg: error processing /var/root/debs/DoodleJump/debian.deb (--install):
     subprocess pre-installation script returned error exit status 2
    dpkg (subprocess): unable to execute new post-removal script: No such file or directory
    dpkg: error while cleaning up:
     subprocess post-removal script returned error exit status 2
    Errors were encountered while processing:
     /var/root/debs/DoodleJump/debian.deb
    
    Finished with Result Code: 256
    
    I believe I have the folders in the right order:

    \Prog Then \debian Then \DEBIAN And \var Which has \mobile Which has \doodlepatch1_tmp Which has DoodleJump (file)

    The control, preinst, postinst and postrm are all in the DEBIAN folder.

    preisnt is the following:

    Code:
    #!/bin/sh
    # preinst script
      app=`ls -d /var/mobile/Applications/*/DoodleJump.app`
      patchbin="DoodleJump"
    
    
      if [ ! -f "${app}/${patchbin}" ] ; then
        echo "Doodle Jump not found" 
        echo "Doodle Jump not found" 
        echo "Doodle Jump not found" 
        echo "Doodle Jump not found" 
        exit 1
      fi
    
    if [ "$1" == "upgrade" ] ; then
      if [ ! -f "${app}/bak.${patchbin}" ] ; then
        cp -p "${app}/${patchbin}" "${app}/bak.${patchbin}"
      fi
    else
      if [ ! -f "${app}/bak.${patchbin}" ] ; then
      if [ -f "${app}/${patchbin}" ] ; then
        cp -p "${app}/${patchbin}" "${app}/bak.${patchbin}"
      fi
      fi
    fi
    exit 0
    
    And postinst is

    Code:
    #!/bin/sh
    # postinst script
    
    if [ "$1" == "configure" ] ; then
        src="/var/mobile/doodlepatch1_tmp"
        patchbin="DoodleJump"
        patchprog="$src/${patchbin}"
    
        app=`ls -d /var/mobile/Applications/*/DoodleJump.app`
    
        if [ -f "${app}/${patchbin}" ] ; then
          if [ -e "$patchprog" ] ; then
    	cp -p "$patchprog" "${app}/${patchbin}"
            rm -fr ${src}
            echo "Doodle Jump patched" 
            exit 0
          fi
        else
            echo "Doodle Jump not found" 
            echo "Doodle Jump not found" 
            echo "Doodle Jump not found" 
            echo "Doodle Jump not found" 
            exit 1
        fi
    fi
    
    postrm is

    Code:
    #!/bin/sh
    # postrm script
      app=`ls -d /var/mobile/Applications/*/DoodleJump.app`
      patchbin="DoodleJump"
    
    if [ "$1" != "upgrade" ] ; then
      if [ -f "${app}/bak.${patchbin}" ] ; then
        cp -p "${app}/bak.${patchbin}" "${app}/${patchbin}"
        rm -f "${app}/bak.${patchbin}" 
      fi
    fi
    exit 0
    
    Just trying to be thorough.

    I move the Prog folder to /private/var/root/debs
    I use mobileTerminal and run the following command from within the Prog folder: dpkg-deb -b debian

    It successfully builds a deb file... that does not work.

    Note: all permissions are 755 so that does not appear to be the issue.

    If anyone with experience in this has any suggestions i'd gladly hear them.
  2. narwal13

    narwal13 Active Member

    Joined:
    Oct 12, 2009
    Messages:
    3,070
    Likes Received:
    6
    Device:
    5G iPod touch
    SSH it to a directory you are comfortable navigating to, then use iFile to install it?
  3. iHaxU

    iHaxU New Member

    Joined:
    Mar 16, 2009
    Messages:
    276
    Likes Received:
    0
    Device:
    4G iPod touch
    Not really the problem. Its not the place im installing it from ( as ive tried in multiple places) and ive tried cydia, ifile, and terminal to install. The problem must lie in the actual deb file.

Share This Page