---
title: 'Das Problem lösen "Konnte CO nicht findenmmand-not-found database"'
url: 'https://ra1ahq.blog/de/reshenie-problemy-could-not-find-command-not-found-database'
markdown: 'https://ra1ahq.blog/de/reshenie-problemy-could-not-find-command-not-found-database.md'
lang: de
date: '2023-10-11'
description: 'Das Stub-Programm „Befehl nicht gefunden“ wird ausgelöst, wenn ein Benutzer versehentlich einen nicht vorhandenen Befehlsnamen wie „foobar“ in das Terminal eingibt. In manchen Fällen funktioniert das Programm „Befehl nicht gefunden“ nicht. Wie kann ich das Problem beheben? Einfüh'
taxonomy:
  archives_month:
    - oct_2023
  archives_year:
    - '2023'
---

# Das Problem lösen "Konnte CO nicht findenmmand-not-found database"

11 

 Oktober 

 2023 

 ![Das Problem lösen "Konnte CO nicht findenmmand-not-found database"](https://ra1ahq.blog/images/2/d/b/e/d/2dbed54d06b935c48fd6772cce5ba4811f886547-cnf-title.png)16:44

### Das Problem lösen "Konnte CO nicht findenmmand-not-found database"

11 Oktober 2023 16:44

Das Stub-Programm „Befehl nicht gefunden“ wird ausgelöst, wenn ein Benutzer versehentlich einen nicht vorhandenen Befehlsnamen wie „foobar“ in das Terminal eingibt. In manchen Fällen funktioniert das Programm „Befehl nicht gefunden“ nicht. Wie kann ich das Problem beheben?

### Einführung

Wie Sie wissen, sind die Programme in Paketen enthalten, die vom Befehl **apt** basierend auf dem Inhalt der Datei `/etc/apt/sources.list` und der Dateien \*.list im Unterordner `sources.list.d` verwaltet werden. Bei Änderungen der Repository-Zusammensetzung sollte die **"command-not-found"**-Programmdatenbank, die sich im Pfad `/var/lib/command-not-found/` befindet, automatisch aktualisiert werden. Die Symptome des Problems, das ich festgestellt habe, sind die folgenden:

1\) Bei der Ausführung eines falschen Befehls wird eine Meldung angezeigt
`...<br></br>Could not find command-not-found database. Run 'sudo apt update' to populate it.<br></br>... : command not found`

2\) Es gibt keine Datenbank für den Befehl, was die Tatsache ist:

```
ls -l /var/lib/command-not-found/ 
```

0 Dateien

### Ursache

Nachdem der Aufruf des Dienstprogramms „apt-get update“ funktioniert hat, muss ein Bash-Skript ausgeführt werden: **`/etc/apt/apt.conf.d/50command-not-found`**. Linux LXLE verfügt nicht über eine solche Datei, Linux Mint jedoch schon. Haben die LXLE-Entwickler vergessen, die Datei „50command-not-found`“ einzubinden?

### Lösung: Methode Nr. 1

Kopieren Sie die Datei „/etc/apt/apt.conf.d/50command-not-found“ von Linux Mint nach LXLE oder erstellen Sie sie manuell.
![script](https://ra1ahq.blog/images/5/d/d/6/3/5dd6305301a8b34eddc74e59051500babff0c303-cnf.png "script")

Der Quelltext lautet „50command-not-found“:
[50command-not-found.zip](https://ra1ahq.blog/de/reshenie-problemy-could-not-find-command-not-found-database/50command-not-found.zip)

Aktualisieren Sie anschließend den Cache mit dem Aufruf von **`apt update`**. Es werden außerdem SQLite-Datenbankdateien für das Programm **"command-not-found"** im Verzeichnis `/var/lib/command-not-found/` erstellt. Die Dateien "commands.db" und "commands.db.metadata" werden vom Python-Skript `/usr/lib/cnf-update-db` erstellt. (Hierzu muss Python 2.7 oder höher auf dem Betriebssystem installiert sein – die Voraussetzung in Linux LXLE ist erfüllt.)

### Lösung: Methode Nr. 2

Nach der Aktualisierung der Pakete **`apt update`** müssen Sie die folgenden zwei Befehle manuell im Terminal mit sudo-Rechten ausführen:

sudo rm -f /var/lib/command-not-found/*.*
sudo /usr/lib/cnf-update-db

### Nicht funktionierende Lösung (aus dem Internet)

– kann für andere Distributionen geeignet sein.

Neuinstallation des Dienstprogramms:

```
sudo apt purge command-not-found
sudo apt install command-not-found
sudo apt update
```

### Prüfung

Überprüfen Sie das Vorhandensein der Dateien „commands.db“ und „commands.db.metadata“:

```
ls -l /var/lib/command-not-found/
```

` Gesamt 3156`

- -rw-r--r-- 1 root root 3223552 окт 11 15:53 commands.db
- -rw-r--r-- 1 root root 3260 окт 11 15:53 commands.db.metadata
    Verwendenr@host:~$

Führen Sie zum Beispiel das "falsche" Team "Appt" aus:

```
appt
```

`Der Appt-Befehl wurde nicht gefunden. Möglicherweise meinten Sie:<br></br>Befehl „ppt“ von deb bsdgames (2.17-29)<br></br>Befehl „apt“ von deb apt (2.4.10)<br></br>Befehl „aapt“ von deb aapt (1:10.0.0+r36-3)<br></br>Versuchen Sie: sudo apt install <deb-name></deb-name>`

Die Meldung *„Datenbank mit Befehl nicht gefunden. Führen Sie ‚sudo apt update‘ aus, um sie zu füllen.“* wird nicht mehr angezeigt. Das ist behoben.

[ Zurück](https://ra1ahq.blog/de/kak-uznat-model-videokarty-v-linux-i-ustanovit-draivery-grafiki-v-ubuntu-mint-debian "Vorherige Seite")

[ Vorwärts ](https://ra1ahq.blog/de/yandex-telemost-v-linux "Nächste Seite")

## Sprachen

- [Русский](https://ra1ahq.blog/posts/reshenie-problemy-could-not-find-command-not-found-database)
- [English](https://ra1ahq.blog/en/posts/reshenie-problemy-could-not-find-command-not-found-database)
- [Deutsch](https://ra1ahq.blog/de/reshenie-problemy-could-not-find-command-not-found-database)
- [Français](https://ra1ahq.blog/fr/posts/reshenie-problemy-could-not-find-command-not-found-database)
- [中文 (简体) (cn)](https://ra1ahq.blog/zh-cn/posts/reshenie-problemy-could-not-find-command-not-found-database)

## Thema

## RSS-Feeds

 [ Atom 1.0](https://ra1ahq.blog/de/.atom) [ RSS](https://ra1ahq.blog/de/.rss) 

## Beliebte Schlagwörter

 [APRS](https://ra1ahq.blog/de/tag:APRS) [Antennen](https://ra1ahq.blog/de/tag:Antennen) [CW](https://ra1ahq.blog/de/tag:CW) [DX](https://ra1ahq.blog/de/tag:DX) [FM](https://ra1ahq.blog/de/tag:FM) [Fotos](https://ra1ahq.blog/de/tag:Fotos) [KW](https://ra1ahq.blog/de/tag:KW) [Linux](https://ra1ahq.blog/de/tag:Linux) [Reisen](https://ra1ahq.blog/de/tag:Reisen) [UKW](https://ra1ahq.blog/de/tag:UKW) [VHF](https://ra1ahq.blog/de/tag:VHF) [firefox](https://ra1ahq.blog/de/tag:firefox) [morse](https://ra1ahq.blog/de/tag:morse) [soundtrack](https://ra1ahq.blog/de/tag:soundtrack) [video](https://ra1ahq.blog/de/tag:video) [windows](https://ra1ahq.blog/de/tag:windows) [youtube](https://ra1ahq.blog/de/tag:youtube) [КВ](https://ra1ahq.blog/de/tag:%D0%9A%D0%92) [ТВ](https://ra1ahq.blog/de/tag:%D0%A2%D0%92) [УКВ](https://ra1ahq.blog/de/tag:%D0%A3%D0%9A%D0%92) [антенны](https://ra1ahq.blog/de/tag:%D0%B0%D0%BD%D1%82%D0%B5%D0%BD%D0%BD%D1%8B) [безопасность](https://ra1ahq.blog/de/tag:%D0%B1%D0%B5%D0%B7%D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%BE%D1%81%D1%82%D1%8C) [длинные волны](https://ra1ahq.blog/de/tag:%D0%B4%D0%BB%D0%B8%D0%BD%D0%BD%D1%8B%D0%B5%20%D0%B2%D0%BE%D0%BB%D0%BD%D1%8B) [путешествия](https://ra1ahq.blog/de/tag:%D0%BF%D1%83%D1%82%D0%B5%D1%88%D0%B5%D1%81%D1%82%D0%B2%D0%B8%D1%8F) [религия](https://ra1ahq.blog/de/tag:%D1%80%D0%B5%D0%BB%D0%B8%D0%B3%D0%B8%D1%8F) [соревнования](https://ra1ahq.blog/de/tag:%D1%81%D0%BE%D1%80%D0%B5%D0%B2%D0%BD%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F) [спутники](https://ra1ahq.blog/de/tag:%D1%81%D0%BF%D1%83%D1%82%D0%BD%D0%B8%D0%BA%D0%B8) [средние волны](https://ra1ahq.blog/de/tag:%D1%81%D1%80%D0%B5%D0%B4%D0%BD%D0%B8%D0%B5%20%D0%B2%D0%BE%D0%BB%D0%BD%D1%8B) [схемы](https://ra1ahq.blog/de/tag:%D1%81%D1%85%D0%B5%D0%BC%D1%8B) [тесты](https://ra1ahq.blog/de/tag:%D1%82%D0%B5%D1%81%D1%82%D1%8B) [трансивер](https://ra1ahq.blog/de/tag:%D1%82%D1%80%D0%B0%D0%BD%D1%81%D0%B8%D0%B2%D0%B5%D1%80) [управление](https://ra1ahq.blog/de/tag:%D1%83%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5) [фотографии](https://ra1ahq.blog/de/tag:%D1%84%D0%BE%D1%82%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D0%B8) 

## Zufälliger Post

 [ Ich werde Glück haben!](https://ra1ahq.blog/de/random) 

## Archiv der Beiträge

- [ Oktober 2026 ✒ 4 ](https://ra1ahq.blog/de/archives_month:oct_2026)
- [ September 2026 ✒ 9 ](https://ra1ahq.blog/de/archives_month:sep_2026)
- [ August 2026 ✒ 6 ](https://ra1ahq.blog/de/archives_month:aug_2026)
- [ Juli 2026 ✒ 13 ](https://ra1ahq.blog/de/archives_month:jul_2026)
- [ Juni 2026 ✒ 8 ](https://ra1ahq.blog/de/archives_month:jun_2026)
- [ Mai 2026 ✒ 2 ](https://ra1ahq.blog/de/archives_month:may_2026)
- [ April 2026 ✒ 6 ](https://ra1ahq.blog/de/archives_month:apr_2026)
- [ März 2026 ✒ 3 ](https://ra1ahq.blog/de/archives_month:mar_2026)
- [ Februar 2026 ✒ 7 ](https://ra1ahq.blog/de/archives_month:feb_2026)
- [ Januar 2026 ✒ 8 ](https://ra1ahq.blog/de/archives_month:jan_2026)
- [ Dezember 2025 ✒ 12 ](https://ra1ahq.blog/de/archives_month:dec_2025)
- [ November 2025 ✒ 9 ](https://ra1ahq.blog/de/archives_month:nov_2025)
- [ Oktober 2025 ✒ 8 ](https://ra1ahq.blog/de/archives_month:oct_2025)
- [ September 2025 ✒ 5 ](https://ra1ahq.blog/de/archives_month:sep_2025)
- [ August 2025 ✒ 8 ](https://ra1ahq.blog/de/archives_month:aug_2025)
- [ Juli 2025 ✒ 6 ](https://ra1ahq.blog/de/archives_month:jul_2025)
- [ Juni 2025 ✒ 10 ](https://ra1ahq.blog/de/archives_month:jun_2025)
- [ Mai 2025 ✒ 4 ](https://ra1ahq.blog/de/archives_month:may_2025)
- [ April 2025 ✒ 4 ](https://ra1ahq.blog/de/archives_month:apr_2025)
- [ März 2025 ✒ 4 ](https://ra1ahq.blog/de/archives_month:mar_2025)
- [ Februar 2025 ✒ 11 ](https://ra1ahq.blog/de/archives_month:feb_2025)
- [ Dezember 2024 ✒ 8 ](https://ra1ahq.blog/de/archives_month:dec_2024)
- [ November 2024 ✒ 2 ](https://ra1ahq.blog/de/archives_month:nov_2024)
- [ Oktober 2024 ✒ 8 ](https://ra1ahq.blog/de/archives_month:oct_2024)
- [ September 2024 ✒ 3 ](https://ra1ahq.blog/de/archives_month:sep_2024)
- [ August 2024 ✒ 5 ](https://ra1ahq.blog/de/archives_month:aug_2024)
- [ Juli 2024 ✒ 9 ](https://ra1ahq.blog/de/archives_month:jul_2024)
- [ Juni 2024 ✒ 6 ](https://ra1ahq.blog/de/archives_month:jun_2024)
- [ Mai 2024 ✒ 7 ](https://ra1ahq.blog/de/archives_month:may_2024)
- [ April 2024 ✒ 5 ](https://ra1ahq.blog/de/archives_month:apr_2024)
- [ März 2024 ✒ 5 ](https://ra1ahq.blog/de/archives_month:mar_2024)
- [ Februar 2024 ✒ 5 ](https://ra1ahq.blog/de/archives_month:feb_2024)
- [ Januar 2024 ✒ 6 ](https://ra1ahq.blog/de/archives_month:jan_2024)
- [ Dezember 2023 ✒ 7 ](https://ra1ahq.blog/de/archives_month:dec_2023)
- [ November 2023 ✒ 4 ](https://ra1ahq.blog/de/archives_month:nov_2023)
- [ Oktober 2023 ✒ 8 ](https://ra1ahq.blog/de/archives_month:oct_2023)
- [ September 2023 ✒ 7 ](https://ra1ahq.blog/de/archives_month:sep_2023)
- [ August 2023 ✒ 4 ](https://ra1ahq.blog/de/archives_month:aug_2023)
- [ Juli 2023 ✒ 7 ](https://ra1ahq.blog/de/archives_month:jul_2023)
- [ Juni 2023 ✒ 7 ](https://ra1ahq.blog/de/archives_month:jun_2023)
- [ Mai 2023 ✒ 5 ](https://ra1ahq.blog/de/archives_month:may_2023)
- [ April 2023 ✒ 6 ](https://ra1ahq.blog/de/archives_month:apr_2023)
- [ März 2023 ✒ 5 ](https://ra1ahq.blog/de/archives_month:mar_2023)
- [ Februar 2023 ✒ 2 ](https://ra1ahq.blog/de/archives_month:feb_2023)
- [ Januar 2023 ✒ 5 ](https://ra1ahq.blog/de/archives_month:jan_2023)
- [ Dezember 2022 ✒ 7 ](https://ra1ahq.blog/de/archives_month:dec_2022)
- [ November 2022 ✒ 8 ](https://ra1ahq.blog/de/archives_month:nov_2022)
- [ Oktober 2022 ✒ 6 ](https://ra1ahq.blog/de/archives_month:oct_2022)
- [ September 2022 ✒ 9 ](https://ra1ahq.blog/de/archives_month:sep_2022)
- [ August 2022 ✒ 8 ](https://ra1ahq.blog/de/archives_month:aug_2022)
- [ Juli 2022 ✒ 4 ](https://ra1ahq.blog/de/archives_month:jul_2022)
- [ Juni 2022 ✒ 9 ](https://ra1ahq.blog/de/archives_month:jun_2022)
- [ Mai 2022 ✒ 7 ](https://ra1ahq.blog/de/archives_month:may_2022)
- [ April 2022 ✒ 3 ](https://ra1ahq.blog/de/archives_month:apr_2022)
- [ März 2022 ✒ 4 ](https://ra1ahq.blog/de/archives_month:mar_2022)
- [ Februar 2022 ✒ 6 ](https://ra1ahq.blog/de/archives_month:feb_2022)
- [ Januar 2022 ✒ 7 ](https://ra1ahq.blog/de/archives_month:jan_2022)
- [ Dezember 2021 ✒ 7 ](https://ra1ahq.blog/de/archives_month:dec_2021)
- [ November 2021 ✒ 7 ](https://ra1ahq.blog/de/archives_month:nov_2021)
- [ Oktober 2021 ✒ 7 ](https://ra1ahq.blog/de/archives_month:oct_2021)
- [ September 2021 ✒ 10 ](https://ra1ahq.blog/de/archives_month:sep_2021)
- [ August 2021 ✒ 6 ](https://ra1ahq.blog/de/archives_month:aug_2021)
- [ Juli 2021 ✒ 7 ](https://ra1ahq.blog/de/archives_month:jul_2021)
- [ Juni 2021 ✒ 7 ](https://ra1ahq.blog/de/archives_month:jun_2021)
- [ Mai 2021 ✒ 7 ](https://ra1ahq.blog/de/archives_month:may_2021)
- [ April 2021 ✒ 4 ](https://ra1ahq.blog/de/archives_month:apr_2021)
- [ März 2021 ✒ 4 ](https://ra1ahq.blog/de/archives_month:mar_2021)
- [ Februar 2021 ✒ 3 ](https://ra1ahq.blog/de/archives_month:feb_2021)
- [ Januar 2021 ✒ 4 ](https://ra1ahq.blog/de/archives_month:jan_2021)
- [ Dezember 2020 ✒ 8 ](https://ra1ahq.blog/de/archives_month:dec_2020)
- [ November 2020 ✒ 2 ](https://ra1ahq.blog/de/archives_month:nov_2020)
- [ Oktober 2020 ✒ 3 ](https://ra1ahq.blog/de/archives_month:oct_2020)
- [ September 2020 ✒ 3 ](https://ra1ahq.blog/de/archives_month:sep_2020)
- [ August 2020 ✒ 5 ](https://ra1ahq.blog/de/archives_month:aug_2020)
- [ Juli 2020 ✒ 5 ](https://ra1ahq.blog/de/archives_month:jul_2020)
- [ Juni 2020 ✒ 8 ](https://ra1ahq.blog/de/archives_month:jun_2020)
- [ Mai 2020 ✒ 10 ](https://ra1ahq.blog/de/archives_month:may_2020)
- [ April 2020 ✒ 4 ](https://ra1ahq.blog/de/archives_month:apr_2020)
- [ März 2020 ✒ 2 ](https://ra1ahq.blog/de/archives_month:mar_2020)
- [ Januar 2020 ✒ 1 ](https://ra1ahq.blog/de/archives_month:jan_2020)
- [ Dezember 2019 ✒ 2 ](https://ra1ahq.blog/de/archives_month:dec_2019)

## Suche

## Wettervorhersage

[На 14 дней](https://world-weather.ru/pogoda/russia/saint_petersburg/14days/)
[world-weather.ru](https://world-weather.ru/)

---

## Navigation

- Parent: [RA1AHQ](https://ra1ahq.blog/de/index.md)
- Previous: [Yandex-Telefonkonferenz unter Linux](https://ra1ahq.blog/de/yandex-telemost-v-linux.md)
- Next: [So finden Sie Ihr Grafikkartenmodell unter Linux heraus und installieren Grafiktreiber unter Ubuntu/Mint/Debian](https://ra1ahq.blog/de/kak-uznat-model-videokarty-v-linux-i-ustanovit-draivery-grafiki-v-ubuntu-mint-debian.md)
