Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, i'm trying to install some packages on fedora fc4 using apt / yum , and keep running into dependency errors. This one i can't figure out though because it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie hughitt1's Avatar
    Join Date
    Oct 2005
    Location
    Baltimore, MD USA
    Posts
    167

    problems with dependencies?


    Hi,

    i'm trying to install some packages on fedora fc4 using apt / yum, and keep running into dependency errors. This one i can't figure out though because it won't let me remove the bad package..

    when i try to install something using apt, i get the error message:
    You might want to run `apt-get --fix-broken install' to correct these:
    The following packages have unmet dependencies:
    xml-commons-apis#0:1.0-0.b2.6jpp_12fc: Depends: xml-commons (= 0:1.0-0.b2.6jpp_12fc) but 0:1.3.02-1jpp is to be installed
    so i go to shell and try apt-get --fix-broken install

    The following packages will be REMOVED:
    xml-commons-apis#0:1.0-0.b2.6jpp_12fc (0:1.0-0.b2.6jpp_12fc)
    0 upgraded, 0 newly installed, 1 removed and 59 not upgraded.
    Need to get 0B of archives.
    After unpacking 3980kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    Committing changes...
    Preparing... ########################################### [100%]
    /var/tmp/rpm-tmp.33524: line 1: rebuild-gcj-db: command not found
    error: %postun(xml-commons-apis-1.0-0.b2.6jpp_12fc.i386) scriptlet failed, exit status 127
    W: Some errors occurred while running transaction

    Last, i decide to try rpm:

    [root@resnet-10-9-4-86 ~]# rpm -e xml-commons-apis-1.0-0.b2.6jpp_12fc.i386
    /var/tmp/rpm-tmp.24182: line 1: rebuild-gcj-db: command not found
    error: %postun(xml-commons-apis-1.0-0.b2.6jpp_12fc.i386) scriptlet failed, exit status 127

    I'm stumped

    Anyone have any suggestions, or run into similar problems? Any help would be greatly appreciated.

    Thanks,
    Keith

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    1,429
    The problem is you're trying to replace a version that is already on your system by another one needed by the program you just installed. I think you installed something that needed to downgrade the xml-commons package, which it did, with as a result broken dependencies. You should find out what program install caused that. Downgrading can give a hell of a dependency problem, trust me .
    ** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

  3. #3
    Linux Engineer
    Join Date
    Jan 2005
    Location
    Chicago (USA)
    Posts
    1,028
    Sounds like you mixed the RPMForge repositories with extras/Livna. The easiest fix for this is reinstallation then going with one set of repositories.

  4. #4
    Linux Newbie hughitt1's Avatar
    Join Date
    Oct 2005
    Location
    Baltimore, MD USA
    Posts
    167
    is there any easy way to reinstall problematic programs without having to wipe the entire system and start fresh?

  5. #5
    Linux Engineer
    Join Date
    Jan 2005
    Location
    Chicago (USA)
    Posts
    1,028
    I doubt it.

  6. #6
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514

    Re: problems with dependencies?

    Quote Originally Posted by hughitt1
    [root@resnet-10-9-4-86 ~]# rpm -e xml-commons-apis-1.0-0.b2.6jpp_12fc.i386
    /var/tmp/rpm-tmp.24182: line 1: rebuild-gcj-db: command not found
    error: %postun(xml-commons-apis-1.0-0.b2.6jpp_12fc.i386) scriptlet failed, exit status 127
    Try "rpm -e --nopostun ..." to not run the postuninstall script.

  7. #7
    Linux Newbie hughitt1's Avatar
    Join Date
    Oct 2005
    Location
    Baltimore, MD USA
    Posts
    167
    Thanks spoon,

    I tried that and it worked fine. I still have about 4930223 other dependency problems, but now at least there is one less, and i was able to install kdegeography

  8. #8
    Just Joined!
    Join Date
    Feb 2007
    Posts
    2

    Good tip

    Quote Originally Posted by spoon!
    Try "rpm -e --nopostun ..." to not run the postuninstall script.
    The nopostun comment was the start of me investigating the --noscripts options, which helped me greatly to get a package uninstalled.

    BTW...my first post here.

Posting Permissions

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