deleted sources.list.d from apt directory

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I ran the following command in order to reinstall my broken apt-get system:-



sudo rm -vf /etc/apt/sources.list.d/*.list && sudo rm -vf /etc/apt/sources.list 


I was following the steps from this answer(Always getting error during apt-get install) but gksu package is not installed.



What are the next steps to follow now?










share|improve this question























  • I have no idea what made you do that; but may I suggest not running a update command. Why did you consider your apt-get system broken? (possibly you were supposed to remove /var/lib/apt/lists/....)
    – guiverc
    Feb 28 at 7:37











  • @guiverc I was getting similar errors (as asked in this askubuntu.com/questions/652603/…) on every installation. But since apt-get was not working properly, gksu and leafpad packages are not completely installed. Is there anything I can do now?
    – user8817816
    Feb 28 at 7:49











  • given you were following that answer, I'd continue with those steps. leadpad is only an editor, if it were me I'd type sudo vim ... (ie. used the vim editor; by default only vi is installed so if you've not used vim, substitute vi/nano/.. or whatever editor you like in place of leafpad). Please put info such as following (answer..) in your question.. [why sudo and not gksudo - mostly its what my fingers type :) ] ps: if you don't know vi/vim - try nano in place of leafpad (or gedit [if installed])
    – guiverc
    Feb 28 at 7:53











  • try using sudo instead of gksudo (and gksu)
    – guiverc
    Feb 28 at 7:58







  • 1




    Yes it's working fine now. Thanks for the help. @guiverc
    – user8817816
    Feb 28 at 18:24














up vote
0
down vote

favorite












I ran the following command in order to reinstall my broken apt-get system:-



sudo rm -vf /etc/apt/sources.list.d/*.list && sudo rm -vf /etc/apt/sources.list 


I was following the steps from this answer(Always getting error during apt-get install) but gksu package is not installed.



What are the next steps to follow now?










share|improve this question























  • I have no idea what made you do that; but may I suggest not running a update command. Why did you consider your apt-get system broken? (possibly you were supposed to remove /var/lib/apt/lists/....)
    – guiverc
    Feb 28 at 7:37











  • @guiverc I was getting similar errors (as asked in this askubuntu.com/questions/652603/…) on every installation. But since apt-get was not working properly, gksu and leafpad packages are not completely installed. Is there anything I can do now?
    – user8817816
    Feb 28 at 7:49











  • given you were following that answer, I'd continue with those steps. leadpad is only an editor, if it were me I'd type sudo vim ... (ie. used the vim editor; by default only vi is installed so if you've not used vim, substitute vi/nano/.. or whatever editor you like in place of leafpad). Please put info such as following (answer..) in your question.. [why sudo and not gksudo - mostly its what my fingers type :) ] ps: if you don't know vi/vim - try nano in place of leafpad (or gedit [if installed])
    – guiverc
    Feb 28 at 7:53











  • try using sudo instead of gksudo (and gksu)
    – guiverc
    Feb 28 at 7:58







  • 1




    Yes it's working fine now. Thanks for the help. @guiverc
    – user8817816
    Feb 28 at 18:24












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I ran the following command in order to reinstall my broken apt-get system:-



sudo rm -vf /etc/apt/sources.list.d/*.list && sudo rm -vf /etc/apt/sources.list 


I was following the steps from this answer(Always getting error during apt-get install) but gksu package is not installed.



What are the next steps to follow now?










share|improve this question















I ran the following command in order to reinstall my broken apt-get system:-



sudo rm -vf /etc/apt/sources.list.d/*.list && sudo rm -vf /etc/apt/sources.list 


I was following the steps from this answer(Always getting error during apt-get install) but gksu package is not installed.



What are the next steps to follow now?







apt software-installation software-uninstall






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 28 at 7:57

























asked Feb 28 at 7:30









user8817816

206




206











  • I have no idea what made you do that; but may I suggest not running a update command. Why did you consider your apt-get system broken? (possibly you were supposed to remove /var/lib/apt/lists/....)
    – guiverc
    Feb 28 at 7:37











  • @guiverc I was getting similar errors (as asked in this askubuntu.com/questions/652603/…) on every installation. But since apt-get was not working properly, gksu and leafpad packages are not completely installed. Is there anything I can do now?
    – user8817816
    Feb 28 at 7:49











  • given you were following that answer, I'd continue with those steps. leadpad is only an editor, if it were me I'd type sudo vim ... (ie. used the vim editor; by default only vi is installed so if you've not used vim, substitute vi/nano/.. or whatever editor you like in place of leafpad). Please put info such as following (answer..) in your question.. [why sudo and not gksudo - mostly its what my fingers type :) ] ps: if you don't know vi/vim - try nano in place of leafpad (or gedit [if installed])
    – guiverc
    Feb 28 at 7:53











  • try using sudo instead of gksudo (and gksu)
    – guiverc
    Feb 28 at 7:58







  • 1




    Yes it's working fine now. Thanks for the help. @guiverc
    – user8817816
    Feb 28 at 18:24
















  • I have no idea what made you do that; but may I suggest not running a update command. Why did you consider your apt-get system broken? (possibly you were supposed to remove /var/lib/apt/lists/....)
    – guiverc
    Feb 28 at 7:37











  • @guiverc I was getting similar errors (as asked in this askubuntu.com/questions/652603/…) on every installation. But since apt-get was not working properly, gksu and leafpad packages are not completely installed. Is there anything I can do now?
    – user8817816
    Feb 28 at 7:49











  • given you were following that answer, I'd continue with those steps. leadpad is only an editor, if it were me I'd type sudo vim ... (ie. used the vim editor; by default only vi is installed so if you've not used vim, substitute vi/nano/.. or whatever editor you like in place of leafpad). Please put info such as following (answer..) in your question.. [why sudo and not gksudo - mostly its what my fingers type :) ] ps: if you don't know vi/vim - try nano in place of leafpad (or gedit [if installed])
    – guiverc
    Feb 28 at 7:53











  • try using sudo instead of gksudo (and gksu)
    – guiverc
    Feb 28 at 7:58







  • 1




    Yes it's working fine now. Thanks for the help. @guiverc
    – user8817816
    Feb 28 at 18:24















I have no idea what made you do that; but may I suggest not running a update command. Why did you consider your apt-get system broken? (possibly you were supposed to remove /var/lib/apt/lists/....)
– guiverc
Feb 28 at 7:37





I have no idea what made you do that; but may I suggest not running a update command. Why did you consider your apt-get system broken? (possibly you were supposed to remove /var/lib/apt/lists/....)
– guiverc
Feb 28 at 7:37













@guiverc I was getting similar errors (as asked in this askubuntu.com/questions/652603/…) on every installation. But since apt-get was not working properly, gksu and leafpad packages are not completely installed. Is there anything I can do now?
– user8817816
Feb 28 at 7:49





@guiverc I was getting similar errors (as asked in this askubuntu.com/questions/652603/…) on every installation. But since apt-get was not working properly, gksu and leafpad packages are not completely installed. Is there anything I can do now?
– user8817816
Feb 28 at 7:49













given you were following that answer, I'd continue with those steps. leadpad is only an editor, if it were me I'd type sudo vim ... (ie. used the vim editor; by default only vi is installed so if you've not used vim, substitute vi/nano/.. or whatever editor you like in place of leafpad). Please put info such as following (answer..) in your question.. [why sudo and not gksudo - mostly its what my fingers type :) ] ps: if you don't know vi/vim - try nano in place of leafpad (or gedit [if installed])
– guiverc
Feb 28 at 7:53





given you were following that answer, I'd continue with those steps. leadpad is only an editor, if it were me I'd type sudo vim ... (ie. used the vim editor; by default only vi is installed so if you've not used vim, substitute vi/nano/.. or whatever editor you like in place of leafpad). Please put info such as following (answer..) in your question.. [why sudo and not gksudo - mostly its what my fingers type :) ] ps: if you don't know vi/vim - try nano in place of leafpad (or gedit [if installed])
– guiverc
Feb 28 at 7:53













try using sudo instead of gksudo (and gksu)
– guiverc
Feb 28 at 7:58





try using sudo instead of gksudo (and gksu)
– guiverc
Feb 28 at 7:58





1




1




Yes it's working fine now. Thanks for the help. @guiverc
– user8817816
Feb 28 at 18:24




Yes it's working fine now. Thanks for the help. @guiverc
– user8817816
Feb 28 at 18:24










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










As @guiverc said, follow the answer you are following.
You can use sudo instead of gksudo and any text editor(vim/gedit/sublime) instead of leafpad to paste that code.
Just remember that due to use of #, askubuntu has converted a comment to bold line.
Just insert # in front of every bold line (otherwise that the list cannot be read will keep coming) and don't copy that last line =============. You are good to go.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1010537%2fdeleted-sources-list-d-from-apt-directory%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    As @guiverc said, follow the answer you are following.
    You can use sudo instead of gksudo and any text editor(vim/gedit/sublime) instead of leafpad to paste that code.
    Just remember that due to use of #, askubuntu has converted a comment to bold line.
    Just insert # in front of every bold line (otherwise that the list cannot be read will keep coming) and don't copy that last line =============. You are good to go.






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      As @guiverc said, follow the answer you are following.
      You can use sudo instead of gksudo and any text editor(vim/gedit/sublime) instead of leafpad to paste that code.
      Just remember that due to use of #, askubuntu has converted a comment to bold line.
      Just insert # in front of every bold line (otherwise that the list cannot be read will keep coming) and don't copy that last line =============. You are good to go.






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        As @guiverc said, follow the answer you are following.
        You can use sudo instead of gksudo and any text editor(vim/gedit/sublime) instead of leafpad to paste that code.
        Just remember that due to use of #, askubuntu has converted a comment to bold line.
        Just insert # in front of every bold line (otherwise that the list cannot be read will keep coming) and don't copy that last line =============. You are good to go.






        share|improve this answer












        As @guiverc said, follow the answer you are following.
        You can use sudo instead of gksudo and any text editor(vim/gedit/sublime) instead of leafpad to paste that code.
        Just remember that due to use of #, askubuntu has converted a comment to bold line.
        Just insert # in front of every bold line (otherwise that the list cannot be read will keep coming) and don't copy that last line =============. You are good to go.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 28 at 17:59









        Agent-J

        865




        865



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1010537%2fdeleted-sources-list-d-from-apt-directory%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error