nginx نسخهٔ 1.30.5 را روی Ubuntu 22.04 از مخزن داخلی dacker نصب کنید؛ بدون خطای ۴۰۳ و با سرعت داخلی.
دستور زیر کامل است: کلید امضا، مخزن، نصب، راهاندازی و بررسی.
# 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-nginx.list -o /etc/apt/sources.list.d/dacker-nginx.list
۳نصب
# 3) Installsudo apt updatesudo apt install nginx
۴راهاندازی سرویس
# 4) Enable and start the servicesudo systemctl enable --now nginx
۵بررسی نصب
# 5) Check the installationnginx -v
نسخهٔ بستههای nginx روی Ubuntu 22.04
همهٔ بستههای مخزن nginx برای این توزیع، مستقیم از manifest مخزن. نام بستهها را برای apt install میتوانید استفاده کنید.
بسته
نسخه
nginx
1.30.5-1~jammy
خطاهای رایج نصب nginx روی Ubuntu 22.04
خطای NO_PUBKEY یا «is not signed» در apt update
output
W: GPG error: https://repo.dacker.ir/apt/nginx jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1363921AA23CD7DBE: The repository 'https://repo.dacker.ir/apt/nginx jammy InRelease' is not signed.
کلید امضای dacker روی سرور نیست یا فایل آن خراب است. مرحلهٔ ۱ بلوک بالا را دوباره اجرا کنید و بعد apt update را تکرار کنید.
یا فایل مخزن (مرحلهٔ ۲) اضافه نشده، یا بعد از آن apt update اجرا نشده. با دستور زیر ببینید apt بسته را از repo.dacker.ir میشناسد یا نه؛ اگر خروجی خالی بود، مرحلههای ۲ و ۳ را تکرار کنید.