apt-add-repository dosen't work in kali linux












0















I am running kali linux and when I try to use command sudo add-apt-repository ppa:alex-wv/pulseaudio-equalizer-ppa, it gives me this code:



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


I need help to make it work.










share|improve this question




















  • 1





    See askubuntu.com/questions/49040/…

    – xenoid
    Sep 4 '17 at 20:35
















0















I am running kali linux and when I try to use command sudo add-apt-repository ppa:alex-wv/pulseaudio-equalizer-ppa, it gives me this code:



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


I need help to make it work.










share|improve this question




















  • 1





    See askubuntu.com/questions/49040/…

    – xenoid
    Sep 4 '17 at 20:35














0












0








0








I am running kali linux and when I try to use command sudo add-apt-repository ppa:alex-wv/pulseaudio-equalizer-ppa, it gives me this code:



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


I need help to make it work.










share|improve this question
















I am running kali linux and when I try to use command sudo add-apt-repository ppa:alex-wv/pulseaudio-equalizer-ppa, it gives me this code:



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


I need help to make it work.







linux kali-linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 19 '17 at 20:01









Andre Figueiredo

17317




17317










asked Sep 4 '17 at 19:10









Stefan The DogStefan The Dog

111




111








  • 1





    See askubuntu.com/questions/49040/…

    – xenoid
    Sep 4 '17 at 20:35














  • 1





    See askubuntu.com/questions/49040/…

    – xenoid
    Sep 4 '17 at 20:35








1




1





See askubuntu.com/questions/49040/…

– xenoid
Sep 4 '17 at 20:35





See askubuntu.com/questions/49040/…

– xenoid
Sep 4 '17 at 20:35










1 Answer
1






active

oldest

votes


















0














This is adapted and updated from this answer
by user “Interesting...”:






Step 1



To add repositories on most (if not all) Debian-derivative systems, the main way to go about doing this is to edit your sources.list file, found in /etc/apt/sources.list. To do this, use any editor of your choice to open the file.



It should look like this if you have never modified the sources.list file, and Kali was installed correctly:



deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free


Source: https://docs.kali.org/general-use/kali-linux-sources-list-repositories



Now you can add any repositories you like by adding the repository address to the next line in your sources.list file and saving. Once saved, move on to Step 2.



Step 2



The next step is to clean out all cached and non-wiped files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. To do this, run the command apt-get clean. Next, update your package index files (so you can install packages from the repository you added) by running apt-get update. Upgrade all installed packages so you can download dependencies and resolve out-conflicts by running apt-get upgrade. The new repository you added may have some core packages, or system applications that need to be installed, so do so by using a smart dependency conflict resolution update with apt-get dist-upgrade. You should now be ready to go.



Warnings and Other Information



Generally for Kali (and usually for Kali only) it is a very bad idea to add repositories to your system, because they might break your Kali install. Because one of the main core functionalities of Kali is all the packages that come preinstalled, in a system manner of speaking, it is very unstable. If you install one package that needs certain dependencies or updates certain dependencies to so it is not backwards compatible, then you will essentially break some (or all) of the packages preinstalled in Kali, defeating the purpose of having Kali at all. Because of this mentality, Kali has grown to become very fragile. While Kali works perfectly well out of the box or with packages that you install from the official repositories, adding repositories may potentially break your system. According to the official Kali docs,




Any additional repositories added to the Kali sources.list file will
most likely BREAK YOUR KALI LINUX INSTALL.




meaning that you should generally stay away from unofficial repositories while using Kali. In fact, according to the Kali docs,




The single most common causes of a broken Kali Linux installation are
following unofficial advice, and particularly arbitrarily populating
the system’s sources.list file with unofficial repositories.




So, if you are following an internet tutorial or the like, be warned that adding unofficial repositories to you sources.list is the most common cause of a broken Kali system.



Final Notes



While this methods works on Debian Derivative GNU/Linux systems, it is advisable to stick with the official Kali Repositories for the most part. If you want to, certainly go ahead and add the repositories, but it is important to know what the repositories provide, and what, if any, packages will be updated when initiating apt-get upgrade, because they may break your other packages.



If you're trying to install a certain program, I'd search for Unix-build to build on your own from source.



For more information on Kali Repositories see here:




  • http://docs.kali.org/general-use/kali-linux-sources-list-repositories

  • https://wiki.debian.org/SourcesList


  • http://kaligr3y.blogspot.ie/2013/04/how-to-add-full-repository-in-kali-linux.html








share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1247343%2fapt-add-repository-dosent-work-in-kali-linux%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This is adapted and updated from this answer
    by user “Interesting...”:






    Step 1



    To add repositories on most (if not all) Debian-derivative systems, the main way to go about doing this is to edit your sources.list file, found in /etc/apt/sources.list. To do this, use any editor of your choice to open the file.



    It should look like this if you have never modified the sources.list file, and Kali was installed correctly:



    deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access, uncomment the following line
    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free


    Source: https://docs.kali.org/general-use/kali-linux-sources-list-repositories



    Now you can add any repositories you like by adding the repository address to the next line in your sources.list file and saving. Once saved, move on to Step 2.



    Step 2



    The next step is to clean out all cached and non-wiped files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. To do this, run the command apt-get clean. Next, update your package index files (so you can install packages from the repository you added) by running apt-get update. Upgrade all installed packages so you can download dependencies and resolve out-conflicts by running apt-get upgrade. The new repository you added may have some core packages, or system applications that need to be installed, so do so by using a smart dependency conflict resolution update with apt-get dist-upgrade. You should now be ready to go.



    Warnings and Other Information



    Generally for Kali (and usually for Kali only) it is a very bad idea to add repositories to your system, because they might break your Kali install. Because one of the main core functionalities of Kali is all the packages that come preinstalled, in a system manner of speaking, it is very unstable. If you install one package that needs certain dependencies or updates certain dependencies to so it is not backwards compatible, then you will essentially break some (or all) of the packages preinstalled in Kali, defeating the purpose of having Kali at all. Because of this mentality, Kali has grown to become very fragile. While Kali works perfectly well out of the box or with packages that you install from the official repositories, adding repositories may potentially break your system. According to the official Kali docs,




    Any additional repositories added to the Kali sources.list file will
    most likely BREAK YOUR KALI LINUX INSTALL.




    meaning that you should generally stay away from unofficial repositories while using Kali. In fact, according to the Kali docs,




    The single most common causes of a broken Kali Linux installation are
    following unofficial advice, and particularly arbitrarily populating
    the system’s sources.list file with unofficial repositories.




    So, if you are following an internet tutorial or the like, be warned that adding unofficial repositories to you sources.list is the most common cause of a broken Kali system.



    Final Notes



    While this methods works on Debian Derivative GNU/Linux systems, it is advisable to stick with the official Kali Repositories for the most part. If you want to, certainly go ahead and add the repositories, but it is important to know what the repositories provide, and what, if any, packages will be updated when initiating apt-get upgrade, because they may break your other packages.



    If you're trying to install a certain program, I'd search for Unix-build to build on your own from source.



    For more information on Kali Repositories see here:




    • http://docs.kali.org/general-use/kali-linux-sources-list-repositories

    • https://wiki.debian.org/SourcesList


    • http://kaligr3y.blogspot.ie/2013/04/how-to-add-full-repository-in-kali-linux.html








    share|improve this answer






























      0














      This is adapted and updated from this answer
      by user “Interesting...”:






      Step 1



      To add repositories on most (if not all) Debian-derivative systems, the main way to go about doing this is to edit your sources.list file, found in /etc/apt/sources.list. To do this, use any editor of your choice to open the file.



      It should look like this if you have never modified the sources.list file, and Kali was installed correctly:



      deb http://http.kali.org/kali kali-rolling main contrib non-free
      # For source package access, uncomment the following line
      # deb-src http://http.kali.org/kali kali-rolling main contrib non-free


      Source: https://docs.kali.org/general-use/kali-linux-sources-list-repositories



      Now you can add any repositories you like by adding the repository address to the next line in your sources.list file and saving. Once saved, move on to Step 2.



      Step 2



      The next step is to clean out all cached and non-wiped files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. To do this, run the command apt-get clean. Next, update your package index files (so you can install packages from the repository you added) by running apt-get update. Upgrade all installed packages so you can download dependencies and resolve out-conflicts by running apt-get upgrade. The new repository you added may have some core packages, or system applications that need to be installed, so do so by using a smart dependency conflict resolution update with apt-get dist-upgrade. You should now be ready to go.



      Warnings and Other Information



      Generally for Kali (and usually for Kali only) it is a very bad idea to add repositories to your system, because they might break your Kali install. Because one of the main core functionalities of Kali is all the packages that come preinstalled, in a system manner of speaking, it is very unstable. If you install one package that needs certain dependencies or updates certain dependencies to so it is not backwards compatible, then you will essentially break some (or all) of the packages preinstalled in Kali, defeating the purpose of having Kali at all. Because of this mentality, Kali has grown to become very fragile. While Kali works perfectly well out of the box or with packages that you install from the official repositories, adding repositories may potentially break your system. According to the official Kali docs,




      Any additional repositories added to the Kali sources.list file will
      most likely BREAK YOUR KALI LINUX INSTALL.




      meaning that you should generally stay away from unofficial repositories while using Kali. In fact, according to the Kali docs,




      The single most common causes of a broken Kali Linux installation are
      following unofficial advice, and particularly arbitrarily populating
      the system’s sources.list file with unofficial repositories.




      So, if you are following an internet tutorial or the like, be warned that adding unofficial repositories to you sources.list is the most common cause of a broken Kali system.



      Final Notes



      While this methods works on Debian Derivative GNU/Linux systems, it is advisable to stick with the official Kali Repositories for the most part. If you want to, certainly go ahead and add the repositories, but it is important to know what the repositories provide, and what, if any, packages will be updated when initiating apt-get upgrade, because they may break your other packages.



      If you're trying to install a certain program, I'd search for Unix-build to build on your own from source.



      For more information on Kali Repositories see here:




      • http://docs.kali.org/general-use/kali-linux-sources-list-repositories

      • https://wiki.debian.org/SourcesList


      • http://kaligr3y.blogspot.ie/2013/04/how-to-add-full-repository-in-kali-linux.html








      share|improve this answer




























        0












        0








        0







        This is adapted and updated from this answer
        by user “Interesting...”:






        Step 1



        To add repositories on most (if not all) Debian-derivative systems, the main way to go about doing this is to edit your sources.list file, found in /etc/apt/sources.list. To do this, use any editor of your choice to open the file.



        It should look like this if you have never modified the sources.list file, and Kali was installed correctly:



        deb http://http.kali.org/kali kali-rolling main contrib non-free
        # For source package access, uncomment the following line
        # deb-src http://http.kali.org/kali kali-rolling main contrib non-free


        Source: https://docs.kali.org/general-use/kali-linux-sources-list-repositories



        Now you can add any repositories you like by adding the repository address to the next line in your sources.list file and saving. Once saved, move on to Step 2.



        Step 2



        The next step is to clean out all cached and non-wiped files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. To do this, run the command apt-get clean. Next, update your package index files (so you can install packages from the repository you added) by running apt-get update. Upgrade all installed packages so you can download dependencies and resolve out-conflicts by running apt-get upgrade. The new repository you added may have some core packages, or system applications that need to be installed, so do so by using a smart dependency conflict resolution update with apt-get dist-upgrade. You should now be ready to go.



        Warnings and Other Information



        Generally for Kali (and usually for Kali only) it is a very bad idea to add repositories to your system, because they might break your Kali install. Because one of the main core functionalities of Kali is all the packages that come preinstalled, in a system manner of speaking, it is very unstable. If you install one package that needs certain dependencies or updates certain dependencies to so it is not backwards compatible, then you will essentially break some (or all) of the packages preinstalled in Kali, defeating the purpose of having Kali at all. Because of this mentality, Kali has grown to become very fragile. While Kali works perfectly well out of the box or with packages that you install from the official repositories, adding repositories may potentially break your system. According to the official Kali docs,




        Any additional repositories added to the Kali sources.list file will
        most likely BREAK YOUR KALI LINUX INSTALL.




        meaning that you should generally stay away from unofficial repositories while using Kali. In fact, according to the Kali docs,




        The single most common causes of a broken Kali Linux installation are
        following unofficial advice, and particularly arbitrarily populating
        the system’s sources.list file with unofficial repositories.




        So, if you are following an internet tutorial or the like, be warned that adding unofficial repositories to you sources.list is the most common cause of a broken Kali system.



        Final Notes



        While this methods works on Debian Derivative GNU/Linux systems, it is advisable to stick with the official Kali Repositories for the most part. If you want to, certainly go ahead and add the repositories, but it is important to know what the repositories provide, and what, if any, packages will be updated when initiating apt-get upgrade, because they may break your other packages.



        If you're trying to install a certain program, I'd search for Unix-build to build on your own from source.



        For more information on Kali Repositories see here:




        • http://docs.kali.org/general-use/kali-linux-sources-list-repositories

        • https://wiki.debian.org/SourcesList


        • http://kaligr3y.blogspot.ie/2013/04/how-to-add-full-repository-in-kali-linux.html








        share|improve this answer















        This is adapted and updated from this answer
        by user “Interesting...”:






        Step 1



        To add repositories on most (if not all) Debian-derivative systems, the main way to go about doing this is to edit your sources.list file, found in /etc/apt/sources.list. To do this, use any editor of your choice to open the file.



        It should look like this if you have never modified the sources.list file, and Kali was installed correctly:



        deb http://http.kali.org/kali kali-rolling main contrib non-free
        # For source package access, uncomment the following line
        # deb-src http://http.kali.org/kali kali-rolling main contrib non-free


        Source: https://docs.kali.org/general-use/kali-linux-sources-list-repositories



        Now you can add any repositories you like by adding the repository address to the next line in your sources.list file and saving. Once saved, move on to Step 2.



        Step 2



        The next step is to clean out all cached and non-wiped files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. To do this, run the command apt-get clean. Next, update your package index files (so you can install packages from the repository you added) by running apt-get update. Upgrade all installed packages so you can download dependencies and resolve out-conflicts by running apt-get upgrade. The new repository you added may have some core packages, or system applications that need to be installed, so do so by using a smart dependency conflict resolution update with apt-get dist-upgrade. You should now be ready to go.



        Warnings and Other Information



        Generally for Kali (and usually for Kali only) it is a very bad idea to add repositories to your system, because they might break your Kali install. Because one of the main core functionalities of Kali is all the packages that come preinstalled, in a system manner of speaking, it is very unstable. If you install one package that needs certain dependencies or updates certain dependencies to so it is not backwards compatible, then you will essentially break some (or all) of the packages preinstalled in Kali, defeating the purpose of having Kali at all. Because of this mentality, Kali has grown to become very fragile. While Kali works perfectly well out of the box or with packages that you install from the official repositories, adding repositories may potentially break your system. According to the official Kali docs,




        Any additional repositories added to the Kali sources.list file will
        most likely BREAK YOUR KALI LINUX INSTALL.




        meaning that you should generally stay away from unofficial repositories while using Kali. In fact, according to the Kali docs,




        The single most common causes of a broken Kali Linux installation are
        following unofficial advice, and particularly arbitrarily populating
        the system’s sources.list file with unofficial repositories.




        So, if you are following an internet tutorial or the like, be warned that adding unofficial repositories to you sources.list is the most common cause of a broken Kali system.



        Final Notes



        While this methods works on Debian Derivative GNU/Linux systems, it is advisable to stick with the official Kali Repositories for the most part. If you want to, certainly go ahead and add the repositories, but it is important to know what the repositories provide, and what, if any, packages will be updated when initiating apt-get upgrade, because they may break your other packages.



        If you're trying to install a certain program, I'd search for Unix-build to build on your own from source.



        For more information on Kali Repositories see here:




        • http://docs.kali.org/general-use/kali-linux-sources-list-repositories

        • https://wiki.debian.org/SourcesList


        • http://kaligr3y.blogspot.ie/2013/04/how-to-add-full-repository-in-kali-linux.html









        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 18 '18 at 5:00









        G-Man

        5,607112357




        5,607112357










        answered Jan 18 '18 at 4:21









        Lee WarnockLee Warnock

        1013




        1013






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1247343%2fapt-add-repository-dosent-work-in-kali-linux%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕