Results 1 to 6 of 6

Thread: Adding new PPAs in Kali-Rolling 2017-2

  1. #1

    Adding new PPAs in Kali-Rolling 2017-2

    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.

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    sudo apt-get install python3-software-properties
    sudo apt-get install apt-file
    sudo apt-file update
    gksudo gedit /usr/sbin/add-apt-repository


    -----------------------------------------------------------------------------------------------------------------

    #! /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/morphis/anbox-support/ubuntu artful main" >> /etc/apt/sources.list
    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

    ----------------------------------------------------------------------------------------------------------------------------

    cd /usr/sbin
    sudo ./add-apt-repository ppa:user/ppa-name
    Last edited by _defalt; 2017-09-23 at 06:48.

  3. #3
    Hey, thanks a lot for the quick response. Also, I was able at least to solve my KODI problem thusly:

    __________________________________________________ ____________________________
    /etc/apt/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 https://www.deb-multimedia.org testing main non-free
    __________________________________________________ ____________________________

    I'll try modding the ppa script as indicated, still having some problems with Virtualbox BTW.

  4. #4
    Also, how do I mark the thread "solved"?

  5. #5
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by Bl4ck_P4l4d1n View Post
    Also, how do I mark the thread "solved"?
    Response is enough.

  6. #6
    Join Date
    2018-Apr
    Location
    The kitchen where the virus soup was cooked
    Posts
    1
    Quote Originally Posted by _defalt View Post
    sudo apt-get install python3-software-properties
    sudo apt-get install apt-file
    sudo apt-file update
    gksudo gedit /usr/sbin/add-apt-repository


    -----------------------------------------------------------------------------------------------------------------

    #! /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/morphis/anbox-support/ubuntu artful main" >> /etc/apt/sources.list
    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

    ----------------------------------------------------------------------------------------------------------------------------

    cd /usr/sbin
    sudo ./add-apt-repository ppa:user/ppa-name

    cd /usr/sbin
    sudo chmod 777 add-apt-repositiory
    sudo ./add-apt-repository ppa:user/ppa-name

    Thanks for the fix.

Similar Threads

  1. Successfull install of 2017.2 but no boot after adding HDD's
    By PT_Bourne in forum General Archive
    Replies: 0
    Last Post: 2017-10-04, 09:14
  2. Adding PPA repository in kali linux 2017.1
    By abhijeet in forum General Archive
    Replies: 5
    Last Post: 2017-08-07, 11:31
  3. Replies: 1
    Last Post: 2016-08-18, 14:10
  4. Adding Firmware to Kali-Rolling initrd.gz
    By JasonWood in forum Building Archive
    Replies: 1
    Last Post: 2016-04-15, 21:16

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •