Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I just installed Emacs 24 (emacs24 24.1+1-2ubuntu3) in Ubuntu 12.04 but it does not seem to work with Auctex (the current version is 11.86-2ubuntu2). My .emacs file contains a line loading Auctex, so when starting the editor for the first time I received an error it cannot find auctex.el. Indeed /usr/share/emacs/24.1/site-lisp does not contain any trace of auctex. I thought it could be an issue with auctex being installed before emacs 24, so I reinstalled it. The installation log reads as follows:

Setting up auctex (11.86-2ubuntu2) ...
Install auctex for emacs
Install auctex for emacs23
install/auctex: Setting up for emacs23 (log file: /usr/share/emacs23/site-lisp/auctex//CompilationLog)... done.
update-auctex-elisp[20829]: Further output will appear in: /var/log/auctex-emacs23.log.
Install auctex for emacs24
install/auctex: Ignoring emacsen flavor: "emacs24".

Is the current version of auctex incompatible with emacs24? Alternatively, is there a way to get around this issue?

share|improve this question

You need to edit the file


At the end of the file, look for this chunk:

    case "${FLAVOR}" in
       emacs) :;;
              do_clean_old_cruft ${FLAVOR}
         do_install ${FLAVOR}
              do_auto ${FLAVOR};;
       *) echo >&2 "install/auctex:" \
           "Ignoring emacsen flavor: \"${FLAVOR}\"."

Change "123" to "1234" and then sudo dpkg-reconfigure auctex.

I stumbled across this online. I wish I could give credit but have forgotten the source.

share|improve this answer
Here's the source: – rmcd Nov 15 '12 at 13:50
This does not work in ubuntu 13.10 – student Nov 25 '13 at 18:54
I believe that Ubuntu 13.10 correctly installs auctex and it appears to only support emacs 23 and 24. Did you sudo apt-get install auctex? – rmcd Nov 26 '13 at 0:28
I just realized that it happens only if there is a empty line in the local variables list (see – student Nov 26 '13 at 16:19

As a workaround, you may install AucTeX locally from the Emacs Lisp Package Archive (ELPA):

M-x package-install auctex

share|improve this answer

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.