windows wsl(ubuntu)にGoogle Cloud SDK のインストール(雑記)
Googleのubuntuインストール手順通りにやると、エラーが出る。
ざっくり調べたけど無視して進めて問題なさそう。
無視した結果、後で問題になるかもしれないけど…とりあえず動いたので一応記事にしておく。
Google Cloud SDKインストール手順
Debian / Ubuntu 用のクイックスタート | Cloud SDK のドキュメント | Google Cloud Platform
Qiitaの記事
qiita.com
エラーについて
手順の以下のコマンドの実行結果でエラーが出る
コマンド
sudo apt-get update && sudo apt-get install google-cloud-sdk
エラー結果
grub-probe: error: failed to get canonical path of `rootfs'. grub-probe: error: failed to get canonical path of `rootfs'. grub-probe: error: failed to get canonical path of `rootfs'. /usr/sbin/grub-probe: error: failed to get canonical path of `rootfs'. dpkg: error processing package grub-pc (--configure): subprocess installed post-installation script returned error exit status 1 dmesg: read kernel buffer failed: Function not implemented E: Sub-process /usr/bin/dpkg returned an error code (1)
調査
MicrosoftのWSLリポジトリにissueとしてgrubのエラーがリポートされている。
aseering 氏のコメント(commented on 21 Apr 2017)
Relatedly, grub doesn't need to work, because WSL doesn't actually boot :-)
It would be nice if package installations didn't fail as a result of this.(WSLは実際には起動しないので、grubは動作する必要はありません:-)
この結果、パッケージのインストールが失敗しなかった場合は、いいでしょう。)
調査結果より判断
issueの内容とコメントを見る限りWSLではgrubは動作しなくて良いようだ。
今回はとりあえずGoogle Coud SDKにてエラーが出るが特に問題ないと判断した。
コメントにもあるがエラー表示が嫌な場合は、grub-pcをアンインストールする手もある。
>>|shellscript|
sudo apt -f remove grub-pc
|
今後作業にて不具合があったらここに追記する。