Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Nov 13 '10 at 22:34

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

This question is probably better suited for – Saladin Akara Nov 13 '10 at 17:29


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. – Nov 13 '10 at 18:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .