dacker

نصب GitLab CE روی Ubuntu 22.04 (jammy)

GitLab CE نسخهٔ 19.4.1 را روی Ubuntu 22.04 از مخزن داخلی dacker نصب کنید؛ بدون خطای ۴۰۳ و با سرعت داخلی. دستور زیر کامل است: کلید امضا، مخزن، نصب، راه‌اندازی و بررسی.

  • نسخه: 19.4.1
  • حجم مخزن: 1.0 GB
  • مدیر بسته: apt
  • آخرین تغییر:
  • مجوز: MIT

دستور نصب GitLab CE روی Ubuntu 22.04

GitLab CE19.4.1

  • Ubuntu 22.04
  • 1.0 GB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-gitlab-ce.list -o /etc/apt/sources.list.d/dacker-gitlab-ce.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install gitlab-ce
  4. ۴پیکربندی اولیه

    پیش از این مرحله، مقدار external_url را در /etc/gitlab/gitlab.rb به نشانی واقعی سرورتان تغییر دهید (یا هنگام نصب، متغیر EXTERNAL_URL را بدهید)؛ وگرنه GitLab با نشانی پیش‌فرض پیکربندی می‌شود.

    # 4) Initial setupsudo gitlab-ctl reconfigure
  5. ۵بررسی نصب
    # 5) Check the installationsudo gitlab-ctl status

نسخهٔ بسته‌های GitLab CE روی Ubuntu 22.04

همهٔ بسته‌های مخزن gitlab-ce برای این توزیع، مستقیم از manifest مخزن. نام بسته‌ها را برای apt install می‌توانید استفاده کنید.

بستهنسخه
gitlab-ce19.4.1-ce.0

خطاهای رایج نصب GitLab CE روی Ubuntu 22.04

خطای NO_PUBKEY یا «is not signed» در apt update

output
W: GPG error: https://repo.dacker.ir/apt/gitlab-ce 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/gitlab-ce jammy InRelease' is not signed.

کلید امضای dacker روی سرور نیست یا فایل آن خراب است. مرحلهٔ ۱ بلوک بالا را دوباره اجرا کنید و بعد apt update را تکرار کنید.

bash · Ubuntu 22.04
sudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpgsudo apt update

بررسی اثر انگشت کلید ←

«Unable to locate package gitlab-ce»

output
E: Unable to locate package gitlab-ce

یا فایل مخزن (مرحلهٔ ۲) اضافه نشده، یا بعد از آن apt update اجرا نشده. با دستور زیر ببینید apt بسته را از repo.dacker.ir می‌شناسد یا نه؛ اگر خروجی خالی بود، مرحله‌های ۲ و ۳ را تکرار کنید.

bash · Ubuntu 22.04
apt-cache policy gitlab-ce

مرتبط

روی توزیع دیگری هستید؟

معمولاً کنار GitLab روی Ubuntu 22.04 نصب می‌شوند:

همهٔ نسخه‌ها و توزیع‌های GitLab CE ← · همهٔ محصولات برای Ubuntu 22.04 ←