web-dev-qa-db-ja.com

Windows 10 Spring Creators Update上のUbuntuでランレベルエラーを回避するにはどうすればよいですか?

Windows 10 Spring Creators Update(RS4)で実行されているUbuntu 18.04で_apt-get dist-upgrade_を実行すると、次のエラーが発生します。

Preparing to unpack .../ebtables_2.0.10.4-3.5ubuntu2.18.04.1_AMD64.deb ... invoke-rc.d: could not determine current runlevel * Error: insufficient privileges to access the ebtables rulesets. invoke-rc.d: initscript ebtables, action "stop" failed. dpkg: warning: old ebtables package pre-removal script subprocess returned error exit status 1 dpkg: trying script from the new package instead ... invoke-rc.d: could not determine current runlevel * Error: insufficient privileges to access the ebtables rulesets. invoke-rc.d: initscript ebtables, action "stop" failed. dpkg: error processing archive /var/cache/apt/archives/ebtables_2.0.10.4-3.5ubuntu2.18.04.1_AMD64.deb (--unpack): new ebtables package pre-removal script subprocess returned error exit status 1 update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults invoke-rc.d: could not determine current runlevel Errors were encountered while processing: /var/cache/apt/archives/ebtables_2.0.10.4-3.5ubuntu2.18.04.1_AMD64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

私はebtables(デフォルト/組み込みパッケージのように見えます)についてはあまり気にしませんが、これ以外の新しいエラーがあるかどうかを判断するために、すべての更新の出力をふるいにかけたくありません。

4
Matt Hargett

ここで説明されているように、WSLはinit/runlevelsをサポートしていなかったことがわかりました(通常のLinuxブートプロセスが実際にはないため、これは理にかなっています): https://github.com/Microsoft/WSL/ issues/1761#issuecomment-3931548

幸いなことに、Ubuntu Cosmicで修正が行われ、Bionic(18.04)とXenial(16.04)にフィルターされました: https://github.com/Microsoft/WSL/issues/1761#issuecomment-393652849

以前にこの問題が発生した場合は、解決する必要があります。

2
Matt Hargett