1) No, it is the same information that appears in the "dpkg --configure -a" output in my original email. I will duplicate it below.
2) I tried: A) $ sudo emacs ... B) $ sudo -s # emacs ... C) $ sudo -s # su # emacs ... Iteration C produced the same output as you. I have env_keep in my /etc/sudoers. I think emacs in the script is seaching $HOME/.emacs.d/ and my init.el is causing it to add $HOME/.emacs.d/elpa to the load-path. For iteration A and B, $HOME="/home/myusername" and no output was produced. $ sudo sh -c 'echo $HOME' /home/myusername $ sudo -s # unset HOME # emacs --quick --batch -l package \ --eval "(add-to-list 'package-directory-list \"/usr/share/emacs/site-lisp/elpa-src/company-0.9.6\")" \ -f package-initialize --eval "(message (locate-library \"company-tests\"))" /usr/share/emacs/site-lisp/elpa-src/company-0.9.6/company-tests.el 3) By ~/ I mean "/home/myusername/" I am ready to admit that this is an issue with my site configuration, and not a likely issue for other users. It could be prevented by unsetting HOME in the /usr/lib/emacsen-common/packages/install/elpa-company script or setting HOME to a known-good directory. $ cat /usr/share/emacs/site-lisp/elpa/company-0.9.6/Install.log In toplevel form: async-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: bbdb-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: clang-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In company-calculate-candidates: company.el:1196:8:Warning: function company-calculate-candidates used to take 2 arguments, now takes 1 In toplevel form: core-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: elisp-tests.el:24:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: files-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: frontends-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: template-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests In toplevel form: transformers-tests.el:22:1:Error: Cannot open load file: No such file or directory, company-tests