I am using ubuntu system which uses openldap for user login authentication. For changing my login password i used "$sudo passwd" and changed it. (of course the password given is same as old one). Then onwards when i trying to run "apt" command it showing command not found. and for some other programs it showing segmentation fault. Can any one tell me why I am facing issue and how to solve this.

migrated from stackoverflow.com Dec 24 '10 at 0:28

This question came from our site for professional and enthusiast programmers.

  • Will you be solving it with programming? – Ignacio Vazquez-Abrams Dec 23 '10 at 23:25
  • Don't have enough rep to suggest this is moved to serverfault.. can someone else? EDIT: OP, unless you're asking how to debug whatever application is segfaulting..? – richo Dec 23 '10 at 23:27
  • Please post the ouput to: 'echo $PATH' – Justin Feb 6 '11 at 0:09

I am pretty sure it is unrelated to you changing password.

You either did something more, or it is just coincidence with some other problem.


You changed which password?

sudo passwd changes root's password, not yours.

And there is no command called apt. It's apt-get or aptitude.

Unless you have an alias alias apt=apt-get. Whether that works with sudo will depend on which file you put the alias in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.