Skip to content

安装脚本报错:/etc/apt/sources.list.d/gitlab-jh.list: No such file or directory

Summary

ucloud 客户反馈安装 gitlab-jh 报错

客户链接: https://jihulab.com/jh-presales/north/-/issues/601

Steps to reproduce

  1. new ubuntu 22.04 server
  2. rm -rf /etc/apt/sources.list.d/,不知是云厂商精简了系统 还是 用户自己删除的
  3. curl -L get.gitlab.cn | bash

What is the current bug behavior?

error:

tee: /etc/apt/sources.list.d/gitlab-jh.list: No such file or directory

What is the expected correct behavior?

mkdir -p /etc/apt/sources.list.d/

Relevant logs and/or screenshots

image

Qian Zhang (Gary) 编辑于