Server Fault is a question and answer site for system and network administrators. 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
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.32-042stab037.1 x86_64)
user@server:~$ crontab -e
no crontab for user - using an empty one

Select an editor.  To change later, run 'select-editor'.
  1. /bin/ed
  2. /bin/nano        <---- easiest
  3. /usr/bin/mcedit
  4. /usr/bin/vim.basic

Choose 1-4 [2]: 2
crontab: "/usr/bin/sensible-editor" killed; signal 9 (no core dumped)
Error writing /tmp/crontab.qcuMPr/ No such file or directory
Buffer not written to /tmp/crontab.qcuMPr/ No such file or directory

Why is this happening?

share|improve this question
results for file /usr/bin/sensible-editor? – Bart De Vos Feb 6 '12 at 12:55 – Sergey L Feb 6 '12 at 13:00

/usr/bin/sensible-editor is just a wrapper to help you choose an editor.

What happens when you do this?

export EDITOR=nano
crontab -e

Does /usr/bin/nano exist?

share|improve this answer
When i use export EDITOR=nano everything is fine. – Sergey L Feb 6 '12 at 13:33
Did sensible-editor create a file ~/.selected_editor ? That's just a shell script setting an environmental variable SELECTED_EDITOR. – cjc Feb 6 '12 at 13:37
Yes, file do exists. – Sergey L Feb 6 '12 at 14:53
~$ ls -al | grep '.selected' -rw-r--r-- 1 user user 66 2012-02-06 14:42 .selected_editor ~$ cat .selected_editor # Generated by /usr/bin/select-editor SELECTED_EDITOR="/bin/nano" – Sergey L Feb 6 '12 at 14:53

Your Answer


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.