Cannot install click packages on the unity 8 desktop session

Bug #1466432 reported by David Planella
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Unity8 Desktop Preview in LXC
New
Undecided
Unassigned
unity8-lxc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I don't seem to be able to install click packages on the unity8 LXC session:

- When trying to install from the host via lxc-console: http://pastebin.ubuntu.com/11734759/
- When trying to install from the host via lxc-attach: http://pastebin.ubuntu.com/11734761/
- When trying to install from the unity8 session: I get a "Failed to obtain authentication" error.

Changed in unity8-lxc (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher Townsend (townsend) wrote :

Hey David,

I have no experience trying to install clicks. neither on a regular host nor a unity8-lxc.

Are you able to install a click on your host via command line, ie, not in the LXC?

Also, I'm not sure what you mean by:
"When trying to install from the unity8 session: I get a "Failed to obtain authentication" error."
Are you trying to install a package via the Store? If so, this is not supported.

Thanks!

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 1466432] Re: Cannot install click packages

On Thu, Jun 18, 2015 at 2:07 PM, Christopher Townsend <
<email address hidden>> wrote:

> Hey David,
>
> I have no experience trying to install clicks. neither on a regular host
> nor a unity8-lxc.
>

Sorry, I wasn't clear: when I said "on the host", I meant actually
installing it in the container, but from the host's unity7 session via
lxc-console. When I said "on the unity8 session", I meant having logged
into the unity8 session, having started the terminal app and ran the 'pkcon
install-local' command from there.

>
> Are you able to install a click on your host via command line, ie, not
> in the LXC?
>

I guess you mean from the host's unity 7 session. I had never tried it,
assuming you needed a unity8-based system to do it. But I gave it a go and
here's the result:

http://pastebin.ubuntu.com/11736394/ (see the notes)

> Also, I'm not sure what you mean by:
> "When trying to install from the unity8 session: I get a "Failed to obtain
> authentication" error."
>

I meant having logged into the unity8 session, having started the terminal
app and ran the 'pkcon install-local' command from there.

> Are you trying to install a package via the Store? If so, this is not
> supported.
>

No, I didn't use the store, I used the terminal ^, as I was aware of bug
#1466009

Thanks for the help!

>
> Thanks!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1466432
>
> Title:
> Cannot install click packages
>
> Status in Unity 8 Desktop Session:
> New
> Status in Unity8 Desktop Preview in LXC:
> New
> Status in unity8-desktop-session package in Ubuntu:
> New
> Status in unity8-lxc package in Ubuntu:
> Confirmed
>
> Bug description:
> I don't seem to be able to install click packages on the unity8 LXC
> session:
>
> - When trying to install from the host via lxc-console:
> http://pastebin.ubuntu.com/11734759/
> - When trying to install from the host via lxc-attach:
> http://pastebin.ubuntu.com/11734761/
> - When trying to install from the unity8 session: I get a "Failed to
> obtain authentication" error.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/unity8-desktop-session/+bug/1466432/+subscriptions
>

Revision history for this message
David Planella (dpm) wrote : Re: Cannot install click packages

Had a chat about it on #ubuntu-app-devel:

<sergiusens> dpm: ogra_ nik90 i'm just guessing, but you may not have a click database initialized
<sergiusens> dpm: pkcon install won't work unless you have the right security polkit bits setup
<popey> sergiusens: That's what we're missing - and no idea how to set that up
<sergiusens> popey: dpm https://click.readthedocs.org/en/latest/databases.html
<sergiusens> popey: dpm you would need to setup the polkit rules, check the phone, under /etc/polkit something
 popey: dpm and I think the right bits for polkit are in lxc-android-config
<dpm> sergiusens, does this look like what would be needed to have installed? http://pastebin.ubuntu.com/11736592/
 doesn't seem to list any polkit rules, though
 the polkit-1 package seems to have http://pastebin.ubuntu.com/11736591/

In summary, from what I could gather it seems that to be able to install click packages from the command line:

1) A click database needs to be registered
2) A set of polkit rules need to be installed

summary: - Cannot install click packages
+ Cannot install click packages on the unity 8 desktop session
Revision history for this message
Christopher Townsend (townsend) wrote :

Hi David,

After reading your last few comments, I'm not sure who is supposed to install the needed bits in order to make this work. I'm pretty sure it's not unity8-lxc though:)

Thanks for digging deeper into this.

Revision history for this message
Christopher Townsend (townsend) wrote :

Also, once installation of click packages works on the non LXC desktop, then we'll see if it works in unity8-lxc. If not, then that would be in my court.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity8-desktop-session (Ubuntu):
status: New → Confirmed
Revision history for this message
Sam Segers (sam-sgrs) wrote :

I am able to install click packages with pkcon from Ubuntu 15.04 but have the same issue as stated here.

Revision history for this message
Sam Segers (sam-sgrs) wrote :

I got it to work. Basically only running apparmor under lxc is a problem now and everything else is working.

I got it to work by adding the following to /var/lib/lxc/unity8-lxc/config:

    lxc.aa_profile = unconfined
    lxc.cgroup.devices.allow = a
    lxc.cap.drop =

This makes the lxc container insecure, but usable.

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

Also see bug 1396611 for the (non-LXC) unity8 session counterpart.

no longer affects: unity8-desktop-session
no longer affects: unity8-desktop-session (Ubuntu)
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.