Please don't be upset that I'm posting this here. I'm at my wits' end, searching Google and other forums to no avail. Everything I have tried hasn't worked. And sorry for all the minus sign lines, I forgot how to do that cute little code box and figured it was better than nothing.
Adding third party PPAs for tools seems to be impossible to do and have work. I've tried adding a manual add-apt-repository in /usr/sbin/ and tried writing in every conceivable Ubuntu distro to no avail. The PPA I'm actually trying to add is one for KODI. (I always like a little something playing while I work)
Previous revisions worked fine with this. I was able to apt-get install software-properties-common, then stick in the PPA, then grab KODI with no issues. Now in this revision, all I get are errors. If I don't take a wild shot in the dark and create an add-apt-repository script, after double-checking that software-properties-common is up to date, I get this:
-----------------------------------------------------------------------------------------------------------------------------------
root@kali:~# apt-add-repository ppa:team-xbmc/ppa
Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
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/kali-rolling
---------------------------------------------------------------------------------------------------------------------------------------
-or-
---------------------------------------------------------------------------------------------------------------------------------------
root@kali:~# add-apt-repository ppa:team-xbmc/ppa
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
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/kali-rolling
------------------------------------------------------------------------------------------------------------------
Here is a sample script I found elsewhere to create a new /usr/sbin/add-apt-repository that got me as far as the "dependencies? You've got to be kidding!" stage:
------------------------------------------------------------------------------------------------------------------
#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
ppa_name=`echo "$1" | cut -d":" -f2 -s`
if [ -z "$ppa_name" ]
then
echo "PPA name not found"
echo "Utility to add PPA repositories in your debian machine"
echo "$0 ppa:user/ppa-name"
else
echo "$ppa_name"
echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list
#(HERE tried changing the distro name to EVERYTHING I could think of)
apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
rm -rf /tmp/${NAME}_apt_add_key.txt
fi
else
echo "Utility to add PPA repositories in your debian machine"
echo "$0 ppa:user/ppa-name"
fi
----------------------------------------------------------------------------------------------------------------------------
And then I can do this:
/usr/sbin/add-apt-repository ppa:team-xbmc/ppa
team-xbmc/ppa
Executing: /tmp/apt-key-gpghome.L3w0qDbzYc/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 6D975C4791E7EE5E
key 6D975C4791E7EE5E:
2 signatures not checked due to missing keys
gpg: key 6D975C4791E7EE5E: public key "Launchpad PPA for XBMC for Linux" imported
gpg: Total number processed: 1
gpg: imported: 1
----------------------------------------------------------------------------------------------------------------------------
But then,
----------------------------------------------------------------------------------------------------------------------------
root@kali:~# apt-get update
Get:2 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial InRelease [17.5 kB]
Hit:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling InRelease
Get:3 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial/main amd64 Packages [20.0 kB]
Get:4 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial/main Translation-en [5,796 B]
Fetched 43.3 kB in 1s (27.2 kB/s)
Reading package lists... Done
root@kali:~# apt-get install kodi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
kodi : Depends: kodi-bin (>= 2:17.4+git20170822.1009-final-0xenial) but it is not going to be installed
Depends: kodi-bin (< 2:17.4+git20170822.1009-final-0xenial.1~) but it is not going to be installed
Depends: libass5 but it is not installable or
libass4 but it is not installable
E: Unable to correct problems, you have held broken packages.
-----------------------------------------------------------------------------------------------------------------------------
i have tried replacing oneiric with every distro I can think of, and still no dice.
Sources.list:
-----------------------------------------------------------------------------------------------------------------------------
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
-----------------------------------------------------------------------------------------------------------------------------
Synaptic doesn't open a repositories tab either, so I don't know how to check to see if there are other repos I can enable.
I'm not asking you to support Kodi. I am asking for help in getting Kali to properly add a PPA. It's not a productive tool for me if I can't work the way I'm used to.