You are not logged in.
Pages: 1
Topic closed
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
'due to errors like' is useless to us.
Please post the exact commands used and the entire output.
Offline
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.
Arch is home!
https://github.com/Docbroke
Offline
'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
Please post the exact commands used and the entire output.
Offline
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
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
slithery wrote:Please post the exact commands used and the entire output.
the command used is
root@amrock: pacman -S sudo
Offline
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
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
Please paste your full /var/log/pacman log (use a pastebin service)
Online
Again...
Please post the exact commands used and the entire output.
You haven't yet posted the entire output.
Offline
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
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
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
http://lmgtfy.com/?q=bash+output+redirection
How did you install archlinux?
Online
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
http://lmgtfy.com/?q=bash+output+redirection
How did you install archlinux?
thanks I did not know that.
Offline
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
Pages: 1
Topic closed