# La fameuse commande apt introuvable

**URL:** <https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865>\
**Category:** Support Debian\
**Created:** [Avril 23, 2024, 4:14 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865 "2024-04-23T16:14:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 4:14 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/1 "2024-04-23T16:14:25Z")

</div>

Je viens de tout réinstallé debian. Avec Synaptic, j’ai installé apt.  
Et voilà que je ne peux rien faire avec cette commande qui est introuvable et je sais qu’il y a des posts là-dessus par centaines…

Alors, en root j’ai :  
[root@localhost ~]# /etc/apt/sources.List  
bash: /etc/apt/sources.List: Aucun fichier ou dossier de ce type

ça commence bien…

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 4:27 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/2 "2024-04-23T16:27:51Z")

</div>

Salut,

> [@mand](#):
>
> Avec Synaptic, j’ai installé apt.

`apt` est installé d’emblée, en tout cas avec toutes les images d’installation que j’ai utilisé.

> [@mand](#):
>
> [root@localhost ~]# /etc/apt/sources.List  
> bash: /etc/apt/sources.List: Aucun fichier ou dossier de ce type

Là, tu as essayé d’exécuter la commande `/etc/apt/sources.List`, qui n’existe pas. Il s’agit (en tout cas avec un `l` minuscule) du fichier de configuration des dépôts utilisés par `apt`. La commande `apt` est tout simplement `apt`, ou `/usr/bin/apt` pour le chemin complet.

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 4:31 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/3 "2024-04-23T16:31:18Z")

</div>

Effectivement, j’ai vu la coquille sur «&nbsp;List&nbsp;», mais même en rectifiant, j’arrive au même résultat : rien.

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 4:34 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/4 "2024-04-23T16:34:19Z")

</div>

Relis mon message, la commande c’est `apt`, pas le chemin de son fichier de config.

Quelle opération souhaites tu effectuer ?

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 4:37 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/5 "2024-04-23T16:37:05Z")

</div>

Je voulais au départ réinstaller wordpress qui n’est pas dans synaptic malheureusement, d’où mes doigts dans le cambouis pour tenter une instal.

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 4:40 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/6 "2024-04-23T16:40:04Z")

</div>

Le paquet `wordpress` est pourtant bien dans les dépôts officiels de Debian:

```auto
$ apt policy wordpress
wordpress:
  Installé : (aucun)
  Candidat : 6.1.1+dfsg1-1
 Table de version :
     6.1.1+dfsg1-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages

```

Tu peux suivre la fichie wiki de [debian.org](http://debian.org):  
[https://wiki.debian.org/WordPress](https://wiki.debian.org/WordPress)

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 4:42 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/7 "2024-04-23T16:42:39Z")

</div>

Je pense que j’ai un problème au niveau du fichier sources.list. j’ai pourtant dans synaptic mis à jour les dépôts…

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 4:46 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/8 "2024-04-23T16:46:03Z")

</div>

On peut regarder ça, montre nous son contenu: `cat /etc/apt/sources.list`

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 4:49 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/9 "2024-04-23T16:49:29Z")

</div>

Je te remercie beaucoup pour ton aide et ta patience.  
Voici le résultat :

[mand@localhost ~]$ cat /etc/apt/sources.list

# Package repository URLs

# 

# Signed repositories have a [] where is the name of the key

# as it appears in vendors.list. If you remove it, no digital signature check

# will be made.

# 

# See [http://mirrors.mageia.org/](http://mirrors.mageia.org/) for a full list of mirrors.

# format is simple : «&nbsp;urpm server list rpms&nbsp;»

# 1) urpm is the type of archive

# 2) server is the path to the main directory

# 3) list is the relative path to the list, from the main directory

# 4) rpms is the relative path to the rpms, from the main directory

# Use the ‹&nbsp;urpm&nbsp;› source type with synthesis.hdlist indexes.

# Full hdlists cannot be used.

# example

# urpm ftp://ftp.nluug.nl/pub/os/Linux/distr/mageia/distrib/cauldron/x86\_64/media/core/release media\_info/synthesis.hdlist /

[mand@localhost ~]$

Je suis sous Debian12 (désolé pour la police d’écriture) et ça parle de Mageia ?? y a pas un problème ?

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Avril 23, 2024, 5:24 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/10 "2024-04-23T17:24:27Z")

</div>

A partir de quoi as-tu fait ton installation?

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 5:25 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/11 "2024-04-23T17:25:02Z")

</div>

A partir d’une clef USB.

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Avril 23, 2024, 5:25 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/12 "2024-04-23T17:25:32Z")

</div>

oui, je voulais dire quelle ISO et prise où?

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 5:28 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/13 "2024-04-23T17:28:33Z")

</div>

Je l’avais prise directement sur le site officiel. C’est : debian-12.5.0-amd64-netinst.iso

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Avril 23, 2024, 5:31 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/14 "2024-04-23T17:31:02Z")

</div>

as-tu suivi un tutoriel particulier?  
Car il est impossible avec une installation standard que tu puisse avoir un fichier parlant de mageia.

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 5:35 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/15 "2024-04-23T17:35:59Z")

</div>

Non, non, pas de tuto. Mais je pense que j’ai dû écrire dans le fichier sources.list par erreur, d’où ce qui apparait là.  
Du coup, il me faudrait un sources.list neuf, ce qui me permettrait ensuite d’installer les programmes que je veux.

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 5:43 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/16 "2024-04-23T17:43:22Z")

</div>

Tu peux mettre ça:

```auto
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware 
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware 
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware 

```

et effacer tout le reste. Puis `sudo apt update` (ou recharger les dépôts via Synaptic)

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Avril 23, 2024, 5:44 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/17 "2024-04-23T17:44:48Z")

</div>

il manque `non-free-firmware` 🙂

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Avril 23, 2024, 5:45 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/18 "2024-04-23T17:45:37Z")

</div>

Je vais pas pouvoir : apt ne fonctionne pas, commande introuvable 😕

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 5:46 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/19 "2024-04-23T17:46:05Z")

</div>

Ah oui merci, en plus `apt` me l’indique haha

```auto
N: Le dépôt « Debian bookworm » a modifié sa valeur « non-free component » de « non-free » à « non-free non-free-firmware »

```

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Avril 23, 2024, 5:48 UTC](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865/20 "2024-04-23T17:48:06Z")

</div>

> [@mand](#):
>
> Je vais pas pouvoir : apt ne fonctionne pas, commande introuvable 😕

Tu peux copier/coller la commande entrée ainsi que le retour ?

[Page suivante](https://www.debian-fr.org/t/la-fameuse-commande-apt-introuvable/89865.md?page=2)
