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. 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. Python 3.8.5 on repo
    By chepakwak in forum General Archive
    Replies: 0
    Last Post: 2023-03-14, 10:32
  2. repo missunderstanding..
    By bdrago in forum General Archive
    Replies: 0
    Last Post: 2020-10-04, 00:30
  3. Non Kali Repo
    By Sagaryal in forum General Archive
    Replies: 2
    Last Post: 2017-03-27, 17:53

Posting Permissions

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