Ubuntu 18.04 on WSL で ebtable のアップデートがエラーになる備忘録

Environment
Photo by hyt.

いつもの通り,WSL 上の Ubuntu 18.04 で

  • sudo apt update; sudo apt upgrade -y

とアップデートをすると,なぜだか,

.../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: 警告: old ebtables package pre-removal script subprocess returned error exit status 1
dpkg: 代わりに新規パッケージからスクリプトを実行してみます ...
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: アーカイブ /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
dmesg: カーネルバッファの読み込みに失敗しました: 関数は実装されていません
                                                                         /bin/df: /mnt/z: 入力/出力エラーです
                             update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
.../software-properties-common_0.96.24.32.3_all.deb を展開する準備をしています ...
software-properties-common (0.96.24.32.3) で (0.96.24.32.2 に) 上書き展開しています ...
.../python3-software-properties_0.96.24.32.3_all.deb を展開する準備をしています ...
python3-software-properties (0.96.24.32.3) で (0.96.24.32.2 に) 上書き展開しています ...
処理中にエラーが発生しました:
 /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)

のようになって,エラーとなってしまいます.

原因は,

みたいですね.確かに,ubuntu-release-upgrader-core も同時にアップデートされていました.と言うことで,上のページにある通り,

$ wget -O - https://gist.githubusercontent.com/Zenexer/10bc12fa5c99848b4b2150184f6beee5/raw/ubuntu-fix.sh | sh -s

を試してみると,解決しているように見えます.

まぁ,きちんと原因を追っかけた訳では無いので,ちょっと不安はありますが,とりあえず解決ということで納得しています.

以上!

 

タイトルとURLをコピーしました