Creating container yakkety failed with "sudo: no tty present and no askpass program specified"

Bug #1598785 reported by dinamic
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Committed
Undecided
Unassigned
Libertine
Status tracked in Devel
Devel
Fix Released
High
Christopher Townsend
Trunk
Fix Released
High
Christopher Townsend
libertine (Ubuntu)
Fix Released
High
Christopher Townsend

Bug Description

Creating container yakkety failed

please see the attached screenshot with the error message since the error message is not selectable, i can't copy paste it in here :|

Related branches

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
Larry Price (larryprice) wrote :

Are you able to get a version number for libertine? I believe this is a duplicate of #1596020, and I am marking it as such - we've fixed this in devel, so you should get the update soon.

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

The first issue is:

"sudo: no tty present and no askpass program specified"

Were you presented the password dialog and if so, did you enter the password? I'm not sure how it got into that state.

Revision history for this message
dinamic (dinamic6661) wrote :

@larryprice libertine 1.2.1+16.10.20160623-0ubuntu1

@townsend yep i entered the password. first dialogue is asking for a name and the second for a password. i tried like 10 times :D with the same result

Revision history for this message
dinamic (dinamic6661) wrote :

same with 1.2.2+16.10.20160707-0ubuntu1 :(

see attached screenshot

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

Ok, well, this is not a duplicate of bug #1596020. Something is very strange regarding sudo on your system. I'll have to think about what that could be.

Also, does using the command line work, ie, 'libertine-container-manager create -i test -n "Test", from an ssh session or Unity 7 session?

Thanks!

summary: - Creating container yakkety failed
+ Creating container yakkety failed with sudo issue
Changed in libertine:
status: New → Incomplete
summary: - Creating container yakkety failed with sudo issue
+ Creating container yakkety failed with "sudo: no tty present and no
+ askpass program specified"
Revision history for this message
Larry Price (larryprice) wrote :

Just verified that I am able to create a container in a Unity8 desktop session in latest yakkety with the same version of libertine.

dinamic, is that a desktop session of Unity 8 or are you running from a mobile device? Do you have enough space to create a new container? Does your current user have root access? As townsend mentioned, it would be great to see the results of running `libertine-container-manager create`, which you might be able to run from the Ubuntu Terminal App in Unity 8.

Revision history for this message
dinamic (dinamic6661) wrote :

@laaryprice i'm running unity8 on a desktop pc (x86), i have 23,1 GB free space :> and yes i have root access (pixel is admin account). running 'libertine-container-manager create -i test -n "Test"' in unity7, looks ok, i don't see any error messages, now to restart in unity8 and see if i see the container

Revision history for this message
dinamic (dinamic6661) wrote :

@larryprice @townsend success! so looks like using the command line works, i can see the container in libertine, and i've managed to install and run "geany" see attached screenshot

Revision history for this message
fcole90 (fcole90) wrote :

I have the same problem. Using the command 'libertine-container-manager create -i test -n "Test"' I have been able to create a container successfully, altrough I am not able to install anything, al least not from the Libertine App.

Revision history for this message
fcole90 (fcole90) wrote :

Sorry, I didn't wait enough. In the end I was able to install gedit from the libertine app. So, only creating the container from within the app is bugged.

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

Ok, I just reproduced this on a Yakkety machine. I'm thinking we have some sort of missing dependency somewhere, but I will investigate.

Changed in libertine:
status: Incomplete → Triaged
importance: Undecided → High
Changed in libertine (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Libertine CI Bot (libertine-ci-bot) wrote :

Fix committed into lp:libertine at revision 272, scheduled for release in libertine, milestone Unknown

Changed in libertine:
status: In Progress → Fix Committed
Changed in libertine (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Christopher Townsend (townsend)
kevin gunn (kgunn72)
tags: added: unity8-desktop
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libertine - 1.3+16.10.20160721.2-0ubuntu1

---------------
libertine (1.3+16.10.20160721.2-0ubuntu1) yakkety; urgency=medium

  [ Brandon Schaefer ]
  * This creates a LibertineApplication which wraps up the starting of a
    container. This way we can mock creations of an Application.

  [ Chris Townsend ]
  * Rework the whole way we handle updating the necessary system files for
    unprivileged LXC's: (LP: #1598785)
    - Add new script that does the updates.
    - Add sudoers file for this script.
    - Remove the password dialog in the UI.
  * Add functionality to "favorite" the Libertine scope upon first
    installation of the Puritine click package. (LP: #1602397)
  * Bump version to 1.3.

  [ Larry Price ]
  * Allow adding all forms of additional archives to containers.
  * Support adding private PPAs inside of a container. (LP: #1599882)

 -- Christopher Townsend <email address hidden> Thu, 21 Jul 2016 17:26:54 +0000

Changed in libertine (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
MV (mvidal) wrote :

I Got the 1.3+16.10.20160721.2-0ubuntu1

And now the "Configure option for container creation" "Ok" button come back immediately to the "Welcome" with "Install" button screen. No message , No error.

After a while : "Creating container yakkety failed'

~/.cache/upstart : more application-legacy-libertine-1469368841848271.log
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'
error parsing containers config file: "unterminated object"

Stephen M. Webb (bregma)
Changed in canonical-devices-system-image:
status: New → In Progress
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Christopher Townsend (townsend) wrote :

@mvidal,

Hmm, you most definitely have a different issue than what this bug is about. Seems like ~/.local/share/libertine/ContainersConfig.json might be corrupted.

Could you delete that file and try again? If the problem still occurs, could you please open a new bug report and attach this file to the report?

Thanks!

Revision history for this message
dinamic (dinamic6661) wrote :

i'm on libertine 1.3+16.10.20160721.2-0ubuntu1

no longer affected by this bug

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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