View Issue Details

IDProjectCategoryView StatusLast Update
0005594Kali Linux[All Projects] Kali Package Bugpublic2019-08-02 13:44
ReporterrhertzogAssigned Torhertzog 
PriorityhighSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version2019.2 
Target VersionFixed in Version 
Summary0005594: Application "Software & Updates" (software-properties-gtk) does not work in Kali
DescriptionRunning software-properties-gtk in the command line fails with:
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 101, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 109, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/n/a

Activities

rhertzog

2019-07-23 16:13

administrator   ~0010797

To fix this, we need to modify python-apt to add some Kali specific files in data/templates (which get installed in /usr/share/python-apt/templates/ in python-apt-common).

This change should be submitted upstream (https://salsa.debian.org/apt-team/python-apt).

rhertzog

2019-07-23 17:29

administrator   ~0010798

The fix has been submitted here: https://salsa.debian.org/apt-team/python-apt/merge_requests/15

I also had to update base-files to add a VERSION_CODENAME value in /etc/os-release.

rhertzog

2019-07-24 06:13

administrator   ~0010800

I wanted to upload a forked python-apt but it fails to build currently so I can't do it: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932834

Issue History

Date Modified Username Field Change
2019-07-23 14:05 rhertzog New Issue
2019-07-23 14:05 rhertzog Status new => assigned
2019-07-23 14:05 rhertzog Assigned To => rhertzog
2019-07-23 16:13 rhertzog Note Added: 0010797
2019-07-23 17:29 rhertzog Note Added: 0010798
2019-07-24 06:13 rhertzog Note Added: 0010800