Results 1 to 3 of 3

Thread: Issues with live-tools_4.0.2-1_all.deb while upgrading to kernel 3.18

  1. #1
    Join Date
    2015-Jan
    Posts
    15

    Issues with live-tools_4.0.2-1_all.deb while upgrading to kernel 3.18

    Hi there

    I run kali linux with a bootable live usb persistence and I am trying to get the last upgrade (kernel 3.18 + other).

    To this end I run:
    apt-get update && apt-get dist-upgrade
    which works well along most of the upgrade untill I receive the following error:

    Processing triggers for gconf2 ...
    Processing triggers for python-support ...
    Errors were encountered while processing:
    /var/cache/apt/archives/live-tools_4.0.2-1_all.deb
    Error: GDBus.Errorrg.freedesktop.DBus.Error.Spawn.PermissionsInvalid : The permission of the setuid helper is not correct
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I made several searches over the internet but unfortunately I couldn't find a great deal about this type of issue that made much sense to me.
    The only thing I found could be this post:
    https://bugs.debian.org/cgi-bin/bugr...cgi?bug=774915
    reference a resolved bug on the upgrade in wheezy of live-tools Version: 4.0.2-1

    I would need some help to understand if this is the right direction to find a solution to this error.
    If it is I would be grateful if someone could help me to compile the live-tools.preinst accordingly to that post.

    Currently the content shown of my live-tools.preinst is

    #!/bin/sh

    set -e

    case "${1}" in
    install|upgrade)
    # removing old diversions from live-tools <= 3.0.8
    _PACKAGE="$(dpkg-divert --listpackage /usr/bin/uptime)"
    _DIVERSION="$(dpkg-divert --truename /usr/bin/uptime)"

    if [ "${_PACKAGE}" = "live-tools" ] && [ "${_DIVERSION}" = "/us$
    then
    dpkg-divert --package live-tools --quiet --remove --div$
    fi

    # initramfs-tools: update-initramfs
    dpkg-divert --package live-tools --quiet --add --rename --diver$
    dpkg-divert --package live-tools --quiet --add --rename --diver$

    # procps: uptime
    dpkg-divert --package live-tools --quiet --add --rename --diver$
    dpkg-divert --package live-tools --quiet --add --rename --diver$

    # renaming old diversions from live-tools <= 3.0.8
    if [ "${_PACKAGE}" = "live-tools" ] && [ "${_DIVERSION}" = "/us$
    then
    mv /usr/bin/uptime.procps /usr/bin/uptime.orig.procps
    fi
    ;;

    abort-upgrade)

    ;;

    *)
    echo "preinst called with unknown argument \`$1'" >&2
    exit 1
    ;;
    esac

    Any Idea?
    Thanks in advance for all the hel you can give
    Stefano

  2. #2
    Join Date
    2015-Jan
    Posts
    4
    I can't help you but I have a similar problem here, apt-get update && apt-get dist-upgrade
    done today :

    ....
    Processing triggers for libglib2.0-0:amd64 ...
    No such key `picture-options' in schema `org.gnome.desktop.screensaver' as specified in override file `/usr/share/glib-2.0/schemas/10_desktop-base.gschema.override'; ignoring override for this key.
    No such key `picture-uri' in schema `org.gnome.desktop.screensaver' as specified in override file `/usr/share/glib-2.0/schemas/10_desktop-base.gschema.override'; ignoring override for this key.
    Processing triggers for gconf2 ...
    Errors were encountered while processing:
    /var/cache/apt/archives/live-tools_4.0.2-1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    my live-tools.preinst
    #!/bin/sh

    set -e

    case "${1}" in
    install|upgrade)
    # removing old diversions from live-tools <= 3.0.8
    _PACKAGE="$(dpkg-divert --listpackage /usr/bin/uptime)"
    _DIVERSION="$(dpkg-divert --truename /usr/bin/uptime)"

    if [ "${_PACKAGE}" = "live-tools" ] && [ "${_DIVERSION}" = "/usr/bin/uptime.procps" ]
    then
    dpkg-divert --package live-tools --quiet --remove --divert /usr/bin/uptime.procps /usr/bin/uptime
    fi

    # initramfs-tools: update-initramfs
    dpkg-divert --package live-tools --quiet --add --rename --divert /usr/sbin/update-initramfs.orig.initramfs-tools /usr/sbin/update-initramfs
    dpkg-divert --package live-tools --quiet --add --rename --divert /usr/share/man/man8/update-initramfs.orig.initramfs-tools.8.gz /usr/share/man/man8/update-initramfs.8.gz

    # procps: uptime
    dpkg-divert --package live-tools --quiet --add --rename --divert /usr/bin/uptime.orig.procps /usr/bin/uptime
    dpkg-divert --package live-tools --quiet --add --rename --divert /usr/share/man/man1/uptime.orig.procps.1.gz /usr/share/man/man1/uptime.1.gz

    # renaming old diversions from live-tools <= 3.0.8
    if [ "${_PACKAGE}" = "live-tools" ] && [ "${_DIVERSION}" = "/usr/bin/uptime.procps" ] && [ -e /usr/bin/uptime.procps ]
    then
    mv /usr/bin/uptime.procps /usr/bin/uptime.orig.procps
    fi
    ;;

    abort-upgrade)

    ;;

    *)
    echo "preinst called with unknown argument \`$1'" >&2
    exit 1
    ;;
    esac



    exit 0



    Would also need help on that please...

  3. #3
    Join Date
    2015-Jan
    Posts
    4
    Got one more message here :

    Preparing to replace live-tools 3.0.20-1 (using .../live-tools_4.0.2-1_all.deb) ...
    dpkg-divert: error: rename involves overwriting `/usr/bin/uptime' with
    different file `/usr/bin/uptime.orig.procps', not allowed
    dpkg: error processing /var/cache/apt/archives/live-tools_4.0.2-1_all.deb (--unpack):
    subprocess new pre-installation script returned error exit status 2
    Errors were encountered while processing:
    /var/cache/apt/archives/live-tools_4.0.2-1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Similar Threads

  1. Replies: 11
    Last Post: 2019-01-15, 14:47
  2. Changing MAC Address Issues With 4.14 Kernel (4.13 Kernel is fine)
    By schaeferhund1 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2018-03-09, 23:03
  3. Replies: 12
    Last Post: 2017-03-05, 03:28
  4. vboot-kernel-utils problmes Upgrading to Kali Rolling
    By zeroxlapara in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2016-10-15, 23:30
  5. Upgrading Kali, phpmyadmin issues
    By ariwinokur in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-02-29, 00:49

Tags for this Thread

Posting Permissions

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