0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSL 1 is not supported. Please upgrade to WSL 2 or above と出たときの対処法:for Error code: Wsl/UpdatePackage/0x80248014

Posted at

背景

npm で build しようとしていて、UNCパスだからー動かせない!とか怒られた
wsl2 なのに、なんでそんなん出るん?と思いつつも、
ネットワークドライブへのマッピングで対処しようとしたりしてたら・・

npm コマンド実行時にこのメッセージが出て、一苦労した際の備忘録

error
WSL 1 is not supported. Please upgrade to WSL 2 or above

version 確認すると、ubuntu は問題ないのに、wsl version が動見ても古い・・

ダメだった時の version

wsl 2 が wsl 1 上で動いていた際
> wsl -v
WSL バージョン: 1.1.3.0
カーネル バージョン: 5.15.90.1
WSLg バージョン: 1.0.49
MSRDC バージョン: 1.2.3770
Direct3D バージョン: 1.608.2-61064218
DXCore バージョン: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windowsバージョン: 10.0.22621.3737

アップデート後の version

wsl 2 回復
> wsl -v
WSL バージョン: 2.2.4.0
カーネル バージョン: 5.15.153.1-2
WSLg バージョン: 1.0.61
MSRDC バージョン: 1.2.5326
Direct3D バージョン: 1.611.1-81528511
DXCore バージョン: 10.0.26091.1-240325-1447.ge-release
Windows バージョン: 10.0.22621.3737

結論

:ok: 単純に、アップデートすればよい。

回避策
> wsl --update --web-download
更新プログラムを確認しています。
Linux 用 Windows サブシステムをバージョン 2.2.4 に更新しています。

proxy 下であれば、--web-download 必須(詳細は後述)


試行記録

:ng: stack over flow を試す

全部 shutdown して、再起動したけど変わらず

:ng: マッピングを解除して、再起動

:ng: windows の機能の確認:Linux & 仮想化

:ng: wsl アップデート

単純にアップデートを試すも失敗。
このエラーで、接続出来てないなんて気づかない・・ :sweat:

アップデート失敗
> wsl --update
更新プログラムを確認しています。
Error: 0x80248014
Error code: Wsl/UpdatePackage/0x80248014

:ng: ディストリビューションを、ダウングレードしてから、再度アップグレード

もしかしたら、との一縷の望み

> wsl --set-version Ubuntu-20.04 1
(省略)
> wsl --set-version Ubuntu-20.04 2
WSL 2 との主な違いについては、https://aka.ms/wsl2
 を参照してください
変換中です。これには数分かかる場合があります。

あとがき

そもそも、何故ダウングレードが起きたのかが不明 :thinking:

ドライブマッピングの問題だったのだろうか?

keyword

how to fix Error code: Wsl/UpdatePackage/0x80248014 / WSL 1 is not supported. Please upgrade to WSL 2 or above

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?