我为Nexus 4使用了错误的频道; 如何升级它,我使用什么频道?
我为Nexus 4使用了错误的频道; 如何升级它,我使用什么频道?
背景故事:
- 遵循本教程: https : //developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/
-
有Nexus 4,所以我选择了以下选项:
Nexus 4
|Track the latest development
|ubuntu-touch/devel/ubuntu
-
原来
ubuntu-touch/devel/ubuntu
是一个非常古老的形象。 -
Popey建议对Nexus 4使用
ubuntu-touch/rc/bq-aquaris.en
-
试图升级,遇到了一些问题。
问题
-
我必须彻底刷新手机吗?
-
我是从手机还是电脑运行命令?
-
我使用什么命令?
-
以下错误是什么意思?
–
`2015/10/04 09:01:21 Start pushing /home/akiva/.cache/ubuntuimages/ubuntu-touch/rc/bq-aquaris.en/mako/version-25.tar.xz to device` `2015/10/04 09:01:21 error pushing:`
和
`2015/10/04 08:48:24 Expecting the device to expose an adb interface...` `device cannot be detected over adb`
解
- 我必须彻底刷新手机吗?
没有。一旦你有ubuntu,你可以简单地更新。
- 我是从手机还是电脑运行命令?
电脑插上电话。
- 我用什么命令?
正常启动手机,并从您的计算机运行此命令:
adb reboot recovery
等到手机进入恢复模式,然后运行以下命令:
ubuntu-device-flash touch --channel=ubuntu-touch/rc/bq-aquaris.en
可能的错误
$ubuntu-device-flash touch --channel=ubuntu-touch/rc/bq-aquaris.en 2015/10/04 09:01:21 Start pushing /home/akiva/.cache/ubuntuimages/ubuntu-touch/rc/bq-aquaris.en/mako/version-25.tar.xz to device 2015/10/04 09:01:21 error pushing:
这是因为您已登录电话。 您需要使用以下命令登录恢复模式: adb reboot recovery
$ubuntu-device-flash touch --channel=ubuntu-touch/rc/bq-aquaris.en 2015/10/04 08:48:24 Expecting the device to expose an adb interface... device cannot be detected over adb
您可能处于Bootloader而不是恢复模式。 您将无法连接到adb。 如果不是这样,你也可以尝试命令:
adb wait-for-device
并尝试插入它直到它被注意到。
如果您的手机可以启动进入Ubuntu,只需选择“设置>关于>开发者模式”进入开发者模式,然后将设备连接到PC并按照Akiva的说明运行“ubuntu-device-flash”。
如果出现错误,请尝试运行’ubuntu-device-flash –clear-cache touch’。
或者检查您的设备是否真的与“adb设备”连接。 这应该列出所有连接的设备。 同
– 我刚才没有电脑,所以所有的命令都只是记在心里。 很快就要明天检查一下。