Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Recently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, so i wanted to edit sudoers file by typing visudo. But i keep getting this error: Error opening terminal: vanilla How can i solve this, Thanks in advance...

share|improve this question

migrated from stackoverflow.com Nov 13 '10 at 22:34

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

    
This question is probably better suited for unix.stackoverflow.com –  Saladin Akara Nov 13 '10 at 17:29
add comment

1 Answer

Try:

export TERM=vt102

before running visudo. This might help:

share|improve this answer
    
Perfect, Thanks for your help :) –  Deniz Acay Nov 13 '10 at 18:44
    
No prob - note that there is probably something wrong in the setup if visudo is searching for vanilla terminal instead of something else, you should probably take a look at that. It might also depend on the way you are accessing it. E.g. if you access it from a Cygwin ssh, you will have TERM=cygwin instead, which is normal, but generally you should have TERM=xterm if within GUI or something more standard. –  icyrock.com Nov 13 '10 at 18:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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