プロジェクト

全般

プロフィール

サポート #91

未完了

Windows10のWSLで入れたOpenSUSE Leap 42をLeap 15へアップグレード

高橋 徹 さんがほぼ5年前に追加. ほぼ5年前に更新.

ステータス:
進行中
優先度:
通常
担当者:
カテゴリ:
-
対象バージョン:
-
開始日:
2019/05/18
期日:
進捗率:

50%

予定工数:

説明

OpenSUSE は、Leap 42バージョンの次のメジャーバージョンがLeap 15となりました。
数字が小さくなっているのは、OpenSUSEのサーバー製品に合わせるためとのことです。

で、Windows 10 Home版に入れているWSL上のOpenSUSE Leap 42をまずはアップグレードしてみます。
ダメなら、新規に入れることとします。

高橋 徹 さんがほぼ5年前に更新

  • ステータス新規 から 進行中 に変更
  • 進捗率0 から 50 に変更

sudo zypper -n update

$ sudo zypper -n update
Loading repository data...
Warning: Repository 'oss_update' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...

Nothing to do.

となってしまいました。調べると、WSL上で同じエラーとなっている掲示板あり。
https://unix.stackexchange.com/questions/433240/why-do-i-get-warning-repository-oss-update-appears-to-be-outdated-consider

この回答に沿って設定を変更

~$ sudo zypper rr oss                                                                                   
Removing repository 'oss' ........................................................................[done]
Repository 'oss' has been removed.                                                                      
~$ sudo zypper rr oss_update                                                                            
Removing repository 'oss_update' .................................................................[done]
Repository 'oss_update' has been removed.                                                               
~$ sudo zypper ar https://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/ oss               
Adding repository 'oss' ..........................................................................[done]
Repository 'oss' successfully added                                                                     

URI         : https://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/                       
Enabled     : Yes                                                                                       
GPG Check   : Yes                                                                                       
Autorefresh : No                                                                                        
Priority    : 99 (default priority)                                                                     

Repository priorities are without effect. All enabled repositories share the same priority.             
~$ sudo zypper ar https://download.opensuse.org/update/leap/42.3/oss/ oss_update                        
Adding repository 'oss_update' ...................................................................[done]
Repository 'oss_update' successfully added                                                              

URI         : https://download.opensuse.org/update/leap/42.3/oss/                                       
Enabled     : Yes                                                                                       
GPG Check   : Yes                                                                                       
Autorefresh : No                                                                                        
Priority    : 99 (default priority)                                                                     

Repository priorities are without effect. All enabled repositories share the same priority.             
~$ sudo zypper ref
Retrieving repository 'oss' metadata .............................................................[done]
Building repository 'oss' cache ..................................................................[done]
Retrieving repository 'oss_update' metadata ......................................................[done]
Building repository 'oss_update' cache ...........................................................[done]
All repositories have been refreshed.
~$ sudo zypper up
  :

で、ステップ1完了

高橋 徹 さんがほぼ5年前に更新

sudo systemctl set-default multi-user

~$ sudo systemctl set-default multi-user                                                                
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.   

sudo reboot

WSLのLinuxの場合、rebootはないのでは~?と思って実行したらやはりだめでした。ま、リブート不要なはずなので次に進みます。

高橋 徹 さんがほぼ5年前に更新

パッケージリポジトリをLeap 15に変更

/etc/zypp/repos.d/ の下にある、oss.repoとoss_update.repoに記載されているURL中にあるバージョン番号の42.3を15.0に書き換えます。

  • oss.repo
    - baseurl=https://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/
    + baseurl=https://download.opensuse.org/distribution/leap/15.0/repo/oss/suse/
    
  • oss_update.repo
    - baseurl=https://download.opensuse.org/update/leap/42.3/oss/
    + baseurl=https://download.opensuse.org/update/leap/15.0/oss/
    
repos.d$ sudo zypper --gpg-auto-import-keys refresh                                                  
File '/repodata/repomd.xml' not found on medium 'https://download.opensuse.org/distribution/leap/15.0
po/oss/suse/'                                                                                        
Abort, retry, ignore? [a/r/i/...? shows all options] (a):                                            

URLをブラウザで開いてみると、oss.repoのURLのパスが少し変更になっていました。

- baseurl=https://download.opensuse.org/distribution/leap/15.0/repo/oss/suse/
+ baseurl=https://download.opensuse.org/distribution/leap/15.0/repo/oss/

これでOK

repos.d$ sudo zypper --gpg-auto-import-keys refresh
Retrieving repository 'oss' metadata .............................................................[done]
Retrieving repository 'oss_update' metadata ......................................................[done]
All repositories have been refreshed.

エラー(leap 42.3のftpをダウンロードしようとしてエラー)となってしまい、解決策が見いだせず、頓挫

他の形式にエクスポート: Atom PDF