---
title: "أخطاء المثبّت (install.sh وinstall.ps1) | Wantastic Docs"
description: "كل رسالة تطبعها مثبّتات Wantastic عند توقفها، ومعناها، وأسهل طريقة لإصلاحها."
url: "https://wantastic.app/ar/docs/errors-installer"
category: "Troubleshooting"
reading_time: "6 دقائق"
---

# أخطاء المثبّت (install.sh وinstall.ps1)

كل رسالة تطبعها مثبّتات Wantastic عند توقفها، ومعناها، وأسهل طريقة لإصلاحها.

> **Outcome:** ينتهي المثبّت برسالة "Done. wantasticd <version> is installed and running." ويُطالَب بالجهاز.

## Before you start

- sudo على Linux وmacOS، أو shell بصلاحيات root على OpenWrt وAlpine، أو PowerShell كمسؤول على Windows.

## قبل أن تبدأ

- السطر الذي يبدأ بـ "Error:" يوقف المثبّت. أما السطر الذي يبدأ بـ "Warning:" فلا يوقفه.
- إعادة تشغيل المثبّت آمنة. فهو يحتفظ بإعداداتك ويحتفظ بالملف التنفيذي القديم باسم .previous.
- تُحل معظم الأخطاء بتشغيل التثبيت السريع باستخدام sudo، تمامًا كما هو موضح أدناه.

Linux وmacOS:

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

OpenWrt وAlpine (بصلاحيات root):

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

## ما يجب التحقق منه

1. خطأ في الصلاحيات ("not writable"، "needs root"): ضع sudo قبل sh.
2. خطأ في التنزيل ("HTTP …"، "wget failed"، "latest version"): تحقّق من DNS وHTTPS والساعة.
3. خطأ في الخدمة في النهاية: شغّل genkey، وطالب بالجهاز، ثم أعد تشغيل الخدمة.

*فشل: بدون sudo: بدون sudo، لا يستطيع المثبّت الكتابة في /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.
```

*الحل: sudo قبل sh، ثم genkey: طالب بالجهاز باستخدام Claim URL أو رمز QR، واضغط Ctrl+C، ثم أعد التشغيل.*

```
$ $ 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
```

## جدول سريع

| الخطأ | أسهل حل |
| --- | --- |
| Unsupported OS: X | على Windows، استخدم install.ps1. |
| Unsupported architecture: X | ثبّت يدويًا من أرشيف tarball مطابق. |
| Error: on macOS the installer needs root. | ضع sudo قبل sh. |
| Error: <dir> is not writable… | ضع sudo قبل sh، أو شغّل بصلاحيات root. |
| Error: could not remount <mount> read-write… | شغّل بصلاحيات root؛ البرامج الثابتة المقفلة تحتاج إلى مسار قابل للكتابة. |
| Error: <dir> is still not writable after remounting <mount> | حرّر مساحة في ذاكرة الفلاش. |
| Error: curl or wget required | ثبّت curl أو wget. |
| HTTP <code> downloading <url> / wget failed: <url> | أصلح DNS أو حزمة شهادات CA أو الساعة أو الوكيل. |
| Error: could not determine latest version | تحقّق من الوصول إلى get.wantastic.app. |
| Error: invalid release version: X | سجّل الدخول إلى بوابة الاتصال (captive portal) أو تجاوز الوكيل. |
| Error: binary not found in archive | حرّر مساحة في /tmp وأعد المحاولة. |
| Error: downloaded binary does not report target version V | إصدار خاطئ لنوع المعالج أو /tmp مركّب بخيار noexec. |
| Skipping login… / … is empty / service did not start | شغّل genkey، وطالب بالجهاز، وأعد تشغيل الخدمة. |
| Error: OpenRC service was not enabled | rc-update add wantasticd default. |
| Bootstrap failed: 5: Input/output error | launchctl bootout، ثم أعد التشغيل. |

## Verify the result

- يطبع المثبّت "Done. wantasticd <version> is installed and running."
- يطبع genkey الرسالة "Device claimed" بعد النقر على "Claim Device".
- يعرض wantasticd status الحالة Connected بعد إعادة التشغيل.

## Common issues

### يرفض المثبّت العمل على Windows.

```
Unsupported OS: X
```

- **Where:** install.sh
- **Likely cause:** يدعم install.sh نظامي Linux وmacOS فقط.
- **Fix:** استخدم install.ps1 بدلًا من ذلك: افتح PowerShell كمسؤول والصق هذا السطر.

PowerShell (مسؤول):

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

- **Verify:** يقول المثبّت إن الخدمة مثبتة وتعمل كخدمة Windows.

### لم يتم التعرف على المعمارية.

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

- **Where:** install.sh
- **Likely cause:** نوع المعالج (مثل ppc64 أو s390x أو loong64) ليس له إصدار تلقائي.
- **Fix:** نزّل أرشيف tarball المطابق، وثبّته، ثم طالب بالجهاز باستخدام 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 الرسالة "Device claimed".

### يتوقف التثبيت على macOS فورًا.

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

- **Where:** install.sh (macOS)
- **Likely cause:** لم يُشغَّل المثبّت باستخدام sudo.
- **Fix:** شغّل التثبيت السريع مع وضع sudo قبل sh، ثم طالب بالجهاز.

1. شغّل الأمر.
2. افتح Claim URL، وسجّل الدخول، وانقر "Claim Device".
3. بعد ظهور "Device claimed"، اضغط Ctrl+C.
4. شغّل: 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 القيمة Connected.

### مجلد التثبيت غير قابل للكتابة.

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

- **Where:** install.sh
- **Likely cause:** لم يُشغَّل المثبّت بصلاحيات root.
- **Fix:** شغّل التثبيت السريع باستخدام sudo (على OpenWrt وAlpine، سجّل الدخول بصلاحيات root).

Shell:

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

- **Verify:** يطبع المثبّت "Done." ويعرض genkey رابط Claim URL.

### يفشل الأمر المختصر على Linux رغم أن نظام الملفات سليم.

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

- **Where:** install.sh
- **Likely cause:** وُضع sudo قبل curl أو أُهمل، فشُغّل sh بصلاحيات مستخدمك.
- **Fix:** ضع sudo قبل sh، وليس قبل curl.

Shell:

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

- **Verify:** يطبع المثبّت "Done."

### لا يستطيع المثبّت جعل نظام ملفات للقراءة فقط قابلًا للكتابة.

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

- **Where:** install.sh (الأنظمة المدمجة)
- **Likely cause:** البرامج الثابتة للقراءة فقط أو مقفلة، أو أنك لست root.
- **Fix:** شغّل بصلاحيات root. إذا بقيت البرامج الثابتة للقراءة فقط، فثبّت الملف التنفيذي يدويًا في مجلد قابل للكتابة واضبط WANTASTIC_CONFIG_DIR.

- **Verify:** يعمل wantasticd version.

### نجحت إعادة التركيب لكن المثبّت لا يزال غير قادر على الكتابة.

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

- **Where:** install.sh
- **Likely cause:** ذاكرة الفلاش أو القسم ممتلئ.
- **Fix:** حرّر نحو 15 MB، ثم شغّل المثبّت مجددًا.

Shell:

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

- **Verify:** يطبع المثبّت "Done."

### تحذير بشأن استعادة وضع القراءة فقط في النهاية.

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

- **Where:** install.sh
- **Likely cause:** جعل المثبّت نظام الملفات قابلًا للكتابة ولم يتمكن من إعادته. التثبيت نفسه نجح.
- **Fix:** أعد التشغيل في وقت مناسب.

- **Verify:** يعرض mount نظام الملفات بوضع ro بعد إعادة التشغيل.

### لا يستطيع المثبّت العثور على نقطة التركيب.

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

- **Where:** install.sh
- **Likely cause:** للجهاز تخطيط تركيب غير معتاد.
- **Fix:** ثبّت الملف التنفيذي يدويًا في مجلد قابل للكتابة ضمن PATH، ثم شغّل genkey.

- **Verify:** يعمل wantasticd version.

### لا توجد أداة تنزيل.

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

- **Where:** install.sh
- **Likely cause:** صورة النظام لا تحتوي على curl ولا wget.
- **Fix:** ثبّت إحداهما، ثم شغّل التثبيت السريع مجددًا.

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 أو wget --version.

### يفشل التنزيل مع رمز HTTP.

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

- **Where:** install.sh
- **Likely cause:** يحظر DNS أو HTTPS (حزمة CA مفقودة أو ساعة خاطئة) أو وكيل أو جدار حماية عملية التنزيل.
- **Fix:** تحقّق من DNS والساعة وHTTPS بهذه الأوامر.

Shell:

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

- **Verify:** يطبع الأمر الأخير إصدارًا مثل v1.0.54+377f3c0.

### يفشل التنزيل عبر wget على OpenWrt أو BusyBox.

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

- **Where:** install.sh
- **Likely cause:** لا يدعم wget بروتوكول HTTPS، أو حزمة CA مفقودة، أو الساعة خاطئة.
- **Fix:** ثبّت دعم HTTPS واضبط الساعة.

Shell:

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

- **Verify:** يطبع wget -qO- https://get.wantastic.app/latest إصدارًا.

### تعذّر العثور على أحدث إصدار.

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

- **Where:** install.sh (install.ps1: "Could not determine latest version.")
- **Likely cause:** لا يستطيع الجهاز الوصول إلى https://get.wantastic.app/latest.
- **Fix:** تحقّق من DNS وHTTPS والوكيل، ثم أعد المحاولة.

Shell:

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

- **Verify:** يُطبع نص الإصدار.

### يبدو الإصدار كأنه صفحة ويب.

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

- **Where:** install.sh (install.ps1: "Invalid release version: X")
- **Likely cause:** أعادت بوابة اتصال (captive portal) أو وكيل صفحة ويب بدلًا من الإصدار.
- **Fix:** سجّل الدخول إلى بوابة الاتصال، أو اجعل get.wantastic.app يتجاوز الوكيل.

- **Verify:** يطبع curl -fsSL https://get.wantastic.app/latest الإصدار فقط.

### الأرشيف لا يحتوي على الملف التنفيذي.

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

- **Where:** install.sh (install.ps1: "wantasticd.exe not found in archive.")
- **Likely cause:** انقطع التنزيل قبل اكتماله، غالبًا لأن /tmp ممتلئ.
- **Fix:** حرّر مساحة في /tmp، ثم شغّل المثبّت مجددًا.

Shell:

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

- **Verify:** يطبع المثبّت "wantasticd <version> installed."

### لا يعمل الملف التنفيذي بعد التنزيل.

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

- **Where:** install.sh
- **Likely cause:** /tmp مركّب بخيار noexec، أو أن المعالج لا يستطيع تشغيل هذا الإصدار (ARMv6 مثل Pi Zero/Pi 1، أو MIPS بدون FPU).
- **Fix:** استخدم مجلدًا مؤقتًا آخر. على ARMv6 أو MIPS بدون FPU، استخدم إعدادات 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 الإصدار المستهدف.

### تخطّى المثبّت تسجيل الدخول عند إعادة التثبيت.

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

- **Where:** install.sh
- **Likely cause:** هذا طبيعي. لا يستبدل المثبّت أبدًا ملف إعدادات موجودًا.
- **Fix:** لا تفعل شيئًا للاحتفاظ بالجهاز. لتسجيله كجهاز جديد، أزل ملف الإعدادات وطالب بالجهاز مجددًا بمفتاح جديد.

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 الرسالة "Device claimed".

### فشلت خطوة تسجيل الدخول أثناء التثبيت.

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

- **Where:** install.sh
- **Likely cause:** رُفض الرمز المميز أو تعذّر الوصول إلى الكونسول. السبب مطبوع فوق هذا السطر.
- **Fix:** تجاوز الرمز المميز وطالب بالجهاز باستخدام genkey.

Shell:

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

- **Verify:** يعرض wantasticd status القيمة Connected.

### شُغّل المثبّت دون بيانات اعتماد.

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

- **Where:** install.sh
- **Likely cause:** هذا طبيعي في التثبيت السريع. لا يزال الجهاز بحاجة إلى المطالبة به.
- **Fix:** شغّل genkey، وطالب بالجهاز، واضغط Ctrl+C، ثم أعد تشغيل الخدمة.

Shell:

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

- **Verify:** يعرض wantasticd status القيمة Connected.

### تم تمرير خياري الخادم كليهما.

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

- **Where:** install.sh
- **Likely cause:** الخياران متعارضان.
- **Fix:** مرّر خيارًا واحدًا فقط: --portal-url لشهادة صالحة، أو --server لشهادة موقّعة ذاتيًا.

- **Verify:** يختفي التحذير في التشغيل التالي.

### فشلت خطوة systemd.

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

- **Where:** install.sh
- **Likely cause:** لم تتم المطالبة بالجهاز بعد، لذا فملف الإعدادات فارغ. هذا متوقع قبل المطالبة.
- **Fix:** شغّل genkey، وطالب بالجهاز، واضغط Ctrl+C، ثم أعد تشغيل الخدمة.

Shell:

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

- **Verify:** يطبع systemctl is-active wantasticd القيمة active.

### وحدة systemd غير مفعّلة.

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

- **Where:** install.sh
- **Likely cause:** الوحدة مقنّعة (masked) أو أن /etc للقراءة فقط.
- **Fix:** ألغِ إقناع الخدمة وفعّلها.

Shell:

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

- **Verify:** يطبع systemctl is-enabled wantasticd القيمة enabled.

### اكتُشفت الحاوية على أنها systemd.

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

- **Where:** systemctl (داخل الحاويات)
- **Likely cause:** تحتوي الحاوية على ملفات systemd لكنها لا تشغّل systemd.
- **Fix:** شغّل wantasticd في الواجهة الأمامية كأمر الحاوية، مع /dev/net/tun وNET_ADMIN.

Shell:

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

- **Verify:** يعرض wantasticd status في الحاوية الحالة Connected.

### فشلت خطوة procd على OpenWrt.

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

- **Where:** install.sh (OpenWrt)
- **Likely cause:** لم تتم المطالبة بالجهاز بعد، أو أن kmod-tun مفقود.
- **Fix:** ثبّت kmod-tun، وطالب بالجهاز باستخدام genkey، ثم أعد تشغيل الخدمة.

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 القيمة Connected.

### سكربت procd مفقود.

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

- **Where:** install.sh (OpenWrt)
- **Likely cause:** /etc/init.d غير قابل للكتابة لأن ذاكرة الفلاش ممتلئة أو للقراءة فقط.
- **Fix:** حرّر مساحة في ذاكرة الفلاش، ثم شغّل التثبيت السريع مجددًا.

Shell (root):

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

- **Verify:** /etc/init.d/wantasticd موجود.

### خدمة Alpine غير مفعّلة.

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

- **Where:** install.sh (Alpine)
- **Likely cause:** فشل rc-update.
- **Fix:** فعّل الخدمة وشغّلها يدويًا.

Shell (root):

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

- **Verify:** يعرض rc-service wantasticd status الحالة started.

### لا يوجد نظام init مدعوم.

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

- **Where:** install.sh
- **Likely cause:** لم يعثر المثبّت على systemd أو procd أو OpenRC أو SysV أو /etc/init.d.
- **Fix:** أضف الأمر المطبوع إلى طريقة بدء التشغيل لديك، مثل rc.local.

- **Verify:** يعرض wantasticd status الحالة Connected بعد إعادة التشغيل.

### يقول مثبّت macOS إن الخدمة لم تستمر في العمل (قبل المطالبة بالجهاز).

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

- **Where:** install.sh (macOS)
- **Likely cause:** قبل المطالبة يكون ملف الإعدادات فارغًا، لذا لا يمكن للخدمة أن تبدأ بعد. هذا متوقع في التثبيت الجديد.
- **Fix:** تجاهل الرسالة. شغّل genkey، وطالب بالجهاز، واضغط Ctrl+C، ثم أعد تشغيل الخدمة.

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 القيمة state = running.

### فشل فحص ملف plist.

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

- **Where:** install.sh (macOS)
- **Likely cause:** ملف LaunchDaemon المُنشأ تالف.
- **Fix:** ألغِ التثبيت، ثم شغّل التثبيت السريع مجددًا.

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:** يطبع المثبّت "Service registered with launchd and running".

### تحذير توقيع على macOS.

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

- **Where:** install.sh (macOS)
- **Likely cause:** أداة codesign مفقودة أو فشلت.
- **Fix:** وقّع الملف التنفيذي يدويًا.

Terminal:

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

- **Verify:** يعرض codesign -dv /usr/local/bin/wantasticd القيمة Signature=adhoc.

### خطأ launchctl عند إعادة التثبيت على macOS.

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

- **Where:** launchctl (macOS)
- **Likely cause:** كانت الخدمة القديمة لا تزال قيد الإيقاف.
- **Fix:** أزل الخدمة القديمة، ثم شغّل التثبيت السريع مجددًا.

Terminal:

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

- **Verify:** يطبع المثبّت "Done."

## Continue with

- [Troubleshooting: start here](https://wantastic.app/ar/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/ar/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/ar/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/ar/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/ar/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/ar/docs/errors-openwrt-embedded): kmod-tun, read-only flash, procd, full flash, wrong clocks and BusyBox issues on routers and modules.
