You are not logged in.

#1 2017-09-21 10:16:44

amrith
Member
Registered: 2017-09-04
Posts: 21

[SOLVED] removed sudo and now cannot reinstall sudo again

i removed sudo and tried reinstalling previous version from cache but now i cannot install any version of sudo due to errors like
file already exists including the sudoer files(and all files related to sudo).

should i remove all those files and install sudo(will that break my system?)

Last edited by amrith (2017-09-21 16:14:00)

Offline

#2 2017-09-21 10:27:16

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

'due to errors like' is useless to us.

Please post the exact commands used and the entire output.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-09-21 11:02:22

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

How did you remove sudo, by deleting /usr/bin/sudo ?? If so it explains all residual debris you are encountering now. If only errors you are now getting are due to remaining files, it probably needs use of --force, howerver before doing anything more radical please post all the errors you are getting.

Offline

#4 2017-09-21 15:21:31

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

slithery wrote:

'due to errors like' is useless to us.

Please post the exact commands used and the entire output.

sorry  had to figure out how to dump tty to file

sudo: /usr/share/locale/hr/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/hu/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/hu/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/it/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/it/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/ja/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/ja/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/ko/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/ko/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/lt/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/nb/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/nb/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/nl/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/nl/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/nn/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/pl/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/pl/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/pt_BR/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/pt_BR/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/ru/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/ru/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/sk/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/sk/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/sl/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/sl/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/sr/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/sr/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/sv/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/sv/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/tr/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/tr/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/uk/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/uk/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/vi/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/vi/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/locale/zh_CN/LC_MESSAGES/sudo.mo exists in filesystem
sudo: /usr/share/locale/zh_CN/LC_MESSAGES/sudoers.mo exists in filesystem
sudo: /usr/share/man/man5/sudo.conf.5.gz exists in filesystem
sudo: /usr/share/man/man5/sudoers.5.gz exists in filesystem
sudo: /usr/share/man/man5/sudoers.ldap.5.gz exists in filesystem
sudo: /usr/share/man/man8/sudo.8.gz exists in filesystem
sudo: /usr/share/man/man8/sudo_plugin.8.gz exists in filesystem
sudo: /usr/share/man/man8/sudoedit.8.gz exists in filesystem
sudo: /usr/share/man/man8/sudoreplay.8.gz exists in filesystem
sudo: /usr/share/man/man8/visudo.8.gz exists in filesystem
Errors occurred, no packages were upgraded.
[root@amrock ~]# setterm -dump 2 -file screen.dmp

Last edited by amrith (2017-09-21 15:28:30)

Offline

#5 2017-09-21 15:27:05

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

slithery wrote:

Please post the exact commands used and the entire output.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-09-21 15:27:21

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Docbroke wrote:

How did you remove sudo, by deleting /usr/bin/sudo ?? If so it explains all residual debris you are encountering now. If only errors you are now getting are due to remaining files, it probably needs use of --force, howerver before doing anything more radical please post all the errors you are getting.

i did not remove sudo by deleting /usr/bin/sudo
but used pacman -R sudo

Offline

#7 2017-09-21 15:30:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Amrith, you've now had two threads on this issue closed.  I'm not sure this one will fair any better.  The only change now is you did something odd to compound your problem (does that really justify a new thread?)

You've also been warned about vampirism.  Here you were just asked several questions, and you provided half of a answer to one of them*.  If you want help with this problem, you need to make an effort to provide answers to questions and read the troubleshooting sections of the wiki (e.g., on the pacman page) rather than waiting for others here to lead you through the steps there one by one.

*edit: this was cross posted with the above.  It seems you followed up with more answers - you can address more than one person in the same post though (or edit a post to add more information).  We still can't see the full command and output though.

Last edited by Trilby (2017-09-21 15:31:27)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2017-09-21 15:30:30

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

slithery wrote:
slithery wrote:

Please post the exact commands used and the entire output.

the command used is

root@amrock: pacman -S sudo

Offline

#9 2017-09-21 15:34:45

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Trilby wrote:

Amrith, you've now had two threads on this issue closed.  I'm not sure this one will fair any better.  The only change now is you did something odd to compound your problem (does that really justify a new thread?)

You've also been warned about vampirism.  Here you were just asked several questions, and you provided half of a answer to one of them*.  If you want help with this problem, you need to make an effort to provide answers to questions and read the troubleshooting sections of the wiki (e.g., on the pacman page) rather than waiting for others here to lead you through the steps there one by one.

*edit: this was cross posted with the above.  It seems you followed up with more answers - you can address more than one person in the same post though (or edit a post to add more information).  We still can't see the full command and output though.

i understand but without sudo i cannot do anything i just want to know if i need to remove all the residual files of sudo if so how.
i did read wiki but knowledge comes from practice not just reading wiki.

Offline

#10 2017-09-21 15:37:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Sudo is simply a convenience tool - there isn't anything you can do with sudo that you can't otherwise.  You can log in as root, or use `su`.

As for reading the wiki, I'm referring to the pacman page which covers exactly this issue and suggests diagnostic steps.  You may not know how to fix the problem simply by reading this but it will tell you want information your would-be helpers would want to know: e.g., does any package own those files.  Reading that section and providing that information would make the troubleshooting process go much faster.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2017-09-21 15:38:52

seth
Member
Registered: 2012-09-03
Posts: 50,011

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Please paste your full /var/log/pacman log (use a pastebin service)

Online

#12 2017-09-21 15:40:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Again...

slithery wrote:

Please post the exact commands used and the entire output.

You haven't yet posted the entire output.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#13 2017-09-21 15:45:29

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Trilby wrote:

Sudo is simply a convenience tool - there isn't anything you can do with sudo that you can't otherwise.  You can log in as root, or use `su`.

As for reading the wiki, I'm referring to the pacman page which covers exactly this issue and suggests diagnostic steps.  You may not know how to fix the problem simply by reading this but it will tell you want information your would-be helpers would want to know: e.g., does any package own those files.  Reading that section and providing that information would make the troubleshooting process go much faster.


yes i read that and it said to rename files causing the conflict and then install or update which ultimately removes the files.

so again my question is it dangerous to remove the files that is mentioned in the output?
can i remove all those files and then reinstall sudo?
thanks i didnt know 'su' could be used too to get root


thanks again for replying

Offline

#14 2017-09-21 15:51:18

seth
Member
Registered: 2012-09-03
Posts: 50,011

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

It's no "dangerous" but you somehow got yourself into some shit and this is only a symptom.
Also your explanations don't match the status quo - if you had "pacman -R sudo" those files should not exist in your filesystem anymore.
Feel free to remove them, but when you're back with the next symptom of your core problem - right along with your evasive answers, prepare to be advised to re-install arch from scratch (and do it correctly) or use ubuntu or some such.

Online

#15 2017-09-21 15:51:36

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

slithery wrote:

Again...

slithery wrote:

Please post the exact commands used and the entire output.

You haven't yet posted the entire output.

i am using tty terminal and the output is more than one screen so if i use

[root@amrock ~]# setterm -dump 2 -file screen.dmp

i can only get those lines i posted.

Offline

#16 2017-09-21 15:56:02

seth
Member
Registered: 2012-09-03
Posts: 50,011

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

http://lmgtfy.com/?q=bash+output+redirection

How did you install archlinux?

Online

#17 2017-09-21 16:03:38

cirkit
Member
From: San Francisco
Registered: 2008-01-29
Posts: 80
Website

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

You should cat the log contents and pipe that to a service like ptpb, then give us the url.

Offline

#18 2017-09-21 16:08:44

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

Docbroke wrote:

How did you remove sudo, by deleting /usr/bin/sudo ?? If so it explains all residual debris you are encountering now. If only errors you are now getting are due to remaining files, it probably needs use of --force, howerver before doing anything more radical please post all the errors you are getting.


used

 root@amrock:packman -S sudo --force 

and installed latest sudo

thanks sudo is now working

Offline

#19 2017-09-21 16:10:51

amrith
Member
Registered: 2017-09-04
Posts: 21

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

seth wrote:

http://lmgtfy.com/?q=bash+output+redirection

How did you install archlinux?


thanks I did not know that.

Offline

#20 2017-09-21 17:04:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED] removed sudo and now cannot reinstall sudo again

I think we are done here.  I had left this open to see what happened.
As it is solved, yet the OP remains evasive, I shall now close this thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB