
内部ファイルを削除しましたが、/etc/apt/sources.list.d
ファイルには何もありません/etc/apt/sources.list
。apt
ディストリビューションをインストールしたときの状態に戻したいです。買戻契約など。
どのリポジトリが不可欠であり、それを自分の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 -cs
hirsute
この構文に従って、通常は実際のURLを設定し、通常のWebブラウザを使用してアクセスしてリポジトリの状態を確認できます。
http://apt.pop-os.org/proprietary/dists/
bionic
:このディレクトリは存在し、バージョン、、、、disco
およびのサブディレクトリを含みます。このサブディレクトリには、適切なストレージメタデータファイル、公開された各バイナリアーキテクチャのサブディレクトリを含むセクションのサブディレクトリ、ソースパッケージの別々のサブディレクトリが含まれています。リポジトリのこの部分はそのまま使用できます。eoan
focal
groovy
hirsute
impish
jammy
hirsute
main
source
http://apt.pop-os.org/release/dists/
:hirsute
サブディレクトリが存在しません。そしてそれだけですimpish
。jammy
http://apt.pop-os.org/staging-proprietary/dists/
:proprietary
上記のリポジトリと同様に、このリポジトリもそのまま動作しているようです。http://apt.pop-os.org/staging/master/dists/
:hirsute
サブディレクトリが存在しません。bionic
、focal
およびのみ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-updates
hirsute-backports
hirsute-proposed
ubuntu
~によると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
バージョンを取得できます。
重要なデータをすべてバックアップしてください。
/etc/apt/sources.list.d/
ディレクトリとファイルのファイルを編集して/etc/apt/sources.list
releaseキーワードhirsute
をimpish
。実行し
sudo apt update
、エラーなしで実行されていることを確認します。走る
sudo apt full-upgrade
。エラーが原因で停止した場合は、更新が報告されなくなるまでもう一度実行してみてください。その後、再起動して頑張ってください。成功した場合は、バージョン21.10 "
impish
"を使用する必要があり、system76.comのアップデート手順に従って現在のバージョンに更新することができます(上記のリンクを参照)。