From 6ebd8dafa555cb139b4b976c8a02e7cf26451a62 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 20 Mar 2017 20:22:57 +0100 Subject: [PATCH] command-not-found: Instruct to use 'packages' Running 'packages install' wraps apt to run 'apt update' before running 'apt install', so it should avoid the initial confusion with 'apt install' not working for any packages. --- packages/command-not-found/command-not-found.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/command-not-found/command-not-found.c b/packages/command-not-found/command-not-found.c index a43a8ea6c..6a02347d9 100644 --- a/packages/command-not-found/command-not-found.c +++ b/packages/command-not-found/command-not-found.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) { char const* binary_name = current_line + 1; int distance = termux_levenshtein_distance(command_not_found, binary_name); if (distance == 0 && strcmp(command_not_found, binary_name) == 0) { - printf("The program '%s' is not installed. Install it by executing:\n apt install %s\n", binary_name, current_package); + printf("The program '%s' is not installed. Install it by executing:\n packages install %s\n", binary_name, current_package); return 127; } else if (best_distance == distance) { guesses_at_best_distance++;