deleted sources.list.d from apt directory
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
apt software-installation software-uninstall
 |Â
show 4 more comments
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?
apt software-installation software-uninstall
I have no idea what made you do that; but may I suggest not running a update command. Why did you consider yourapt-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 typesudo 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 - trynano
in place of leafpad (or gedit [if installed])
â guiverc
Feb 28 at 7:53
try usingsudo
instead ofgksudo
(andgksu
)
â guiverc
Feb 28 at 7:58
1
Yes it's working fine now. Thanks for the help. @guiverc
â user8817816
Feb 28 at 18:24
 |Â
show 4 more comments
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?
apt software-installation software-uninstall
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
apt software-installation software-uninstall
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 yourapt-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 typesudo 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 - trynano
in place of leafpad (or gedit [if installed])
â guiverc
Feb 28 at 7:53
try usingsudo
instead ofgksudo
(andgksu
)
â guiverc
Feb 28 at 7:58
1
Yes it's working fine now. Thanks for the help. @guiverc
â user8817816
Feb 28 at 18:24
 |Â
show 4 more comments
I have no idea what made you do that; but may I suggest not running a update command. Why did you consider yourapt-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 typesudo 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 - trynano
in place of leafpad (or gedit [if installed])
â guiverc
Feb 28 at 7:53
try usingsudo
instead ofgksudo
(andgksu
)
â 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
 |Â
show 4 more comments
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Feb 28 at 17:59
Agent-J
865
865
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 - trynano
in place of leafpad (or gedit [if installed])â guiverc
Feb 28 at 7:53
try using
sudo
instead ofgksudo
(andgksu
)â guiverc
Feb 28 at 7:58
1
Yes it's working fine now. Thanks for the help. @guiverc
â user8817816
Feb 28 at 18:24