Announcement

Collapse
No announcement yet.

kdebase-runtime upgrade broken

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

    kdebase-runtime upgrade broken

    Hi all,

    Just tried a aptitude safe-upgrade and noticed it wanted to upgrade kdebase-runtime. Here's the output:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    [david@TOPIC->(CFD)]refcount$ sudo aptitude safe-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    The following packages will be upgraded:
    kdebase-runtime
    1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 1906kB of archives. After unpacking 0B will be used.
    Do you want to continue? [Y/n/?] Y
    Writing extended state information... Done
    Get:1 http://us.archive.ubuntu.com jaunty-updates/main kdebase-runtime 4:4.2.2-0ubuntu1.1 [1906kB]
    Fetched 1906kB in 3s (596kB/s)
    (Reading database ... 232567 files and directories currently installed.)
    Preparing to replace kdebase-runtime 4:4.2.2-0ubuntu1 (using .../kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb) ...
    Unpacking replacement kdebase-runtime ...
    dpkg: error processing /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb (--unpack):
    trying to overwrite `/usr/lib/kde4/libexec/kdesu', which is also in package kdesudo
    dpkg-deb: subprocess paste killed by signal (Broken pipe)
    Processing triggers for man-db ...
    Errors were encountered while processing:
    /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    It appears it wants to overwrite my 'kdesu', but the funny thing is that the kdebase-runtime does not have that in its provided files listing. It provides 'kdesud' not 'kdesu'. So it appears that the maintainers have a typo somewhere. Am I correct?
    Regards,<br /><br />David

    #2
    Re: kdebase-runtime upgrade broken

    Nope. It's a soft link...

    lrwxrwxrwx 1 root root 23 2009-11-10 17:19 kdesu -> /etc/alternatives/kdesu
    and
    lrwxrwxrwx 1 root root 16 2009-11-10 17:17 /etc/alternatives/kdesu -> /usr/bin/kdesudo
    Did y9u use "sudo"?
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Re: kdebase-runtime upgrade broken

      Yeah.... i used 'sudo'...

      Ok... running

      dpkg-query -L kdebase-runtime | grep kdesu

      gives

      -rwxr-xr-x 1 root root 50968 2009-04-01 13:51 /usr/lib/kde4/libexec/kdesud
      'kdesu' is not in the package, only 'kdesud'. They are different. Does this make sense? That's why I think there is a problem at the package maintainer level. Checking the contents of /usr/lib/kde4/libexec/kdesu* shows:

      lrwxrwxrwx 1 root root 20 2009-10-11 14:06 /usr/lib/kde4/libexec/kdesu -> ../../../bin/kdesudo
      -rwxr-xr-x 1 root root 50968 2009-04-01 13:51 /usr/lib/kde4/libexec/kdesud
      -rwxr-xr-x 1 root root 9772 2009-12-09 15:07 /usr/lib/kde4/libexec/kdesu_stub
      Regards,<br /><br />David

      Comment


        #4
        Re: kdebase-runtime upgrade broken

        kdesu is a SOFT LINK to kdesudo, a link which the install package is trying to replace. You could delete that link and then retry the install, but I'd wager that the install will fail at another file because of permission problems.

        A problem similar to this appeared within the last month or two but I can't recall the solution. (I think it was using dpkg --force thepackage.deb, or something similar, but I am not sure.)
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Re: kdebase-runtime upgrade broken

          Originally posted by card-kubuntu
          Just tried a aptitude safe-upgrade and noticed it wanted to upgrade kdebase-runtime. Here's the output:
          Try instead:
          Code:
          sudo apt-get dist-upgrade
          man aptitude
          safe-upgrade
          Upgrades installed packages to their most recent version. Installed
          packages will not be removed unless they are unused (see the
          section “Managing Automatically Installed Packages” in the aptitude
          reference manual). Packages which are not currently installed may
          be installed to resolve dependencies unless the --no-new-installs
          command-line option is supplied.

          It is sometimes necessary to remove one package in order to upgrade
          another
          ; this command is not able to upgrade packages in such
          situations. Use the full-upgrade command to upgrade as many
          packages as possible.

          full-upgrade
          Upgrades installed packages to their most recent version, removing
          or installing packages as necessary. This command is less
          conservative than safe-upgrade and thus more likely to perform
          unwanted actions. However, it is capable of upgrading packages that
          safe-upgrade cannot upgrade.

          Note
          This command was originally named dist-upgrade for historical
          reasons, and aptitude still recognizes dist-upgrade as a
          synonym for full-upgrade.
          man apt-get
          dist-upgrade
          dist-upgrade in addition to performing the function of upgrade,
          also intelligently handles changing dependencies with new versions
          of packages; apt-get has a "smart" conflict resolution system, and
          it will attempt to upgrade the most important packages at the
          expense of less important ones if necessary. So, dist-upgrade
          command may remove some packages. The /etc/apt/sources.list file
          contains a list of locations from which to retrieve desired package
          files. See also apt_preferences(5) for a mechanism for overriding
          the general settings for individual packages.
          Using Kubuntu Linux since March 23, 2007
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: kdebase-runtime upgrade broken

            Originally posted by GreyGeek
            kdesu is a SOFT LINK to kdesudo, a link which the install package is trying to replace. You could delete that link and then retry the install, but I'd wager that the install will fail at another file because of permission problems.

            A problem similar to this appeared within the last month or two but I can't recall the solution. (I think it was using dpkg --force thepackage.deb, or something similar, but I am not sure.)
            GreyGeek,

            I guess I'm confused here. So when I list the installed files with 'dkpg -L kdebase-runtime', there is no 'kdesudo' that shows up, only 'kdesud'. These are different files (I'm not making a typo, look at the ls -al output from my previous post). The soft link for kdesudo in /usr/lib/kde4/libexec is not to /usr/lib/kde4/libexec/kdesud. What is 'kdesud'?? I know that 'kdesudo' is a soft link to 'kdesu'. What am I missing here?
            Regards,<br /><br />David

            Comment


              #7
              Re: kdebase-runtime upgrade broken

              As I posted, try running sudo apt-get dist-upgrade instead. dist-upgrade handles dependencies 'intelligently' and does a better job than does aptitue safe-upgrade.
              Using Kubuntu Linux since March 23, 2007
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: kdebase-runtime upgrade broken

                Hi Snowhog,

                Yeah... tried that. No go. This is the output:
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                You might want to run `apt-get -f install' to correct these.
                The following packages have unmet dependencies:
                kdebase-runtime: Depends: kdebase-runtime-bin-kde4 (= 4:4.2.2-0ubuntu1) but 4:4.2.2-0ubuntu1.1 is installed
                E: Unmet dependencies. Try using -f.
                Regards,<br /><br />David

                Comment


                  #9
                  Re: kdebase-runtime upgrade broken

                  As the message suggests, have you tried running:
                  Code:
                  sudo apt-get -f install
                  apt is telling you were the problem is:
                  kdebase-runtime: Depends: kdebase-runtime-bin-kde4 (= 4:4.2.2-0ubuntu1) but 4:4.2.2-0ubuntu1.1 is installed
                  You have a 'newer' version of a dependent package already installed that kdebase-runtime requires, and that package that it needs to install is an older version.
                  Using Kubuntu Linux since March 23, 2007
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: kdebase-runtime upgrade broken

                    I tried the force option (although I normally don't like to do that since this is my main server) and got:

                    Reading package lists... Done
                    Building dependency tree
                    Reading state information... Done
                    Correcting dependencies... Done
                    Calculating upgrade... Done
                    The following packages will be upgraded:
                    kdebase-runtime
                    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                    Need to get 1906kB of archives.
                    After this operation, 0B of additional disk space will be used.
                    Do you want to continue [Y/n]? Y
                    Get:1 http://us.archive.ubuntu.com jaunty-updates/main kdebase-runtime 4:4.2.2-0ubuntu1.1 [1906kB]
                    Fetched 1906kB in 3s (607kB/s)
                    (Reading database ... 232567 files and directories currently installed.)
                    Preparing to replace kdebase-runtime 4:4.2.2-0ubuntu1 (using .../kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb) ...
                    Unpacking replacement kdebase-runtime ...
                    dpkg: error processing /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb (--unpack):
                    trying to overwrite `/usr/lib/kde4/libexec/kdesu', which is also in package kdesudo
                    dpkg-deb: subprocess paste killed by signal (Broken pipe)
                    Processing triggers for man-db ...
                    Errors were encountered while processing:
                    /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb
                    E: Sub-process /usr/bin/dpkg returned an error code (1)
                    Again, we are back to what I've been trying to say. It believes that it wants to overwrite /usr/lib/kde4/libexec/kdesu, but that file DOES NOT EXIST IN THE KDEBASE-RUNTIME PACKAGE. How many times do I have to say that? The file that is in the package is /usr/lib/kde4/libexec/kdesud. THESE ARE DIFFERENT FILES. The file names are almost identical. It's as though the package thinks it will install /usr/lib/kde4/libexec/kdesu, but it doesn't have that file.

                    If I run dpkg-query -L kdebase-runtime this is what I get:
                    /usr
                    /usr/share
                    /usr/share/doc
                    /usr/share/doc/kdebase-runtime
                    /usr/share/doc/kdebase-runtime/copyright
                    /usr/share/man
                    /usr/share/man/man1
                    /usr/share/man/man1/knotify4.1.gz
                    /usr/bin
                    /usr/bin/kcmshell4
                    /usr/bin/kde-cp
                    /usr/bin/kde-mv
                    /usr/bin/kde-open
                    /usr/bin/kde4
                    /usr/bin/kde4-menu
                    /usr/bin/kfile4
                    /usr/bin/khotnewstuff4
                    /usr/bin/kiconfinder
                    /usr/bin/kioclient
                    /usr/bin/kmimetypefinder
                    /usr/bin/knotify4
                    /usr/bin/kquitapp
                    /usr/bin/ksvgtopng
                    /usr/bin/ktraderclient
                    /usr/bin/ktrash
                    /usr/bin/kuiserver
                    /usr/bin/nepomukserver
                    /usr/bin/nepomukservicestub
                    /usr/bin/solid-hardware
                    /usr/lib
                    /usr/lib/kconf_update_bin
                    /usr/lib/kconf_update_bin/phonon_devicepreference_update
                    /usr/lib/kde4
                    /usr/lib/kde4/cursorthumbnail.so
                    /usr/lib/kde4/djvuthumbnail.so
                    /usr/lib/kde4/exrthumbnail.so
                    /usr/lib/kde4/fixhosturifilter.so
                    /usr/lib/kde4/htmlthumbnail.so
                    /usr/lib/kde4/imagethumbnail.so
                    /usr/lib/kde4/kcm_cgi.so
                    /usr/lib/kde4/kcm_componentchooser.so
                    /usr/lib/kde4/kcm_emoticons.so
                    /usr/lib/kde4/kcm_icons.so
                    /usr/lib/kde4/kcm_kded.so
                    /usr/lib/kde4/kcm_kdnssd.so
                    /usr/lib/kde4/kcm_knotify.so
                    /usr/lib/kde4/kcm_locale.so
                    /usr/lib/kde4/kcm_nepomuk.so
                    /usr/lib/kde4/kcm_phononxine.so
                    /usr/lib/kde4/kcm_phonon.so
                    /usr/lib/kde4/kcmspellchecking.so
                    /usr/lib/kde4/kded_desktopnotifier.so
                    /usr/lib/kde4/kded_kpasswdserver.so
                    /usr/lib/kde4/kded_ktimezoned.so
                    /usr/lib/kde4/kded_remotedirnotify.so
                    /usr/lib/kde4/kded_soliduiserver.so
                    /usr/lib/kde4/kio_about.so
                    /usr/lib/kde4/kio_archive.so
                    /usr/lib/kde4/kio_cgi.so
                    /usr/lib/kde4/kio_desktop.so
                    /usr/lib/kde4/kio_filter.so
                    /usr/lib/kde4/kio_finger.so
                    /usr/lib/kde4/kio_fish.so
                    /usr/lib/kde4/kio_floppy.so
                    /usr/lib/kde4/kio_info.so
                    /usr/lib/kde4/kio_man.so
                    /usr/lib/kde4/kio_nfs.so
                    /usr/lib/kde4/kio_remote.so
                    /usr/lib/kde4/kio_settings.so
                    /usr/lib/kde4/kio_sftp.so
                    /usr/lib/kde4/kio_smb.so
                    /usr/lib/kde4/kio_thumbnail.so
                    /usr/lib/kde4/kio_trash.so
                    /usr/lib/kde4/kshorturifilter.so
                    /usr/lib/kde4/kstyle_oxygen_config.so
                    /usr/lib/kde4/kuriikwsfilter.so
                    /usr/lib/kde4/kurisearchfilter.so
                    /usr/lib/kde4/libexec
                    /usr/lib/kde4/libexec/drkonqi
                    /usr/lib/kde4/libexec/kdeeject
                    /usr/lib/kde4/libexec/kdesud
                    /usr/lib/kde4/libexec/khc_docbookdig.pl
                    /usr/lib/kde4/libexec/khc_htdig.pl
                    /usr/lib/kde4/libexec/khc_htsearch.pl
                    /usr/lib/kde4/libexec/khc_indexbuilder
                    /usr/lib/kde4/libexec/khc_mansearch.pl
                    /usr/lib/kde4/libexec/kioexec
                    /usr/lib/kde4/libexec/klocaldomainurifilterhelper
                    /usr/lib/kde4/libexec/knetattach
                    /usr/lib/kde4/libkmanpart.so
                    /usr/lib/kde4/librenaudioplugin.so
                    /usr/lib/kde4/librenimageplugin.so
                    /usr/lib/kde4/localdomainurifilter.so
                    /usr/lib/kde4/nepomukfilewatch.so
                    /usr/lib/kde4/nepomukmigration1.so
                    /usr/lib/kde4/nepomukontologyloader.so
                    /usr/lib/kde4/nepomukstorage.so
                    /usr/lib/kde4/nepomukstrigiservice.so
                    /usr/lib/kde4/plugins
                    /usr/lib/kde4/plugins/phonon_platform
                    /usr/lib/kde4/plugins/phonon_platform/kde.so
                    /usr/lib/kde4/plugins/styles
                    /usr/lib/kde4/plugins/styles/oxygen.so
                    /usr/lib/kde4/svgthumbnail.so
                    /usr/lib/kde4/textthumbnail.so
                    /usr/lib/kde4/kded_globalaccel.so
                    /usr/lib/kde4/kio_applications.so
                    /usr/lib/kde4/kded_phononserver.so
                    /usr/lib/kde4/kio_bookmarks.so
                    /usr/lib/kde4/kio_nepomuksearch.so
                    /usr/lib/kde4/jpegthumbnail.so
                    /usr/lib/kde4/nepomukqueryservice.so
                    /usr/lib/kde4/kcm_trash.so
                    /usr/lib/libkdeinit4_kcmshell4.so
                    /usr/lib/libkdeinit4_kuiserver.so
                    /usr/lib/libkdeinit4_nepomukserver.so
                    /usr/lib/strigi
                    /usr/lib/strigi/strigiindex_sopranobackend.so
                    /usr/lib/libkdeinit4_kwalletd.so
                    /usr/lib/libkwalletbackend.so.4.2.0
                    /usr/share/doc/kdebase-runtime/changelog.Debian.gz
                    /usr/lib/libkwalletbackend.so.4
                    As you can see, there is NO KDESU in the package. Am I making sense? Running dpkg-query --search /usr/lib/kde4/libexec/kdesu shows:

                    kdesudo: /usr/lib/kde4/libexec/kdesu
                    as expected.


                    Regards,<br /><br />David

                    Comment


                      #11
                      Re: kdebase-runtime upgrade broken

                      kdesu is NOT in the package. It is a SOFT LINK created by the package installation script.

                      jerry@Sonyvgnfw140e:~$ vdir /etc/alternatives/kdesu
                      lrwxrwxrwx 1 root root 16 2009-11-10 17:17 /etc/alternatives/kdesu -> /usr/bin/kdesudo
                      jerry@Sonyvgnfw140e:~$
                      That's what the "l" means.

                      NAME
                      ln - make links between files

                      SYNOPSIS
                      ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
                      ln [OPTION]... TARGET (2nd form)
                      ln [OPTION]... TARGET... DIRECTORY (3rd form)
                      ln [OPTION]... -t DIRECTORY TARGET... (4th form)

                      DESCRIPTION
                      In the 1st form, create a link to TARGET with the name LINK_NAME. In the 2nd form, create a link to TARGET
                      in the current directory. In the 3rd and 4th forms, create links to each TARGET in DIRECTORY. Create hard
                      links by default, symbolic links with --symbolic. When creating hard links, each TARGET must exist. Sym‐
                      bolic links can hold arbitrary text; if later resolved, a relative link is interpreted in relation to its
                      parent directory.

                      Mandatory arguments to long options are mandatory for short options too.

                      --backup[=CONTROL]
                      Manual page ln(1) line 1
                      It was suggested that if you remove the link and then install the package it may complete the installation.

                      sudo rm /etc/alternatives/kdesu
                      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                      – John F. Kennedy, February 26, 1962.

                      Comment


                        #12
                        Re: kdebase-runtime upgrade broken

                        Hi GreyGeek,

                        No offense, but I know what a soft link is. I do not have a soft link to kdesu in /etc/alternatives. My soft link to /usr/bin/kdesu is /usr/lib/kde4/libexec/kdesu as the install failure says and as I've verified:

                        david@server:~/scratch$ ls -al /usr/lib/kde4/libexec/kdesu*
                        lrwxrwxrwx 1 root root 20 2009-10-11 14:06 /usr/lib/kde4/libexec/kdesu -> ../../../bin/kdesudo
                        -rwxr-xr-x 1 root root 50968 2009-04-01 13:51 /usr/lib/kde4/libexec/kdesud
                        -rwxr-xr-x 1 root root 9772 2009-12-09 15:07 /usr/lib/kde4/libexec/kdesu_stub
                        My question would be why would the maintainers of kdebase-runtime create a soft link for kdesu when there is a separate kdesu package that does this?

                        david@server:~/scratch$ dpkg-query -L kdesudo
                        /.
                        /usr
                        /usr/bin
                        /usr/bin/kdesudo
                        /usr/share
                        /usr/share/doc
                        /usr/share/doc/kde
                        /usr/share/doc/kde/HTML
                        /usr/share/doc/kde/HTML/en
                        /usr/share/doc/kde/HTML/en/kdesudo
                        /usr/share/doc/kde/HTML/en/kdesudo/index.cache.bz2
                        /usr/share/doc/kde/HTML/en/kdesudo/index.docbook
                        /usr/share/doc/kdesudo
                        /usr/share/doc/kdesudo/README
                        /usr/share/doc/kdesudo/AUTHORS
                        /usr/share/doc/kdesudo/copyright
                        /usr/share/doc/kdesudo/changelog.gz
                        /usr/share/doc/kdesudo/changelog.Debian.gz
                        /usr/share/man
                        /usr/share/man/man1
                        /usr/share/man/man1/kdesudo.1.gz
                        /usr/lib
                        /usr/lib/kde4
                        /usr/lib/kde4/libexec
                        /usr/share/doc/kde/HTML/en/kdesudo/common
                        /usr/lib/kde4/libexec/kdesu
                        This is why I asked my initial question. Does it really want to remove kdesu or is it a typo in the installation script, i.e. did they really mean to remove kdesud which is in the same directory and provided by the package.
                        Regards,<br /><br />David

                        Comment


                          #13
                          Re: kdebase-runtime upgrade broken

                          I've just run into the same problem when trying to upgrade the packages in Kubuntu 9.04. The kdebase-runtime package wanted to overwrite /usr/lib/kde4/libexec/kdesu, which belongs to kdesudo package. It might be, as you say, a typo somewhere in the install scripts where kdesu is written instead of kdesud, or maybe the package dependencies have criss crossed.

                          The bug report thread someone mentioned is here https://bugs.launchpad.net/ubuntu/+source/kdesudo/+bug/345776
                          Strange: it says that the fix has been released, but the problem is still here. Anyway, the force command that fixed it for me is:
                          Code:
                          sudo dpkg -i --force-overwrite /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb
                          followed by
                          Code:
                          sudo apt-get -f install

                          Comment

                          Working...
                          X