[Bug 1384417] Re: Running adt-run without root installs the click for all users

Martin Pitt martin.pitt at ubuntu.com
Fri Nov 14 11:13:36 UTC 2014


Since we dropped autopilot from the images, you *need* to specify your
sudo password (unless it's "0000" which the runner tries by default).
Without having root on the phone there is no way that we can adjust the
AppArmor policy for enabling autopilot to work.

But I fixed it up to the point that the test at least doesn't crash with
this error: The click now installs, and AppArmor rule adjustment is just
skipped, instead you get a warning

   adt-run: WARNING: Cannot adjust AppArmor rules without root/sudo
privileges; Autopilot tests will fail and test dependencies will not be
available!

http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=0180f8b0

** Changed in: autopkgtest (Ubuntu)
       Status: New => Fix Committed

** Changed in: autopkgtest (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

** Changed in: autopkgtest (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1384417

Title:
  Running adt-run without root installs the click for all users

Status in “autopkgtest” package in Ubuntu:
  Fix Committed

Bug description:
  If you run:

  adt-run ubuntu-clock-app/ --click com.ubuntu.clock_3.2.158_armhf.click
  --- ssh -s adb

  for instance, you get this error:

  Cannot install /tmp/adt-run.ixZeib/com.ubuntu.clock_3.2.158_armhf.click: Cannot acquire permission to write to /opt/click.ubuntu.com; either run as root with --user, or use "pkcon install-local" instead
  adt-run [21:18:00]: ERROR: unexpected error: click install failed with status 1

  adt-run must be run with "-- -p password" to allow the click to be installed, instead.
  If we don't have root the click shouldn't be installed for all users.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1384417/+subscriptions



More information about the foundations-bugs mailing list