Actions

command-not-found

From Whonix



Notfound14123523.png

Introduction[edit]

Quote Debian package command-not-found [archive]:

Suggest installation of packages in interactive bash sessions This package will install a handler for command_not_found that looks up programs not currently installed but available from the repositories.

Installation[edit]

The order in which these commands are run matter, [1] but the process is idempotent. This means it is possible to re-apply all of the following steps.

1. Delete /etc/apt/apt.conf.d/30usability-misc [archive] because it contains settings that speed up APT [archive] but break command-not-found. [2]

sudo rm -f /etc/apt/apt.conf.d/30usability-misc

2. Install command-not-found.

Install command-not-found.

1. Update the package lists.

sudo apt-get update

2. Upgrade the system.

sudo apt-get dist-upgrade

3. Install the command-not-found package.

Using apt-get command line parameter --no-install-recommends is in most cases optional.

sudo apt-get install --no-install-recommends command-not-found

The procedure of installing command-not-found is complete.

3. Run update-command-not-found with root rights.

sudo update-command-not-found

4. Done.

Setup of update-command-not-found has been completed.

Issues[edit]

local variable 'cnf' referenced before assignment[edit]

See Also[edit]

Footnotes[edit]

  1. Also apt update cannot be skipped since package contents files need to be downloaded.
  2. Acquire::IndexTargets::deb::Contents-deb::DefaultEnabled false;
    

    breaks command-not-found because it requires /var/lib/apt/lists/*Contents* to exist.

    See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857090 [archive]



Fosshost is sponsors Kicksecure ™ stage server Whonix old logo.png
Fosshost About Advertisements

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki


Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Twitter-share-button.png Facebook-share-button.png Telegram-share.png Iconfinder Apple Mail 2697658.png Reddit.jpg Hacker.news.jpg 200px-Mastodon Logotype (Simple).svg.png

Love Whonix ™ and want to help spread the word? You can start by telling your friends or posting news about Whonix ™ on your website, blog or social media.

https link onion link Priority Support | Investors | Professional Support

Whonix | © ENCRYPTED SUPPORT LP | Heckert gnu.big.png Freedom Software / Osi standard logo 0.png Open Source (Why?)

The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent.