View Issue Details

IDProjectCategoryView StatusLast Update
0002100Kali LinuxGeneral Bugpublic2020-12-01 10:48
Reporterkalibgtr34 Assigned Torhertzog  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.0.9 
Summary0002100: Issue with live-tools_4.0.2-1_all.deb while doing last update && dist-upgrade
Description

Yesterday I tried to get the latest updates and upgrades but this can't be fulfilled due to the following error behaviour. This blocks me from upgrading to the latest kernel and features :

apt-get update - just runs normal
apt-get dist-upgrade finishes like that :

....
Processing triggers for libglib2.0-0:amd64 ...
No such key picture-options' in schemaorg.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 keypicture-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 looks like that :
#!/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

After doing another try with apt-get dist-upgrade I'll get this messages :

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)

Steps To Reproduce

apt-get update

apt-get dist-upgrade

Activities

rhertzog

rhertzog

2015-02-09 12:49

administrator   ~0003074

Integrated live-tools 4.0.2-1.1 which should fix this bug (which is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774915 on the Debian side).

Issue History

Date Modified Username Field Change
2015-02-09 12:25 kalibgtr34 New Issue
2015-02-09 12:49 rhertzog Note Added: 0003074
2015-02-09 12:49 rhertzog Status new => resolved
2015-02-09 12:49 rhertzog Resolution open => fixed
2015-02-09 12:49 rhertzog Assigned To => rhertzog
2020-12-01 10:48 g0tmi1k Priority high => normal