Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: HOWTO: Easily modify dependencies of a .deb file

  1. #11
    Join Date
    Jun 2007
    Location
    Edinburgh Scotland
    Beans
    260
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: HOWTO: Easily modify dependencies of a .deb file

    What a damned useful little script! Many Thanks.
    I laughed, I cried, I jumped with joy. I was here before Killroy. 8)

  2. #12
    Join Date
    May 2011
    Beans
    2

    Question Re: HOWTO: Easily modify dependencies of a .deb file

    I am completely new to ubuntu and need to know what exactly i need to do to change the dependency in boxee from "libxmlrpc-c3" to "libxmlrpc-c3-0".

    Thanks in advance for any help,
    Ryan.

  3. #13
    Join Date
    May 2011
    Beans
    1

    Re: HOWTO: Easily modify dependencies of a .deb file

    Registered just to say thanks! This script did exactly what I needed.

  4. #14
    Join Date
    Jun 2011
    Beans
    7

    Re: HOWTO: Easily modify dependencies of a .deb file

    Hello All,
    I'm new to linux & have the problem "dependency is not satisfiable libxmlrpc-c3"
    So plz, tell me how can I solve it?

  5. #15
    Join Date
    Aug 2008
    Beans
    4

    Re: HOWTO: Easily modify dependencies of a .deb file

    awesome script. Thanks!

  6. #16
    Join Date
    Aug 2011
    Beans
    2

    Re: HOWTO: Easily modify dependencies of a .deb file

    Im getting:

    $sudo: videbcontrol: command not found


    Im running Ubuntu server 11.04

  7. #17
    Join Date
    Jan 2008
    Location
    Croatia
    Beans
    22

    Re: HOWTO: Easily modify dependencies of a .deb file

    Quote Originally Posted by ccsalway View Post
    Im getting:

    $sudo: videbcontrol: command not found


    Im running Ubuntu server 11.04
    Your script is not in PATH, but you don't have to add it. Just cd to the location containing that script and issue "./scriptname ...".

  8. #18
    Join Date
    Oct 2011
    Beans
    1

    Re: HOWTO: Easily modify dependencies of a .deb file

    I've got some questions, because I'm a straight up n00b and downloaded Ubuntu only because it was the best of the "free" options since my copy of windows apparently lost its legitimacy when I did a clean install. I'm trying to turn this computer into a media center, so if someone could basically explain this to me step-by-step, I would greatly appreciate it.

  9. #19
    Join Date
    Apr 2006
    Beans
    147

    Re: HOWTO: Easily modify dependencies of a .deb file

    Thanks! I was leary - 4 year old scripts rarely work, but this did exactly what I needed to get boxee to ignore my libvdpau1 problem. Only one slight modification on line 31 - vim is better than vi.

    As for mrgoodknife, it is frowned upon to post unrelated questions in forums. Start a new thread to ask your question. Better yet, ask Google, who knows all.

  10. #20
    Join Date
    Oct 2009
    Beans
    101

    Lightbulb Update to "HOWTO: Easily modify dependencies of a .deb file"

    Found this script and it's well made. My only gripe is that I hate vi, just isn't intuitive for me. So I just made a quick modification. It will now open with gedit instead and wait for you to save and hit enter before continuing.

    (Note: If you have problems opening the script try "bash debcontrol" in the directory of the script. Should execute the script even if it's not +x tagged)
    Code:
    #!/bin/bash
    #modded by japzone
    
    if [[ -z "$1" ]]; then
      echo "Syntax: $0 debfile"
      exit 1
    fi
    
    DEBFILE="$1"
    TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
    OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
    
    if [[ -e "$OUTPUT" ]]; then
      echo "$OUTPUT exists."
      rm -r "$TMPDIR"
      exit 1
    fi
    
    dpkg-deb -x "$DEBFILE" "$TMPDIR"
    dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
    
    if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
      echo DEBIAN/control not found.
    
      rm -r "$TMPDIR"
      exit 1
    fi
    
    CONTROL="$TMPDIR"/DEBIAN/control
    
    MOD=`stat -c "%y" "$CONTROL"`
    gedit "$CONTROL"
    read -p "Press any key once you've finished editing and saved"
    
    if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
      echo Not modfied.
    else
      echo Building new deb...
      dpkg -b "$TMPDIR" "$OUTPUT"
    fi
    
    rm -r "$TMPDIR"
    Last edited by japzone; March 5th, 2012 at 05:18 AM.

Page 2 of 3 FirstFirst 123 LastLast

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
  •