I have a similar problem : here is a part of install log :
...
Loading /etc/emacs22/site-start.d/60nxml-mode.el (source)...
Error while loading 60nxml-mode
Wrote /etc/emacs22/site-start.d/00debian-vars.elc
Wrote /usr/share/emacs22/site-lisp/debian-startup.elc
install/nxml-mode: Handling install for emacsen flavor emacs22
...
The file 60nxml-mode.el uses a variable called "flavor" while the file startup.el defines a variable "debian-emacs-flavor".
Changing variable name "flavor" to debian-emacs-flavor makes it work.
I have a similar problem : here is a part of install log : site-start. d/60nxml- mode.el (source)... site-start. d/00debian- vars.elc emacs22/ site-lisp/ debian- startup. elc
...
Loading /etc/emacs22/
Error while loading 60nxml-mode
Wrote /etc/emacs22/
Wrote /usr/share/
install/nxml-mode: Handling install for emacsen flavor emacs22
...
The file 60nxml-mode.el uses a variable called "flavor" while the file startup.el defines a variable "debian- emacs-flavor" .
Changing variable name "flavor" to debian-emacs-flavor makes it work.