Cannot install click packages on the unity 8 desktop session
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Unity8 Desktop Preview in LXC |
Undecided
|
Unassigned | ||
| | unity8-lxc (Ubuntu) |
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://
- When trying to install from the host via lxc-attach: http://
- When trying to install from the unity8 session: I get a "Failed to obtain authentication" error.
| Changed in unity8-lxc (Ubuntu): | |
| status: | New → Confirmed |
| Christopher Townsend (townsend) wrote : | #1 |
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://
> 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:/
>
> Title:
> Cannot install click packages
>
> Status in Unity 8 Desktop Session:
> New
> Status in Unity8 Desktop Preview in LXC:
> New
> Status in unity8-
> 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://
> - When trying to install from the host via lxc-attach:
> http://
> - 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:/
>
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:/
<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://
doesn't seem to list any polkit rules, though
the polkit-1 package seems to have http://
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 |
| Christopher Townsend (townsend) wrote : | #4 |
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.
| Christopher Townsend (townsend) wrote : | #5 |
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.
| Launchpad Janitor (janitor) wrote : | #6 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in unity8-desktop-session (Ubuntu): | |
| status: | New → Confirmed |
| Sam Segers (sam-sgrs) wrote : | #7 |
I am able to install click packages with pkcon from Ubuntu 15.04 but have the same issue as stated here.
| Sam Segers (sam-sgrs) wrote : | #8 |
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.aa_profile = unconfined
lxc.
lxc.cap.drop =
This makes the lxc container insecure, but usable.
| David Planella (dpm) wrote : | #9 |
Also see bug 1396611 for the (non-LXC) unity8 session counterpart.
| no longer affects: | unity8-desktop-session |
| no longer affects: | unity8-desktop-session (Ubuntu) |


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!