command-not-found for mail, mailx does not suggest bsd-mailx

Bug #889401 reported by Nobuto Murata
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Triaged
High
Unassigned
command-runner-applet (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

If you type "mail" or "mailx" on termial, command-not-found says:
  The program 'mail' can be found in the following packages:
   * heirloom-mailx
   * mailutils
  Try: sudo apt-get install <selected package>

It does not contain "bsd-mailx" which is Ubuntu's main package.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: command-not-found 0.2.44ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
Uname: Linux 3.0.0-12-generic-pae i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
CheckboxSubmission: 1d84ca1b2de43c2199974f7b8a6ca9cb
CheckboxSystem: 0657dd966bc74d2b22e7c94051aa55af
Date: Sat Nov 12 16:23:14 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20111007)
PackageArchitecture: all
SourcePackage: command-not-found
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Ran into this on 11.10 release as well.

Changed in command-not-found (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

In precise, I only get 'mailutils' suggested. Still not bsd-mailx.

The program 'mail' is currently not installed. You can install it by typing:
apt-get install mailutils

Revision history for this message
Brian Murray (brian-murray) wrote :

This is because bsd-mailx doesn't provide a binary named mail rather it includes /usr/bin/bsd-mailx and uses an alternative for the mail command.

8:58:16 - flash:[...recise/UnifiedDataExtractor] file /etc/alternatives/mail
/etc/alternatives/mail: symbolic link to `/usr/bin/bsd-mailx'

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

command not found data analyzer (the thing that builds the hint database) has some _very_ rough code that understands alternatives but it is not going to work reliably without declarative alternatives.

Changed in command-not-found (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Bob Bib (bobbib) wrote :

In Precise, I get only one suggestion.
---
$ mail
The program 'mail' is currently not installed. You can install it by typing:
sudo apt-get install mailutils
$ mailx
The program 'mailx' is currently not installed. You can install it by typing:
sudo apt-get install mailutils
---
IMHO, it should give alternatives and suggest the "most supported" package ('bsd-mailx' from 'main' instead of 'mailutils' from 'universe').

Changed in command-runner-applet (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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