Nexus7 2013 Wifi を ubuntu touch にする
まず Nexus7 の写真などをバックアップしておく
USBで接続し
USBの使用をファイル転送にして
ubuntu で
1 2 | mkdir ~ /Nexus7_back cp -rp .. /DCIM/ * ~ /Nexus7_back/ |
でバックアップをとっておく
本体のバックアップをとっておきたいのなら
Nexus5バックアップ-GoogleのNexus5のデータをバックアップする2つの方法
にあるように
Google アカウントで
Nexus 7 のデータをバックアップしておく
サイトでは Nexus 5 だが
Nexus 7 でも同様に
設定 > バックアップとリセット
の設定でできた
次にカスタムROMを入れるには
Nexus 7のブートローダーアンロックが必要なので
Nexus 7のブートローダーアンロック(Bootloader Unlock)方法。
を参考に
Nexus7 Toolkit をインストールしようと調べたが
ubuntu の場合コマンドからできる
Nexus 7 に Ubuntu 13.04 を入れるの記
を参考に
1 2 | sudo apt-get install android-tools-adb sudo apt-get install android-tools-fastboot |
が必要らしいが
すでに Android 開発環境を作っていたので
インストール済みだった
1 | adb devices |
で
1 2 3 4 | * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 09fed9ec unauthorized |
となれば接続はされている
1 | adb reboot bootloader |
を実行すると
Nexus 7 が再起動するので
1 | sudo fastboot oem unlock |
を
ubuntu で実行すると
Unlock bootloader
の画面になるので
Nexus7 の音量ボタンの上を押すと
Yes になるので
電源ボタンを押す
…
(bootloader) The bootloader is already unlocked!
OKAY [ 0.002s]
finished. total time: 0.002s
となっているので成功しているはず
次に
Nexus7 2013にUbuntu Touchをインストールしてみた
を参考に実践
1 | adb devices |
を実行してもリストがでないため
初期化されたNexus7 のセットアップを行う
認証関連はほぼスキップして
起動したら
設定から
タブレット情報 > ビルド番号を7回タップ
これで設定の中に開発者向けオプションがでるので
USBデバッグを有効化
これで
1 | adb devices |
を実行すると
1 2 | List of devices attached 09fed9ec device |
と再び認識できるようになったので
ubportsはUSB接続したAndroidデバイスに
Ubuntu Touchのイメージを書き込んでくれるアプリ
これをダウンロードする
https://ubports.com/
へアクセスし
下へスクロール
get Ubuntu Touch をクリック
download installer をクリック
下へスクロールし
任意のOSでのインストーラーをダウンロード
今回は
.deb 形式を使用する
なお以前すでにインストールしたことがあり
依存パッケージがないとエラーになるので注意
先にインストールしようとして
1 | sudo dpkg -i ubports-installer_0.9.7-beta_linux_amd64.deb |
を実行したが
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 以前に未選択のパッケージ ubports-installer を選択しています。 (データベースを読み込んでいます ... 現在 346166 個のファイルとディレクトリがインストールされています。) ubports-installer_0.9.7-beta_linux_amd64.deb を展開する準備をしています ... ubports-installer (0.9.7-beta) を展開しています... dpkg: 依存関係の問題により ubports-installer の設定ができません: ubports-installer は以下に依存 (depends) します: android-tools-fastboot ...しかし: パッケージ android-tools-fastboot はまだインストールされていません。 ubports-installer は以下に依存 (depends) します: heimdall-flash ...しかし: パッケージ heimdall-flash はまだインストールされていません。 dpkg: パッケージ ubports-installer の処理中にエラーが発生しました (-- install ): 依存関係の問題 - 設定を見送ります desktop- file -utils (0.22-1ubuntu5.2) のトリガを処理しています ... gnome-menus (3.13.3-6ubuntu3.1) のトリガを処理しています ... bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) のトリガを処理しています ... Rebuilding /usr/share/applications/bamf-2 .index... mime-support (3.59ubuntu1) のトリガを処理しています ... hicolor-icon-theme (0.15-0ubuntu1.1) のトリガを処理しています ... 処理中にエラーが発生しました: ubports-installer |
となるので
LinuxMintで、adb、fastbootコマンドを使用できるようにする
https://toshio-web.com/linuxmint-adb-fastboot
を参考に
1 | sudo apt install android-tools-adb android-tools-fastboot |
としたが
1 2 3 4 5 6 7 8 | パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 android-tools-adb はすでに最新バージョン (5.1.1r36+git20160322-0ubuntu3) です。 以下の問題を解決するために 'apt-get -f install' を実行する必要があるかもしれません: 以下のパッケージには満たせない依存関係があります: ubports-installer : 依存: heimdall-flash しかし、インストールされようとしていません E: 未解決の依存関係です。 'apt-get -f install' を実行してみてください (または解法を明示してください)。 |
となる
1 | apt-get -f install |
を実行後に
1 | sudo dpkg -i ubports-installer_0.9.7-beta_linux_amd64.deb |
を実行
これでインストールできたので
1 | ubports-installer |
を実行すると
インストーラーが起動する
デバイスがunlock されているか確認画面になるので
My device is unlocked
をクリック
デバイスへの書き込みに対しての警告がでるが
気にせず
Set up rules automatically
をクリック
管理者権限が必要なので
ubuntu ユーザパスワードを入力し
install をクリック
continue をクリック
インストールオプションは変更せず
OKをクリック
しかし途中でエラーとなるため
try again をクリック
このときのエラーは
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | info: Welcome to the UBports Installer version 0.9.7-beta! [8991:1126 /061016 .240532:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. info: device detected: flo info: Installing Ubuntu Touch on your Nexus 7 2013 WiFi (flo) info: configuring... info: settings: { "format" : false , "bootstrap" : true , "channel" : "ubports-touch/16.04/stable" } info: Downloading 2 files info: Downloaded file 1 of 2 info: Downloaded file 2 of 2 error: Error: adb: format : Error: failed to format cache: Error: failed to mount : mount : mounting /dev/block/platform/msm_sdcc .1 /by-name/cache on /cache failed: Device or resource busy stack trace: Error: failed to format cache: Error: failed to mount : mount : mounting /dev/block/platform/msm_sdcc .1 /by-name/cache on /cache failed: Device or resource busy at /opt/ubports-installer/resources/app .asar.unpacked /node_modules/promise-android-tools/lib/module .cjs:678:15 at /opt/ubports-installer/resources/app .asar.unpacked /node_modules/promise-android-tools/node_modules/cancelable-promise/dist/CancelablePromise .js:27:18 at process.processTicksAndRejections (node:internal /process/task_queues :96:5) warn: restart after error info: Downloading 12 files info: Downloaded file 1 of 12 info: Downloaded file 2 of 12 info: Downloaded file 3 of 12 info: Downloaded file 4 of 12 info: Downloaded file 5 of 12 info: Downloaded file 6 of 12 info: Downloaded file 7 of 12 info: Downloaded file 8 of 12 info: Downloaded file 9 of 12 info: Downloaded file 10 of 12 info: Downloaded file 11 of 12 info: Downloaded file 12 of 12 info: All done ! Your device will now reboot and complete the installation. Enjoy exploring Ubuntu Touch! info: Good bye! |
再度実行したら無事にインストールされた
途中でエラーレポートについてでてくるので
FAIL をクリックすればok