---
title: "Erreurs du programme d’installation (install.sh et install.ps1) | Wantastic Docs"
description: "Chaque message affiché par les programmes d’installation Wantastic lorsqu’ils s’arrêtent, sa signification et la solution la plus simple."
url: "https://wantastic.app/fr/docs/errors-installer"
category: "Troubleshooting"
reading_time: "6 min"
---

# Erreurs du programme d’installation (install.sh et install.ps1)

Chaque message affiché par les programmes d’installation Wantastic lorsqu’ils s’arrêtent, sa signification et la solution la plus simple.

> **Outcome:** Le programme d’installation se termine par "Done. wantasticd <version> is installed and running." et l’appareil est revendiqué.

## Before you start

- sudo sous Linux et macOS, un shell root sous OpenWrt et Alpine, ou PowerShell en tant qu’administrateur sous Windows.

## Avant de commencer

- Une ligne commençant par "Error:" arrête le programme d’installation. Une ligne commençant par "Warning:" ne l’arrête pas.
- Vous pouvez relancer le programme d’installation sans risque. Il conserve votre configuration et garde l’ancien binaire en .previous.
- La plupart des erreurs se corrigent en lançant l’installation rapide avec sudo, exactement comme ci-dessous.

Linux et macOS:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

OpenWrt et Alpine (en root):

```bash
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

## Points à vérifier

1. Erreur de permission ("not writable", "needs root") : placez sudo devant sh.
2. Erreur de téléchargement ("HTTP …", "wget failed", "latest version") : vérifiez le DNS, le HTTPS et l’horloge.
3. Erreur de service à la fin : exécutez genkey, revendiquez l’appareil, puis redémarrez le service.

*En échec : sans sudo: Sans sudo, le programme d’installation ne peut pas écrire dans /usr/local/bin.*

```
$ $ curl -fsSL https://get.wantastic.app/install.sh | sh
Platform: linux/amd64
Error: /usr/local/bin is not writable, but / is already read-write. Run this installer as root.
```

*Corrigé : sudo devant sh, puis genkey: Revendiquez l’appareil avec la Claim URL ou le QR code, appuyez sur Ctrl+C, puis redémarrez.*

```
$ $ curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
Done. wantasticd v1.0.54+377f3c0 is installed and running.
Claim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…&wantastic_server=https://console.wantastic.app
Device claimed. Configuration saved to /etc/wantastic/config.conf
$ $ sudo systemctl restart wantasticd
```

## Tableau récapitulatif

| Erreur | Solution la plus simple |
| --- | --- |
| Unsupported OS: X | Sous Windows, utilisez install.ps1. |
| Unsupported architecture: X | Installez manuellement à partir d’une archive tar correspondante. |
| Error: on macOS the installer needs root. | Placez sudo devant sh. |
| Error: <dir> is not writable… | Placez sudo devant sh, ou exécutez en root. |
| Error: could not remount <mount> read-write… | Exécutez en root ; un firmware verrouillé nécessite un chemin accessible en écriture. |
| Error: <dir> is still not writable after remounting <mount> | Libérez de l’espace sur la flash. |
| Error: curl or wget required | Installez curl ou wget. |
| HTTP <code> downloading <url> / wget failed: <url> | Corrigez le DNS, le bundle CA, l’horloge ou le proxy. |
| Error: could not determine latest version | Vérifiez l’accès à get.wantastic.app. |
| Error: invalid release version: X | Connectez-vous au portail captif ou contournez le proxy. |
| Error: binary not found in archive | Libérez de l’espace dans /tmp et réessayez. |
| Error: downloaded binary does not report target version V | Mauvaise version pour le CPU ou /tmp monté en noexec. |
| Skipping login… / … is empty / service did not start | Exécutez genkey, revendiquez, redémarrez le service. |
| Error: OpenRC service was not enabled | rc-update add wantasticd default. |
| Bootstrap failed: 5: Input/output error | launchctl bootout, puis relancez. |

## Verify the result

- Le programme d’installation affiche "Done. wantasticd <version> is installed and running."
- genkey affiche "Device claimed" après que vous avez cliqué sur Claim Device.
- wantasticd status affiche Connected après le redémarrage.

## Common issues

### Le programme d’installation refuse de s’exécuter sous Windows.

```
Unsupported OS: X
```

- **Where:** install.sh
- **Likely cause:** install.sh ne prend en charge que Linux et macOS.
- **Fix:** Utilisez plutôt install.ps1 : ouvrez PowerShell en tant qu’administrateur et collez cette ligne.

PowerShell (Admin):

```powershell
irm https://get.wantastic.app/install.ps1 | iex
```

- **Verify:** Le programme d’installation indique que le service est installé et s’exécute en tant que service Windows.

### Architecture non reconnue.

```
Unsupported architecture: X
Download manually from https://get.wantastic.app
```

- **Where:** install.sh
- **Likely cause:** Le type de CPU (par exemple ppc64, s390x ou loong64) n’a pas de build automatique.
- **Fix:** Téléchargez l’archive tar correspondante, installez-la, puis revendiquez l’appareil avec genkey.

Shell:

```bash
TAG=$(curl -fsSL https://get.wantastic.app/latest | cut -d+ -f1)
curl -fsSLO https://get.wantastic.app/$TAG/wantasticd-linux-<arch>.tar.gz
tar -xzf wantasticd-linux-<arch>.tar.gz
sudo install -m 755 wantasticd /usr/local/bin/
sudo wantasticd genkey
```

- **Verify:** genkey affiche "Device claimed".

### L’installation sur macOS s’arrête immédiatement.

```
Error: on macOS the installer needs root.
```

- **Where:** install.sh (macOS)
- **Likely cause:** Le programme d’installation n’a pas été lancé avec sudo.
- **Fix:** Lancez l’installation rapide avec sudo devant sh, puis revendiquez l’appareil.

1. Exécutez la commande.
2. Ouvrez la Claim URL, connectez-vous et cliquez sur Claim Device.
3. Après "Device claimed", appuyez sur Ctrl+C.
4. Exécutez : sudo launchctl kickstart -k system/com.wantastic.wantasticd

Terminal:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

- **Verify:** wantasticd status affiche Connected.

### Répertoire d’installation non accessible en écriture.

```
Error: <dir> is not writable. Run this installer as root.
```

- **Where:** install.sh
- **Likely cause:** Le programme d’installation n’a pas été exécuté en root.
- **Fix:** Lancez l’installation rapide avec sudo (sous OpenWrt et Alpine, connectez-vous en root).

Shell:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

- **Verify:** Le programme d’installation affiche "Done." et genkey affiche une Claim URL.

### La commande en une ligne échoue sous Linux alors que le système de fichiers est correct.

```
Error: <dir> is not writable, but <mount> is already read-write. Run this installer as root.
```

- **Where:** install.sh
- **Likely cause:** sudo a été placé devant curl ou omis, donc sh s’est exécuté avec votre utilisateur.
- **Fix:** Placez sudo devant sh, pas devant curl.

Shell:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

- **Verify:** Le programme d’installation affiche "Done."

### Le programme d’installation ne parvient pas à rendre un système de fichiers en lecture seule accessible en écriture.

```
Error: could not remount <mount> read-write. Run as root or unlock the filesystem.
```

- **Where:** install.sh (embarqué)
- **Likely cause:** Le firmware est en lecture seule ou verrouillé, ou vous n’êtes pas root.
- **Fix:** Exécutez en root. Si le firmware reste en lecture seule, installez le binaire manuellement dans un dossier accessible en écriture et définissez WANTASTIC_CONFIG_DIR.

- **Verify:** wantasticd version s’exécute.

### Le remontage a fonctionné mais le programme d’installation ne peut toujours pas écrire.

```
Error: <dir> is still not writable after remounting <mount>
```

- **Where:** install.sh
- **Likely cause:** La flash ou la partition est pleine.
- **Fix:** Libérez environ 15 MB, puis relancez le programme d’installation.

Shell:

```bash
df -h
df -h /overlay
```

- **Verify:** Le programme d’installation affiche "Done."

### Avertissement de restauration en lecture seule à la fin.

```
Warning: could not remount <mount> read-only
```

- **Where:** install.sh
- **Likely cause:** Le programme d’installation a rendu le système de fichiers accessible en écriture et n’a pas pu le rétablir. L’installation elle-même a réussi.
- **Fix:** Redémarrez quand cela vous convient.

- **Verify:** mount affiche le système de fichiers en ro après le redémarrage.

### Le programme d’installation ne trouve pas le point de montage.

```
Error: could not determine the mount containing <dir>
```

- **Where:** install.sh
- **Likely cause:** L’appareil a une disposition de montage inhabituelle.
- **Fix:** Installez le binaire manuellement dans un dossier accessible en écriture présent dans le PATH, puis exécutez genkey.

- **Verify:** wantasticd version fonctionne.

### Aucun outil de téléchargement.

```
Error: curl or wget required
```

- **Where:** install.sh
- **Likely cause:** L’image système ne contient ni curl ni wget.
- **Fix:** Installez l’un des deux, puis relancez l’installation rapide.

Shell:

```bash
apt-get install -y curl                          # Debian/Ubuntu
apk add curl ca-certificates                     # Alpine
opkg update && opkg install wget-ssl ca-bundle   # OpenWrt
```

- **Verify:** curl --version ou wget --version fonctionne.

### Le téléchargement échoue avec un code HTTP.

```
HTTP <code> downloading <url>
```

- **Where:** install.sh
- **Likely cause:** Le DNS, le HTTPS (bundle CA manquant ou horloge fausse), un proxy ou un pare-feu bloque le téléchargement.
- **Fix:** Vérifiez le DNS, l’horloge et le HTTPS avec ces commandes.

Shell:

```bash
nslookup get.wantastic.app
date -u
curl -v https://get.wantastic.app/latest
```

- **Verify:** La dernière commande affiche une version comme v1.0.54+377f3c0.

### Le téléchargement avec wget échoue sous OpenWrt ou BusyBox.

```
wget failed: <url>
```

- **Where:** install.sh
- **Likely cause:** wget ne prend pas en charge le HTTPS, le bundle CA est manquant, ou l’horloge est fausse.
- **Fix:** Installez la prise en charge du HTTPS et réglez l’horloge.

Shell:

```bash
opkg update && opkg install wget-ssl ca-bundle
ntpd -q -p pool.ntp.org
```

- **Verify:** wget -qO- https://get.wantastic.app/latest affiche une version.

### Impossible de trouver la dernière version.

```
Error: could not determine latest version
```

- **Where:** install.sh (install.ps1 : "Could not determine latest version.")
- **Likely cause:** L’appareil ne peut pas joindre https://get.wantastic.app/latest.
- **Fix:** Vérifiez le DNS, le HTTPS et le proxy, puis réessayez.

Shell:

```bash
curl -fsSL https://get.wantastic.app/latest
```

- **Verify:** Une chaîne de version s’affiche.

### La version ressemble à une page web.

```
Error: invalid release version: X
```

- **Where:** install.sh (install.ps1 : "Invalid release version: X")
- **Likely cause:** Un portail captif ou un proxy a renvoyé une page web au lieu de la version.
- **Fix:** Connectez-vous au portail captif, ou faites en sorte que get.wantastic.app contourne le proxy.

- **Verify:** curl -fsSL https://get.wantastic.app/latest n’affiche qu’une version.

### L’archive ne contient pas de binaire.

```
Error: binary not found in archive
```

- **Where:** install.sh (install.ps1 : "wantasticd.exe not found in archive.")
- **Likely cause:** Le téléchargement a été interrompu, souvent parce que /tmp est plein.
- **Fix:** Libérez de l’espace dans /tmp, puis relancez le programme d’installation.

Shell:

```bash
df -h /tmp
```

- **Verify:** Le programme d’installation affiche "wantasticd <version> installed."

### Le binaire ne s’exécute pas après le téléchargement.

```
Error: downloaded binary does not report target version V
Reported: …
```

- **Where:** install.sh
- **Likely cause:** /tmp est monté en noexec, ou le CPU ne peut pas exécuter ce build (ARMv6 Pi Zero/Pi 1, MIPS sans FPU).
- **Fix:** Utilisez un autre dossier temporaire. Sur ARMv6 ou MIPS sans FPU, utilisez plutôt la configuration WireGuard.

Shell:

```bash
sudo mkdir -p /var/tmp/wt && curl -fsSL https://get.wantastic.app/install.sh | sudo TMPDIR=/var/tmp/wt sh; sudo wantasticd genkey
```

- **Verify:** wantasticd version affiche la version cible.

### Le programme d’installation a ignoré la connexion lors d’une réinstallation.

```
Config already exists at <cfg> — skipping login.
```

- **Where:** install.sh
- **Likely cause:** C’est normal. Le programme d’installation n’écrase jamais une configuration existante.
- **Fix:** Ne faites rien pour conserver l’appareil. Pour l’inscrire comme nouvel appareil, supprimez la configuration et revendiquez-le à nouveau avec une nouvelle clé.

Shell:

```bash
sudo rm /etc/wantastic/config.conf
sudo wantasticd genkey --force
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** genkey affiche "Device claimed".

### L’étape de connexion a échoué pendant l’installation.

```
Login failed — <cfg> is empty. Edit it and re-run: wantasticd login
```

- **Where:** install.sh
- **Likely cause:** Le jeton a été refusé ou la console était injoignable. La raison est affichée au-dessus de cette ligne.
- **Fix:** Ignorez le jeton et revendiquez l’appareil avec genkey.

Shell:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** wantasticd status affiche Connected.

### Le programme d’installation s’est exécuté sans identifiants.

```
Skipping login. Run 'wantasticd login' to authenticate.
```

- **Where:** install.sh
- **Likely cause:** C’est normal pour l’installation rapide. L’appareil doit encore être revendiqué.
- **Fix:** Exécutez genkey, revendiquez l’appareil, appuyez sur Ctrl+C, puis redémarrez le service.

Shell:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** wantasticd status affiche Connected.

### Les deux options de serveur ont été passées.

```
Warning: both --server and --portal-url were provided; using --portal-url.
```

- **Where:** install.sh
- **Likely cause:** Les deux options sont en conflit.
- **Fix:** N’en passez qu’une : --portal-url pour un certificat valide, ou --server pour un certificat auto-signé.

- **Verify:** L’avertissement disparaît à l’exécution suivante.

### L’étape systemd échoue.

```
Error: systemd service did not start
```

- **Where:** install.sh
- **Likely cause:** L’appareil n’est pas encore revendiqué, la configuration est donc vide. C’est attendu avant la revendication.
- **Fix:** Exécutez genkey, revendiquez l’appareil, appuyez sur Ctrl+C, puis redémarrez le service.

Shell:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** systemctl is-active wantasticd affiche active.

### Unité systemd non activée.

```
Error: systemd service was not enabled
```

- **Where:** install.sh
- **Likely cause:** L’unité est masquée ou /etc est en lecture seule.
- **Fix:** Démasquez et activez le service.

Shell:

```bash
sudo systemctl unmask wantasticd
sudo systemctl enable --now wantasticd
```

- **Verify:** systemctl is-enabled wantasticd affiche enabled.

### Conteneur détecté comme systemd.

```
System has not been booted with systemd as init system
```

- **Where:** systemctl (dans les conteneurs)
- **Likely cause:** Le conteneur contient des fichiers systemd mais n’exécute pas systemd.
- **Fix:** Exécutez wantasticd au premier plan comme commande du conteneur, avec /dev/net/tun et NET_ADMIN.

Shell:

```bash
wantasticd connect --config /etc/wantastic/config.conf
```

- **Verify:** wantasticd status dans le conteneur affiche Connected.

### L’étape procd d’OpenWrt échoue.

```
Error: procd service did not become healthy
```

- **Where:** install.sh (OpenWrt)
- **Likely cause:** L’appareil n’est pas encore revendiqué, ou kmod-tun est manquant.
- **Fix:** Installez kmod-tun, revendiquez l’appareil avec genkey, puis redémarrez le service.

Shell (root):

```bash
opkg update && opkg install kmod-tun
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

- **Verify:** wantasticd status affiche Connected.

### Script procd manquant.

```
Error: procd service script was not installed
```

- **Where:** install.sh (OpenWrt)
- **Likely cause:** /etc/init.d n’est pas accessible en écriture car la flash est pleine ou en lecture seule.
- **Fix:** Libérez de l’espace sur la flash, puis relancez l’installation rapide.

Shell (root):

```bash
df -h /overlay
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

- **Verify:** /etc/init.d/wantasticd existe.

### Service Alpine non activé.

```
Error: OpenRC service was not enabled
```

- **Where:** install.sh (Alpine)
- **Likely cause:** rc-update a échoué.
- **Fix:** Activez et démarrez le service manuellement.

Shell (root):

```bash
rc-update add wantasticd default
rc-service wantasticd start
```

- **Verify:** rc-service wantasticd status affiche started.

### Aucun système d’init pris en charge.

```
Unknown init system — start manually: wantasticd connect --config <cfg>
```

- **Where:** install.sh
- **Likely cause:** Le programme d’installation n’a trouvé ni systemd, ni procd, ni OpenRC, ni SysV, ni /etc/init.d.
- **Fix:** Ajoutez la commande affichée à votre méthode de démarrage, par exemple rc.local.

- **Verify:** wantasticd status affiche Connected après un redémarrage.

### Le programme d’installation macOS indique que le service n’est pas resté actif (avant la revendication de l’appareil).

```
Error: wantasticd did not stay running. Last log lines:
```

- **Where:** install.sh (macOS)
- **Likely cause:** Avant la revendication, la configuration est vide, le service ne peut donc pas encore démarrer. C’est attendu sur une nouvelle installation.
- **Fix:** Ignorez le message. Exécutez genkey, revendiquez l’appareil, appuyez sur Ctrl+C, puis redémarrez le service.

Terminal:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

- **Verify:** sudo launchctl print system/com.wantastic.wantasticd affiche state = running.

### La vérification du plist a échoué.

```
Error: invalid <plist>
```

- **Where:** install.sh (macOS)
- **Likely cause:** Le fichier LaunchDaemon généré est endommagé.
- **Fix:** Désinstallez, puis relancez l’installation rapide.

Terminal:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --uninstall
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

- **Verify:** Le programme d’installation affiche "Service registered with launchd and running".

### Avertissement de signature sur macOS.

```
Warning: could not ad-hoc sign <bin>
```

- **Where:** install.sh (macOS)
- **Likely cause:** L’outil codesign est manquant ou a échoué.
- **Fix:** Signez le binaire manuellement.

Terminal:

```bash
xcode-select --install
sudo codesign -f -s - /usr/local/bin/wantasticd
```

- **Verify:** codesign -dv /usr/local/bin/wantasticd affiche Signature=adhoc.

### Erreur launchctl lors d’une réinstallation sur macOS.

```
Bootstrap failed: 5: Input/output error
```

- **Where:** launchctl (macOS)
- **Likely cause:** L’ancien service était encore en cours d’arrêt.
- **Fix:** Supprimez l’ancien service, puis relancez l’installation rapide.

Terminal:

```bash
sudo launchctl bootout system/com.wantastic.wantasticd
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

- **Verify:** Le programme d’installation affiche "Done."

## Continue with

- [Troubleshooting: start here](https://wantastic.app/fr/docs/troubleshooting): Fix most problems in 3 steps. If that does not work, find your exact error in the table and open the matching guide.
- [Choose your install method](https://wantastic.app/fr/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [Manual tarball install](https://wantastic.app/fr/docs/install-manual): Install wantasticd by hand from the release archive on any Linux CPU (including ppc64, s390x and loong64), claim it with genkey, and add your own service.
- [Login, token and claim errors](https://wantastic.app/fr/docs/errors-login-claim): Fix claim problems (genkey, QR code, Claim Device), "Login failed: …" messages and token errors.
- [macOS and Windows errors](https://wantastic.app/fr/docs/errors-macos-windows): launchd, Gatekeeper, tray, sc.exe and Windows service errors with the easiest fixes.
- [OpenWrt and embedded device errors](https://wantastic.app/fr/docs/errors-openwrt-embedded): kmod-tun, read-only flash, procd, full flash, wrong clocks and BusyBox issues on routers and modules.
