Missing dependency: emacs does not pull any package providing /usr/share/terminfo/e/eterm-color

Bug #1285864 reported by Jorge Morais
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
emacs24 (Debian)
Fix Released
Unknown
emacs24 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I tried to run dpkg-reconfigure inside emacs' terminal emulator - M-x term.
It said:

Unknown terminal: eterm-color
Check the TERM environment variable.
Also make sure that the terminal is defined in the terminfo database.
Alternatively, set the TERMCAP environment variable to the desired
termcap entry.
debconf: whiptail output the above errors, giving up!

With Google, I found that '/usr/share/terminfo/e/eterm-color' is provided by
ncurses-term. I installed it, solving the problem.

So the package emacs24 (I have not checked other emacs versions) should
'recommend' (or at least 'suggest') ncurses-term (or another package that
solves the problem.

UPDATE: This bug also occurs on a new installation of Ubuntu 15.04. Yesterday I installed Ubuntu 15.04 in Virtualbox, installed aptitude and emacs, and the only configuration I changed was the network proxy (so I did not change anything that would change TERM). The bug occurred.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: emacs24 24.3+1-1ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-12.32-generic 3.13.4
Uname: Linux 3.13.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Thu Feb 27 17:46:00 2014
MarkForUpload: True
SourcePackage: emacs24
UpgradeStatus: Upgraded to saucy on 2013-11-02 (117 days ago)

Revision history for this message
Jorge Morais (jorgemorais) wrote :
Revision history for this message
era (era) wrote :

I don't think there is anything in the standard install which would set TERM to eterm-color. Do you have personal initialization files which override the system TERM? How is Emacs connected to your display and keyboard (Unity, Gnome, bare Linux terminal ...?)

(Tempted to set this to status: "Incomplete" but not able to verify on Ubuntu 13.10 at the moment. If anybody with access to a Saucy image can chime in here, that would be appreciated.)

Revision history for this message
Jorge Morais (jorgemorais) wrote :

Replying to comment #2: this bug also occurs in a new installation of Ubuntu 15.04. Yesterday I installed Ubuntu 15.04 in Virtualbox, installed aptitude and emacs, and the only configuration I changed was the proxy (so I did not change anything that would change TERM).

description: updated
Revision history for this message
era (era) wrote :

So you are running the GUI version of Emacs, running in Unity? You start it from the Unity menu (emacs.desktop)?

Revision history for this message
Jorge Morais (jorgemorais) wrote :

Yes, I use graphical Emacs (I don't supply the -nw command line option). IIRC, when I last reproduced the bug (in a virtual machine) I started it via the command emacs from a terminal. Now I lost access to the virtual machine (its host had a hardware problem).

Revision history for this message
era (era) wrote :

I can confirm that M-x xterm in emacs24 sets TERM to eterm-color when launched out of the box on Ubuntu 15.04. (In the regular terminal, it's simply xterm.)

Whether this should be fixed in the packaging (make it not set eterm-color) or dependencies (pull in ncurses-term) is an open question, though.

Inside xterm, e.g. "sudo dpkg-reconfigure -plow dictionaries-common" is a way to trigger the bug. With ncurses-term installed, I get a "nice" colorful ncurses dialog box; without it, dpkg-reconfigure aborts.

Another obvious workaround is to specify a nongraphical Debconf front-end.

sudo DEBIAN_FRONTEND=readline dpkg-reconfigure -plow dictionaries-common

Changed in emacs24 (Ubuntu):
status: New → Confirmed
Revision history for this message
era (era) wrote :

As of the current Emacs sources, https://github.com/emacs-mirror/emacs/blob/master/lisp/term.el#L1472 contains

  (defvar term-term-name "eterm-color"

so there really is an explicit setting in the upstream sources which hardcodes this. With that, I guess I agree that emacs24 should "Suggests: ncurses-term".

Revision history for this message
era (era) wrote :
Revision history for this message
era (era) wrote :

(Sorry, where I wrote xterm, I meant M-x term!)

Changed in emacs24 (Debian):
status: Unknown → New
Changed in emacs24 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.