Results 1 to 3 of 3

Thread: Fail to add-apt-repo

  1. #1
    Join Date
    2013-Mar
    Location
    Catalonia (Spain)
    Posts
    2

    Fail to add-apt-repo

    Hi there!

    I'm getting an error from pyhton when i want to add an apt-repository.

    I have already installed the package python-software-properties, but this is my terminal output:

    Code:
    root@kali:~# add-apt-repository ppa:danielrichter2007/grub-customizer
    You are about to add the following PPA to your system:
     This PPA contains the latest release of Grub Customizer.
    
    sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    sudo apt-get update
    sudo apt-get install grub-customizer
     More info: https://launchpad.net/~danielrichter2007/+archive/grub-customizer
    Press [ENTER] to continue or ctrl-c to cancel adding it
    
    Traceback (most recent call last):
      File "/usr/bin/add-apt-repository", line 160, in <module>
        sp = SoftwareProperties(options=options)
      File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
        self.reload_sourceslist()
      File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
        self.distro.get_sources(self.sourceslist)    
      File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
        raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
    Anyone knows anyway to solve this? Thanks in advance!

  2. #2
    Join Date
    2013-Apr
    Posts
    1

    Cool

    Quote Originally Posted by kalinux View Post
    Hi there!

    I'm getting an error from pyhton when i want to add an apt-repository.

    I have already installed the package python-software-properties, but this is my terminal output:

    Code:
    root@kali:~# add-apt-repository ppa:danielrichter2007/grub-customizer
    You are about to add the following PPA to your system:
     This PPA contains the latest release of Grub Customizer.
    
    sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    sudo apt-get update
    sudo apt-get install grub-customizer
     More info: https://launchpad.net/~danielrichter2007/+archive/grub-customizer
    Press [ENTER] to continue or ctrl-c to cancel adding it
    
    Traceback (most recent call last):
      File "/usr/bin/add-apt-repository", line 160, in <module>
        sp = SoftwareProperties(options=options)
      File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
        self.reload_sourceslist()
      File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
        self.distro.get_sources(self.sourceslist)    
      File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
        raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
    Anyone knows anyway to solve this? Thanks in advance!
    try this, and forgeret the other solutions

    #create add-apt-repository
    wget http://blog.anantshri.info/content/u...ository.sh.txt
    cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository
    chmod o+x /usr/sbin/add-apt-repository
    chown root:root /usr/sbin/add-apt-repository

    enjoy it!

  3. #3
    Join Date
    2013-Mar
    Posts
    269
    I ended up building grubcustomizer from source, you may want to try that. Great program
    Fact, Science and the Pursuit of Knowledge. Working to secure your networks from threats; Outside and Within.

Similar Threads

  1. Non Kali Repo
    By Sagaryal in forum General Archive
    Replies: 2
    Last Post: 2017-03-27, 17:53
  2. Adding repo?
    By combat in forum General Archive
    Replies: 3
    Last Post: 2016-01-21, 12:50
  3. libnl-dev missing from repo
    By dataphreak in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2015-09-29, 06:21
  4. Metasploit - Updated repo?
    By silkwire in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2015-08-11, 15:41
  5. Missing APT Repo's? [FIX]
    By nykon in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2013-03-14, 15:50

Posting Permissions

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