カスタムソースAPTリポジトリの名前を変更するには?

カスタムソースAPTリポジトリの名前を変更するには?

私の/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:"
$

おすすめ記事