
사전 설정이 원하는 대로 거의 작동하고 있지만 어떤 이유에서인지 두 저장소를 source.list 파일에 추가할 수 없습니다. 항상 확인할 수 없다고 주석 처리되어 있습니다.
late_command 스크립트에 넣을 수 있다는 것을 알고 있지만 cfg 파일에 넣고 싶습니다.
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string http://xxx.xxx.xxx.xxx:xxxxx
## Setup GITLAB-MULTI-CI-RUNNER
d-i apt-setup/local0/repository string deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/debian/ stretch main
d-i apt-setup/local0/source boolean true
d-i apt-setup/local0/key string https://packages.gitlab.com/runner/gitlab-runner/gpgkey
## Setup DOCKER
d-i apt-setup/local1/repository string deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
d-i apt-setup/local1/source boolean false
d-i apt-setup/local1/key string https://download.docker.com/linux/debian/gpg
d-i debian-installer/allow_unauthenticated boolean true
제가 놓친 줄 이 있나요? d-i
아니면 그렇게 하는 것이 전혀 불가능합니까?
답변1
적어도 docker 저장소에서는 똑같은 문제가 발생한 것 같습니다. 나는 그것이 그것이 사용된다는 사실과 관련이 있다고 생각합니다.https대신에http운송으로. 둘 중 하나 apt-transport-https
또는 ca-certificates
둘 다 기본적으로 설치되지 않았기 때문에 사전 설정 설치 프로그램이 저장소 확인에 실패하여 /etc/apt/sources.list
.
late_command
제 경우에는 필요한 패키지를 설치한 다음 a를 사용하여 설치 후 저장소를 활성화하여 문제를 해결했습니다 .
d-i pkgsel/include string ca-certificates apt-transport-https
그리고
d-i preseed/late_command string in-target sed -i 's/^#deb https:/deb https:/g' /etc/apt/sources.list
나는 이것이 일종의 해킹이라는 점에 동의하지만 이것이 내가 생각해 낼 수 있는 최선입니다.