Cannot enable developer mode on read-only image

Bug #1223301 reported by Alan Pope 🍺🐧🐱 🦄
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu
Fix Released
Critical
Juhapekka Piiroinen
lxc-android-config (Ubuntu)
Fix Released
High
Oliver Grawert
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
Undecided
Unassigned
ubuntu-touch-meta (Ubuntu)
Fix Released
High
Oliver Grawert

Bug Description

Using the read-only image we currently cannot enable developer mode in QtCreator / Ubuntu SDK.

"E: Unable to write to /var/cache/apt/"

phablet-flash ubuntu-system --no-backup

Open SDK

Click "Enable developer mode"

Detecting device..
/usr/share/qtcreator/ubuntu/scripts/device_search
List of devices attached
0071ae7610994b1d device usb:2-1.5 product:occam model:Nexus_4 device:mako
Check device image version..
/usr/share/qtcreator/ubuntu/scripts/device_version 0071ae7610994b1d
* found 1 devices.
Check device image version..
..device version detected.
Check if the device is connected to a network..
/usr/share/qtcreator/ubuntu/scripts/device_hasnetwork 0071ae7610994b1d
/usr/share/qtcreator/ubuntu/scripts/device_version 0071ae7610994b1d
1
Detecting if openssh-server is installed..
/usr/share/qtcreator/ubuntu/scripts/openssh_version 0071ae7610994b1d
(none)
..openssh-server was not installed.
Installing openssh-server..
/usr/share/qtcreator/ubuntu/scripts/openssh_install 0071ae7610994b1d
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
..openssh-server was installed.
Detecting if openssh-server is installed..
/usr/share/qtcreator/ubuntu/scripts/openssh_version 0071ae7610994b1d
(none)
..openssh-server was not installed.

affects: ubuntu-qtcreator-plugins → qtcreator-plugin-ubuntu
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

It is indeed critical issue. We have two options:

1. get the openssh-server installed by default on the image so the development mode enabling would need to exchange the autehtication keys

2. touch the /userdata/.writable_image file on the RO system, reboot, install the openssh-server, remove the /userdata/.writable_image file and reboot

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

The plan is to add SSH to the image, it will not start by default and it will need a special config and the USB driver needs to be properly set up

Changed in qtcreator-plugin-ubuntu:
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

We are planning to publish an HTML5 tutorial on dev.u.com week of Sept 16. The tutorial is planned to include running the app on the device, which is now broken. So please specify a simple workaround or fix this quickly please or the tutorial will need to drop running the app on the device.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

One workaround is flash with cdimage-touch. I am not certain whether this path is ruled out for the public sdk tutorial due to status of cdimage-touch path.

Revision history for this message
David Planella (dpm) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

ubuntu-touch-meta (1.065) saucy; urgency=low

  * Refreshed dependencies
  * Added openssh-server to touch

Date: Tue, 10 Sep 2013 21:00:52 +0200

....
lxc-android-config (0.95) saucy; urgency=low

  * make /etc/init/ssh.override a rw file so something like:
    echo "" | sudo tee /etc/init/ssh.override can be used to enable the ssh
    service permanently if needed.
    echo "manual" | sudo tee /etc/init/ssh.override can be used to disable it
    again

Date: Fri, 13 Sep 2013 17:38:49 +0200

Changed in ubuntu-touch-meta (Ubuntu):
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Oliver Grawert (ogra)
Changed in qtcreator-plugin-ubuntu:
assignee: Oliver Grawert (ogra) → nobody
Changed in lxc-android-config (Ubuntu):
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Oliver Grawert (ogra) wrote :

please modify the openssh_install script to (and probably just call it openssh_enable now) to us the above way to enable ssh

Revision history for this message
Juhapekka Piiroinen (juhapekka-piiroinen) wrote :

Fixed for the upcoming 2.8 release

Changed in qtcreator-plugin-ubuntu:
assignee: nobody → Juhapekka Piiroinen (juhapekka-piiroinen)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 2.7.2-0ubuntu3

---------------
qtcreator-plugin-ubuntu (2.7.2-0ubuntu3) saucy; urgency=low

  * USB Device connection / disconnection detection.
  * Refactored Menus.
  * Can't set version number in Packaging form (LP: #1212326)
  * QtC cuts folder names when building on the device (LP: #1212937)
  * Click packages need to exclude the .bzr dir (LP: #1214628)
  * Force lower case click package name (LP: #1219877)
  * Packaging resets package name, other attributes to default every
    time it's opened (LP: #1219948)
  * please provide gui for security manifest (LP: #1221407)
  * Cannot enable developer mode on read-only image (LP: #1223301)
  * Cannot launch application through qtcreator (LP: #1225178)
  * Application installation script problems (LP: #1213902)
  * Comment field in .desktop file should be generated on the fly
    (LP: #1223388)
  * SDK should set applicationName to "name" value in the click manifest
    (LP: #1227085)
 -- Juhapekka Piiroinen <email address hidden> Wed, 18 Sep 2013 15:36:58 +0300

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Fix Released
Changed in qtcreator-plugin-ubuntu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.