package "vim" advertised to supply "gvim" but does not.

Bug #1066549 reported by Kevin O'Gorman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is a kind of documentation bug relating to an automated feature (possibly of "alternatives")

I am running Xubuntu 12.04.1, and have added package "vim" manually.

When I enter the command "gvim", I get the message
The program 'gvim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-athena
 * vim-gtk
 * vim-nox
Try: sudo apt-get install <selected package>

Note that "vim" appears in the list. It did not provide gvim, and is not compiled to do so ("vim -g" reports "E25: GUI cannot be used: Not enabled at compile time".)

It appears what I got is more like "vim-nox".

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: vim 2:7.3.429-2ubuntu2.1
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic-pae 3.2.28
Uname: Linux 3.2.0-31-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Sun Oct 14 10:20:11 2012
InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vim
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Kevin O'Gorman (kogorman-pacbell) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vim (Ubuntu):
status: New → Confirmed
Revision history for this message
James McCoy (jamessan) wrote :

command-not-found is what provides this package suggestion functionality. It performs fuzzy matching on the filename to try and detect typos, which appears to be what's causing these bad suggestions.

I can't reproduce the exact problem you originally described, so this may have already been fixed in a newer version of command-not-found (be sure to run "sudo update-command-not-found" first).

affects: vim (Ubuntu) → command-not-found (Ubuntu)
Revision history for this message
Moses Moore (moses-ubuntu) wrote :

Currently using package 'command-not-found' version 0.3ubuntu15.3 (as per Ubuntu 15.04) and package 'vim' version 2:7.4.488-3ubuntu2 (as per Ubuntu 15.04).

moses@deunan:~$ gvim
The program 'gvim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-athena
 * vim-gtk
 * vim-nox
Try: sudo apt-get install <selected package>
moses@deunan:~$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
vim is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
moses@deunan:~$ dpkg -l vim
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii vim 2:7.4.488-3u i386 Vi IMproved - enhanced vi editor
moses@deunan:~$ vim -g
E25: GUI cannot be used: Not enabled at compile time

The problem is still present.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 380506, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.