Announcement

Collapse
No announcement yet.

kubuntu-docs install fails on 4.3rc2 and rc3

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    kubuntu-docs install fails on 4.3rc2 and rc3

    Hello,
    I'm using regular ubuntu 9.04. Installed kde 4.3rc3 using the ppa that appears on the kubuntu homepage.
    kubuntu-docs fails with the following message:
    Errors were encountered while processing:
    kubuntu-docs
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:
    Setting up kubuntu-docs (9.04.2) ...
    ln: target `/usr/share/doc/kde/HTML/en/kubuntu/' is not a directory: No such file or directory
    dpkg: error processing kubuntu-docs (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    kubuntu-docs

    I had the same issue with rc2. Before installing rc3 I wiped the rc2 packages.

    #2
    Re: kubuntu-docs install fails on 4.3rc2 and rc3

    I had the same problem and I temporarily solved it by changing the deb's contents like this:

    Code:
    cd ~
    cp /var/cache/apt/archives/kubuntu-docs_9.04.2_all.deb .
    dpkg -e kubuntu-docs_9.04.2_all.deb tmp
    dpkg -x kubuntu-docs_9.04.2_all.deb tmp
    cd tmp
    nano -w postinst
    now comment the line which begins with "rm -rf" with a # (it is line 9, the first "rm"), press CTRL-O and enter to save

    The contents of the file should look like the following now:

    Code:
    #! /bin/sh
    set -e
    
    
    
    case "$1" in
     configure)
      if [ -d "/usr/share/doc/kde4/HTML/en/kubuntu" ]; then
    #       rm -rf /usr/share/doc/kde4/HTML/en/kubuntu
            if [ $(ls /usr/share/doc/kde4/HTML/en/ | wc -l) -eq 0 ]; then
                rm -rf /usr/share/doc/kde4
            fi
        fi
        if which install-docs >/dev/null 2>&1; then
            install-docs -i /usr/share/doc-base/kubuntu-systemdocs
            ln -sf /usr/share/doc/kde/HTML/en/common \
                /usr/share/doc/kde/HTML/en/kubuntu/
            ln -sf /usr/share/doc/kde/HTML/en/kubuntu/index/index.html \
                /usr/share/doc/kde/HTML/en/kubuntu/index.html
     fi
     ;;
    esac
    exit 0
    Now do the following:

    Code:
    mkdir DEBIAN
    cp control DEBIAN/
    cd ..
    dpkg-deb --build tmp
    mv kubuntu-docs_9.04.2_all.deb kubuntu-docs_9.04.2_all.deb-old
    mv tmp.deb kubuntu-docs_9.04.2_all.deb
    sudo dpkg -i kubuntu-docs_9.04.2_all.deb
    after that you should do a "sudo apt-get -f install"

    EDIT: added copy of control file instructions, added note about line number and contents of postinst

    Comment


      #3
      Re: kubuntu-docs install fails on 4.3rc2 and rc3

      I get an error when I try the 'dpkg --build tmp' line:

      "failed to open package info file `tmp/DEBIAN/control' for reading: No such file or directory"

      Also, there are 2 lines in the postinst which begin with "rm -rf". Which one do I comment?

      Comment


        #4
        Re: kubuntu-docs install fails on 4.3rc2 and rc3

        Originally posted by The_Eddster
        I get an error when I try the 'dpkg --build tmp' line:

        "failed to open package info file `tmp/DEBIAN/control' for reading: No such file or directory"
        I changed the instructions (see above), I forgot to mention that we have to copy the control file to the DEBIAN dir.

        Originally posted by The_Eddster
        Also, there are 2 lines in the postinst which begin with "rm -rf". Which one do I comment?
        It's line #9

        Comment


          #5
          Re: kubuntu-docs install fails on 4.3rc2 and rc3

          Thanks a lot, it worked!

          I was beginning to think I would have to install kubuntu from scratch!

          Comment

          Working...
          X