View Issue Details

IDProjectCategoryView StatusLast Update
0000715Kali LinuxKali Package Bugpublic2020-12-01 10:48
Reporterjsherwood0 Assigned Torhertzog  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSKaliOS Version1.0
Summary0000715: Conflicting file between nvidia-cuda-toolkit and winexe(passing-the-hash) packages
Description

Both the nvidia-cuda-toolkit and winexe packages contain the file /usr/bin/bin2c.

When attempting to install both packages the second package fails to install due to this conflict.

Since it seems likely that users interested in high-performance cuda hash-cracking may also be interested in passing-the-hash (as our security engineers are), this conflict can be very unfortunate.

Steps To Reproduce
  1. apt-get install nvidia-cuda-toolkit
  2. apt-get install winexe
  3. Error appears
Additional Information

Quick Fix: Rename cuda and winexe bin2c binaries to bin2c.cuda and bin2c.winexe respectively and update the filenames in your DEBIAN/md5sums files. Then add DEBIAN/postinst and DEBIAN/prerm files to packages as listed below (also included in the associated upload) to take advantage of update-alternatives.

Credit for fix idea goes to Jubei-Mitsuyoshi for his work at: https://github.com/Jubei-Mitsuyoshi/debian/tree/master/kali/kali_fixes/winexe

==nvidia-cuda-toolkit==
--DEBIAN/postinst--
#!/bin/sh

set -e

case "$1" in
configure)
update-alternatives --remove bin2c /usr/bin/bin2c.cuda
update-alternatives --install /usr/bin/bin2c bin2c /usr/bin/bin2c.cuda 80
;;
esac

--DEBIAN/prerm--
#!/bin/sh

set -e

case "$1" in
remove)
update-alternatives --remove bin2c /usr/bin/bin2c.cuda
;;
esac

==winexe==
--DEBIAN/postinst--
#!/bin/sh

set -e

case "$1" in
configure)
update-alternatives --remove bin2c /usr/bin/bin2c.winexe
update-alternatives --install /usr/bin/bin2c bin2c /usr/bin/bin2c.winexe 60
;;
esac

--DEBIAN/prerm--
#!/bin/sh

set -e

case "$1" in
remove)
update-alternatives --remove bin2c /usr/bin/bin2c.winexe
;;
esac

Attached Files
bin2c_fixes.tar.gz (436 bytes)

Activities

rhertzog

rhertzog

2013-11-27 12:58

administrator   ~0001096

Do the bin2c executables of both packages do the same thing? If yes, are they command line compatible?

rhertzog

rhertzog

2013-11-28 13:14

administrator   ~0001102

I uploaded winexe_1.1~20130620-0kali5.dsc to kali-proposed-updates. It drops /usr/bin/bin2c from winexe since it only seems to be required at build time and not at runtime.

Issue History

Date Modified Username Field Change
2013-11-25 18:13 jsherwood0 New Issue
2013-11-25 18:13 jsherwood0 File Added: bin2c_fixes.tar.gz
2013-11-27 12:58 rhertzog Note Added: 0001096
2013-11-28 13:14 rhertzog Note Added: 0001102
2013-11-28 13:14 rhertzog Status new => resolved
2013-11-28 13:14 rhertzog Resolution open => fixed
2013-11-28 13:14 rhertzog Assigned To => rhertzog
2020-12-01 10:48 g0tmi1k Priority high => normal