View Issue Details

IDProjectCategoryView StatusLast Update
0005594Kali LinuxKali Package Bugpublic2021-07-07 15:16
Reporterrhertzog Assigned Torhertzog  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2019.2 
Fixed in Version2021.2 
Summary0005594: Application "Software & Updates" (software-properties-gtk) does not work in Kali
Description

Running 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

Relationships

has duplicate 0005697 closedrhertzog apt-apt-repository is failing with "could not find a distribution template for Kali/kali-rolling" 

Activities

rhertzog

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

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

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

k13875656919

k13875656919

2019-08-31 21:31

reporter   ~0010952

I try your method,but still not working. T_T

rhertzog

rhertzog

2019-12-12 08:22

administrator   ~0011663

Our change has been merged in Debian, but it's only available in python-apt > 1.9.0 which is in experimental and has backwards incompatible changes so I will no import it for now. I'll wait until it reaches unstable/testing.

rhertzog

rhertzog

2021-07-07 15:16

administrator   ~0014898

Latest python-apt is now available in kali so this should be fixed.

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
2019-08-31 21:31 k13875656919 Note Added: 0010952
2019-09-16 08:50 rhertzog Relationship added has duplicate 0005697
2019-12-12 08:22 rhertzog Note Added: 0011663
2019-12-12 08:58 rhertzog Priority high => low
2019-12-12 08:58 rhertzog Severity major => minor
2021-07-07 15:16 rhertzog Status assigned => resolved
2021-07-07 15:16 rhertzog Resolution open => fixed
2021-07-07 15:16 rhertzog Fixed in Version => 2021.2
2021-07-07 15:16 rhertzog Note Added: 0014898