「警告: 'oss_update'リポジトリが古いようです。別のミラーやサーバーを試してください。」というメッセージが表示されるのはなぜですか?

「警告: 'oss_update'リポジトリが古いようです。別のミラーやサーバーを試してください。」というメッセージが表示されるのはなぜですか?

WSLで実行しましたが、sudo zypper updateこのエラーメッセージが表示されました。

ストレージデータを読み込んでいます...
警告する:"oss_update"リポジトリが古いようです。別のミラーやサーバーを試してみてください。
インストールされているパッケージを読む...

することはありません。

ただし、実行するとsudo zypper refreshエラーメッセージは表示されません。

Retrieving repository 'The Go Programming Language (openSUSE_Leap_42.3)' metadata ...............................................................................................................................................[done]
Retrieving repository 'devel:languages:php (openSUSE_Leap_42.3)' metadata .......................................................................................................................................................[done]
Repository 'oss' is up to date.
Retrieving repository 'oss_update' metadata .....................................................................................................................................................................................[done]
Retrieving repository 'PHP7 extensions (php7_openSUSE_Leap_42.3)' metadata ......................................................................................................................................................[done]
All repositories have been refreshed

私が使用しているリポジトリのリストを確認しましたzypper lr -u

# | Alias                      | Name                                             | Enabled | GPG Check | Refresh | URI
--+----------------------------+--------------------------------------------------+---------+-----------+---------+-------------------------------------------------------------------------------------------------
1 | devel_languages_go         | The Go Programming Language (openSUSE_Leap_42.3) | Yes     | (r ) Yes  | No      | http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Leap_42.3/
2 | devel_languages_php        | devel:languages:php (openSUSE_Leap_42.3)         | Yes     | (r ) Yes  | No      | http://download.opensuse.org/repositories/devel:/languages:/php/openSUSE_Leap_42.3/
3 | oss                        | oss                                              | Yes     | (r ) Yes  | No      | http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/
4 | oss_update                 | oss_update                                       | Yes     | (r ) Yes  | No      | http://download.opensuse.org/update/leap/42.3/oss/
5 | server_php_extensions_php7 | PHP7 extensions (php7_openSUSE_Leap_42.3)        | Yes     | (r ) Yes  | No      | http://download.opensuse.org/repositories/server:/php:/extensions:/php7/php7_openSUSE_Leap_42.3/

内容を確認してみるhttp://download.opensuse.org/update/leap/42.3/oss/、ファイルとディレクトリが2018年3月23日に更新されたため、最新ではないようです。

リポジトリが古くなったというエラーメッセージが表示されるのはなぜですか?使用しているリポジトリをどのように変更しますか?何を使うべきですか?

ベストアンサー1

私は答えを見つけましたhttps://www.reddit.com/r/bashonubuntuonwindows/comments/8fcbs5/update_of_opensuse_on_wsl_error/:リポジトリURIをHTTPからHTTPSに変更する必要があります。私はこれを行い、新しいパッケージを見ることができました。私はossとoss_updateリポジトリだけを持っているので、従うべきプロセスは次のとおりです。

sudo zypper rr oss
sudo zypper rr oss_update
sudo zypper ar https://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/ oss
sudo zypper ar https://download.opensuse.org/update/leap/42.3/oss/ oss_update

sudo zypper ref
sudo zypper up

これがあなたのバージョンで機能することを確認するには、上記のURLでシステムのバージョン番号を.に置き換えてください42.3。 (ブラウザでURLを開いて有効であることを確認できます。)次のコマンドの出力を確認できます。バージョン番号は以下で確認できます。

cat /etc/os-release

おすすめ記事