0

I'm not sure, but I remember Ubuntu can do similar to:

$ miswrite-command

No 'miswrite-command' found, did you mean: 

 'correct-command' from 'correct-package' (main)

Try : sudo apt install correct-package

What is the package name to do such things on Debian?

GAD3R
  • 63,407
  • 31
  • 131
  • 192
illiterate
  • 953
  • 7
  • 22
  • 2
    Possible duplicate of [How to implement package install suggestion on Debian?](https://unix.stackexchange.com/questions/67466/how-to-implement-package-install-suggestion-on-debian) or [How to get `command-not-found` work on Debian Stretch](https://unix.stackexchange.com/questions/381293/how-to-get-command-not-found-work-on-debian-stretch) – Olorin Mar 08 '19 at 01:50
  • @Olorin Thank you, but this one half slolution, I'm not sure, but I remember Ubuntu can do spell-check when I use error package name in apt. – illiterate Mar 08 '19 at 02:07
  • I don't know about that. I just tried `sudo apt install bsah` in Ubuntu and it said `E: Unable to locate package bsah` with no suggestions. `aptitude` might provide suggestions, in which case you can install `aptitude` in Debian just like you installed it in Ubuntu. – Olorin Mar 08 '19 at 02:09
  • 2
    It's not exactly what you're asking for, but it might help: https://github.com/nvbn/thefuck – Panki Mar 08 '19 at 08:41
  • @Olorin I think the question is different. How make debian bash act like ubuntu e,g: fixing typos , giving suggestions and how to install the correct package. – GAD3R Mar 09 '19 at 21:32
  • 1
    @GAD3R thank you for edit and I'm sorry for my bad, I edit my question to remove words about "apt package name spell check" because I think "spell check for bash command" and "spell check for apt package name" is a different thing.[See my first version](https://unix.stackexchange.com/revisions/505050/1) – illiterate Mar 10 '19 at 12:11
  • @GAD3R in either case it's a matter of correctly installing and configuring `command-not-found` like in the dupes. – Olorin Mar 10 '19 at 15:56

0 Answers0