![사용자 정의 소스 APT 저장소의 이름을 바꾸는 방법은 무엇입니까?](https://linux55.com/image/161415/%EC%82%AC%EC%9A%A9%EC%9E%90%20%EC%A0%95%EC%9D%98%20%EC%86%8C%EC%8A%A4%20APT%20%EC%A0%80%EC%9E%A5%EC%86%8C%EC%9D%98%20%EC%9D%B4%EB%A6%84%EC%9D%84%20%EB%B0%94%EA%BE%B8%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
내 /etc/apt/sources.list.d/에는 다음 줄이 있습니다.
deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_9.0/ /
deb http://repo.percona.com/percona/apt stretch main
deb-src http://repo.percona.com/percona/apt stretch main
이러한 추가 소스의 이름을 무엇으로 지정해야 할지 모르겠습니다. 원래 저장소에는 "oldstable"과 같은 이름이 있는데 여기에 사용자 정의 이름을 어떻게 추가합니까? "알 수 없음"으로 표시되어 있습니다.
이것을 입력하면 apt list -a percona-server-server fish
다음과 같은 결과가 나타납니다.
fish/stretch-backports,now 3.0.2-2~bpo9+1 amd64 [installed]
fish/unknown 3.0.2-1 amd64
fish/oldstable 2.4.0-1 amd64
percona-server-server/unknown 5.6.45-86.1-1.stretch amd64
답변1
나는 이것이 불가능하다고 생각한다.
출력의 식별자는 apt list
다음에서 파생됩니다.모음곡메타데이터 정보는 저장소 Release
나 InRelease
파일에 있으며 로컬로 재정의할 수 없습니다.
$ curl -s -L https://deb.debian.org/debian/dists/stretch/Release | grep "^Suite:"
Suite: oldstable
$ curl -s -L https://deb.debian.org/debian/dists/stretch-backports/Release | grep "^Suite:"
Suite: stretch-backports
귀하의 저장소 중 어느 쪽도 파일에 해당 필드가 설정되어 있지 않습니다. Release
이는 apt의 기본값이 입니다 unknown
.
$ curl -s -L https://repo.percona.com/percona/apt/dists/stretch/Release | grep "^Suite:"
$ curl -s -L https://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_9.0/Release | grep "^Suite:"
$