You are not logged in.

#1 2014-09-30 08:52:58

thaemes
Member
Registered: 2014-09-30
Posts: 4

[SOLVED] Sudo not working: zsh: exec format error: sudo

Yesterday I noticed that sudo isn't working anymore. I don't know what caused this, but it might be the fact that my power dropped while running a system update a day earlier. In the pacman log file, the update ends like this:

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$ 

However, as said I don't know if this caused the problem, the update didn't include sudo.

When I try to use sudo or also visudo in bash, it just doesn't do anything and gives me a new line. When I use zsh I get:

zsh: exec format error: sudo

I am able to start a root shell with "su", and the rest of the system seems fine, except that pulseaudio doesn't work anymore (but I'll try to fix one problem at a time). When I try to reinstall sudo I get an error telling me that there are conflicting files and that some files are already in place. Any ideas as to how to solve this?

Last edited by thaemes (2014-09-30 09:35:18)

Offline

#2 2014-09-30 09:07:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Sudo not working: zsh: exec format error: sudo


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-09-30 09:21:26

thaemes
Member
Registered: 2014-09-30
Posts: 4

Re: [SOLVED] Sudo not working: zsh: exec format error: sudo

Thank you! I do think that I wasn't clear enough in my question, I was aware that there are ways to overcome the pacman warning, but I wasn't sure whether just reinstalling sudo would be the solution. However now I realize there is probably no harm in trying anyway. I will update this post afterwards, thanks again.

Offline

#4 2014-09-30 09:33:18

thaemes
Member
Registered: 2014-09-30
Posts: 4

Re: [SOLVED] Sudo not working: zsh: exec format error: sudo

yay, after checking the conflicting files as described in the wiki:  https://wiki.archlinux.org/index.php/Pa … stem.22.21
, I could succesfully reinstall sudo and now it seems to work fine again, same for visudo.

Offline

Board footer

Powered by FluxBB