Pop-OSディストリビューションに付属のデフォルトのリポジトリを入手するには?

Pop-OSディストリビューションに付属のデフォルトのリポジトリを入手するには?

内部ファイルを削除しましたが、/etc/apt/sources.list.dファイルには何もありません/etc/apt/sources.listaptディストリビューションをインストールしたときの状態に戻したいです。買戻契約など。

どのリポジトリが不可欠であり、それを自分のsources.listファイルとsources.list.dフォルダにどのように追加しますか?

実行時にエラーが発生します。sudo add-apt-repository "deb http://apt.pop-os.org/proprietary $(lsb_release -cs) main"

Repository: 'deb http://apt.pop-os.org/proprietary hirsute main'
Description:
Archive for codename: hirsute components: main
More info: http://apt.pop-os.org/proprietary
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-http_apt_pop-os_org_proprietary-hirsute.list
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_apt_pop-os_org_proprietary-hirsute.list
Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-http_apt_pop-os_org_proprietary-hirsute.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_apt_pop-os_org_proprietary-hirsute.list
Hit:1 http://apt.pop-os.org/proprietary hirsute InRelease
Ign:2 http://apt.pop-os.org/release hirsute InRelease
Hit:3 http://apt.pop-os.org/staging-proprietary hirsute InRelease
Ign:4 http://apt.pop-os.org/staging/master hirsute InRelease
Ign:5 http://apt.pop-os.org/ubuntu hirsute InRelease
Ign:6 http://apt.pop-os.org/ubuntu hirsute-security InRelease
Ign:7 http://apt.pop-os.org/ubuntu hirsute-updates InRelease
Ign:8 http://apt.pop-os.org/ubuntu hirsute-backports InRelease
Ign:9 http://apt.pop-os.org/ubuntu hirsute-proposed InRelease
Err:10 http://apt.pop-os.org/release hirsute Release
  404  Not Found [IP: 99.86.114.110 80]
Err:11 http://apt.pop-os.org/staging/master hirsute Release
  404  Not Found [IP: 99.86.114.110 80]
Err:12 http://apt.pop-os.org/ubuntu hirsute Release
  404  Not Found [IP: 99.86.114.110 80]
Err:13 http://apt.pop-os.org/ubuntu hirsute-security Release
  404  Not Found [IP: 99.86.114.110 80]
Err:14 http://apt.pop-os.org/ubuntu hirsute-updates Release
  404  Not Found [IP: 99.86.114.110 80]
Err:15 http://apt.pop-os.org/ubuntu hirsute-backports Release
  404  Not Found [IP: 99.86.114.110 80]
Err:16 http://apt.pop-os.org/ubuntu hirsute-proposed Release
  404  Not Found [IP: 99.86.114.110 80]
Reading package lists... Done
E: The repository 'http://apt.pop-os.org/release hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pop-os.org/staging/master hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pop-os.org/ubuntu hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pop-os.org/ubuntu hirsute-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pop-os.org/ubuntu hirsute-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pop-os.org/ubuntu hirsute-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pop-os.org/ubuntu hirsute-proposed Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

答え1

非常に包括的な文書があります。https://apt.pop-os.org/(検索エンジンでも簡単に見つけることができます。)

Webサイトには、これらの個別の標準リポジトリを手動で追加するためのコマンドがリストされています。必要に応じて、後で resources.list.d/ ファイルを 1 つにマージすることができますが、私が知っている限り利点はありません。

便利なpop!OSインストールはありませんが、通常、aptは/usr/share/doc/apt/examplesに最小限のデフォルトソースリストを提供します。

答え2

エラーメッセージは、デフォルトでhttp://apt.pop-os.org/proprietaryリポジトリが/etc/apt/sources.list.d/archive_uri-http_apt_pop-os_org_proprietary-hirsute.listファイルにすでに定義されていることを示します。そしてほとんどの設定済みリポジトリには、コード名バージョンが含まれていないようですhirsute

展開がインストールされたときに構成を復元してこの問題を解決することはできません。代わりに必ず見つけなければなりませんもしこのhirsuteバージョンはどこかにアーカイブされている場合は、そのアーカイブの正しいリポジトリURLを指すか、apt full-upgrade次のバージョンをhirsute実行してくださいimpish

aptパッケージのパッケージストア定義の.deb形式は次のとおりです。

deb|deb-src <repository URL> <release codename> <section name...>

単純な言語では、行はキーワードまたはで始まり、debその後deb-srcにリポジトリURL、リリースコード、および1つ以上の部品名が続きます。すべて空白で区切られます。

aptリポジトリにアクセスすると、次のようにこれらの要素を収集して実際のURLを形成します。

<repository URL>/dists/<release codename>/<section name>

これはコマンドが出力する内容であり、<release codename>システムの現在の状態に適用されます。lsb_release -cshirsute

この構文に従って、通常は実際のURLを設定し、通常のWebブラウザを使用してアクセスしてリポジトリの状態を確認できます。

  • http://apt.pop-os.org/proprietary/dists/bionic:このディレクトリは存在し、バージョン、、、、discoおよびのサブディレクトリを含みます。このサブディレクトリには、適切なストレージメタデータファイル、公開された各バイナリアーキテクチャのサブディレクトリを含むセクションのサブディレクトリ、ソースパッケージの別々のサブディレクトリが含まれています。リポジトリのこの部分はそのまま使用できます。eoanfocalgroovyhirsuteimpishjammyhirsutemainsource

  • http://apt.pop-os.org/release/dists/:hirsuteサブディレクトリが存在しません。そしてそれだけですimpishjammy

  • http://apt.pop-os.org/staging-proprietary/dists/proprietary上記のリポジトリと同様に、このリポジトリもそのまま動作しているようです。

  • http://apt.pop-os.org/staging/master/dists/:hirsuteサブディレクトリが存在しません。bionicfocalおよびのみjammy存在します。

  • http://apt.pop-os.org/ubuntu/dists/:サブディレクトリは多いですがhirsute、、hirsute-securityはありません。言及されたURLによると、これはPop!_OSパッケージのリポジトリであるように見え、デフォルトではそのUbuntuバージョンから直接コピーされました。 Ubuntu 21.04「Hirsute Hippo」のサポート終了日は2022年1月20日です。これは、Pop!_OSがこのバージョンのアップストリームサポートを提供できなくなることを意味します。hirsute-updateshirsute-backportshirsute-proposedubuntu

~によるとWikipediaのPop!_OSリリースリスト、現在のバージョンのPop!_OSの一般的なサポートは2022年1月22日に終了します。このバージョンは2022年7月に終了しました。現在のバージョンは22.04 LTS(コード名jammy)で、長期サポートバージョンなので、可能であればそのバージョンを使用するのが最善です。ただし、20.04(=以前のLTSバージョン)または21.10(=impish最新バージョンより前のバージョン)から22.04への更新のみが可能です。

~によるとPop!_オペレーティングシステムのアップグレード手順、以前のバージョンの最後のアップデートの1つから新しいバージョンにアップグレードするオプションを有効にする必要があります。しかし、あまりにも長い間待っていたので、System76.comはhirsute現在の問題の大部分を引き起こす古いリポジトリを大部分削除しました。

これはあなたの責任です、次の方法を試してimpishバージョンを取得できます。

  1. 重要なデータをすべてバックアップしてください。

  2. /etc/apt/sources.list.d/ディレクトリとファイルのファイルを編集して/etc/apt/sources.listreleaseキーワードhirsuteimpish

  3. 実行しsudo apt update、エラーなしで実行されていることを確認します。

  4. 走るsudo apt full-upgrade。エラーが原因で停止した場合は、更新が報告されなくなるまでもう一度実行してみてください。その後、再起動して頑張ってください。

  5. 成功した場合は、バージョン21.10 " impish"を使用する必要があり、system76.comのアップデート手順に従って現在のバージョンに更新することができます(上記のリンクを参照)。

関連情報