[Bug 497477] [NEW] Jaunty: New version of kdebase-runtime contains kdesu, which causes conflicts with kdesudo and causes upgrades to fail

M. Vefa Bicakci bicave at superonline.com
Wed Dec 16 16:41:51 UTC 2009


Public bug reported:

Binary package hint: kdebase-runtime

Hello,

I am using Kubuntu 9.04, which currently has the following packages
installed:

kdebase-runtime 4:4.2.2-0ubuntu1
kdesudo 3.4.1-0ubuntu1

When I try to upgrade to kdebase-runtime 4:4.2.2-0ubuntu1.1, the upgrade fails
because unlike kdebase ...-0ubuntu1, kdebase ...-0ubuntu1.1 contains the file
"/usr/lib/kde4/libexec/kdesu", which is also a part of kdesudo.

This doesn't cause problems on systems that were installed from scratch, because
kdesudo includes a preinst script that sets up a diversion for kdesu, but only if it is
being installed. If kdesudo is being upgraded, it doesn't set up the diversion. So
Kubuntu 9.04 systems upgraded from previous Kubuntu versions do not have this
diversion set up.

The combination of these two problems causes upgrades on Kubuntu 9.04 systems
that were not installed from scratch (i.e. upgraded from previous Kubuntu versions)
to fail with the recent kdebase-runtime package update.

There two solutions to this problem:

1) Remove "/usr/lib/kde4/libexec/kdesu" from _kdebase-runtime_ package as it was
previously, and release a new kdebase-runtime package, OR

2) Modify kdesudo's preinst script so that it sets up diversions for kdesu even when
it is being upgraded.

This bug prevents me and at least two more users from upgrading kdebase-runtime
packages.

Please do not mark this bug as a duplicate of 345776, because even though this
bug is related to 345776, this bug is a new packaging problem which is not fixed yet.

Regards,

M. Vefa Bicakci
===

Here's the output of apt-get and dpkg:

=== 8< ===
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  kdebase-runtime kdebase-runtime-bin-kde4
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1967kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 239551 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)
Preparing to replace kdebase-runtime-bin-kde4 4:4.2.2-0ubuntu1 (using .../kdebase-runtime-bin-kde4_4%3a4.2.2-0ubuntu1.1_i386.deb) ...
Unpacking replacement kdebase-runtime-bin-kde4 ...
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)
=== >8 ===

Here's kdesudo's preinst script. As you can see, it sets up a diversion only when
it is being installed. Upgrades do not set up the diversion.

=== 8< ===
#! /bin/sh

set -e

package_name=kdesudo

if [ -z "$package_name" ]; then
    print >&2 "Internal Error. Please report a bug."
    exit 1;
fi

case "$1" in
  install)
    dpkg-divert --package $package_name \
    --divert /usr/lib/kde4/libexec/kdesu.distrib \
    --rename /usr/lib/kde4/libexec/kdesu
    ;;
  abort-upgrade)
    ;;
  *) echo "$0: didn't understand being called with \`$1'" 1>&2
     exit 0;;
esac

exit 0
=== >8 ===

** Affects: kdebase-runtime (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Changed in: kdebase-runtime (Ubuntu)
       Status: New => Confirmed

-- 
Jaunty: New version of kdebase-runtime contains kdesu, which causes conflicts with kdesudo and causes upgrades to fail
https://bugs.launchpad.net/bugs/497477
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdebase-runtime in ubuntu.




More information about the kubuntu-bugs mailing list