[Bug 470985] New: command-not-found - wrong advice for installing package
https://bugzilla.novell.com/show_bug.cgi?id=470985 Summary: command-not-found - wrong advice for installing package Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: prusnak@novell.com ReportedBy: postadal@novell.com QAContact: qa@suse.de Found By: --- use zypper "-n" option for advice about installing packages zypper help in |grep name -n, --name Select packages by plain name, not by capability. command-not-found's advice should be: "Try installing with: sudo zypper install -n <package>" how reproduce this bad behaviour: ---------- bruce@brucell:~> rpm -q kdegraphics3-pdf package kdegraphics3-pdf is not installed bruce@brucell:~> kpdf The program 'kpdf' can be found in the following package: * kdegraphics3-pdf [ path: /opt/kde3/bin/kpdf, repository: zypp (repo-oss) ] Try installing with: sudo zypper install kdegraphics3-pdf bash: kpdf: command not found bruce@brucell:~> sudo zypper install kdegraphics3-pdf Loading repository data... Reading installed packages... Resolving package dependencies... Nothing to do. ----------- The right sollution is following calling: ----------- bruce@brucell:~> sudo zypper install -n kdegraphics3-pdf Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: kdegraphics3-pdf Overall download size: 707.0 K. After the operation, additional 2.4 M will be used. Continue? [YES/no] ----------- The problem is with providers: ----------- bruce@brucell:~> sudo zypper wp kdegraphics3-pdf Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+------------------+---------+-------------+--------+------------------ i | kde4-okular | package | 4.1.3-4.6 | x86_64 | openSUSE-11.1-Oss v | kde4-okular | package | 4.1.3-4.7 | i586 | openSUSE-11.1-Oss | kdegraphics3-pdf | package | 3.5.10-1.55 | x86_64 | openSUSE-11.1-Oss | kdegraphics3-pdf | package | 3.5.10-1.61 | i586 | openSUSE-11.1-Oss -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=470985
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=470985#c1
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=470985
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=470985
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=470985
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=470985#c2
--- Comment #2 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=470985
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=470985#c3
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=470985
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=470985#c4
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=470985
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=470985#c5
Ján Kupec
participants (1)
-
bugzilla_noreply@novell.com