ukuu unnecessarily requires X

Bug #1662436 reported by Chris Kuethe
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Kernel Upgrade Utility
New
Undecided
Unassigned

Bug Description

When running ukuu in a terminal without a $DISPLAY (eg. no -X or -Y when ssh-ing or connecting over a serial console)...

$ ukuu --help
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

(ukuu:10851): Gtk-WARNING **: cannot open display:
$

which also means I can't script something like

LATEST=$(ukuu --check | grep -A2 Available | tail -1 | cut -d ' ' -f 1)
ukuu --install $LATEST

Chris Kuethe (ckuethe)
description: updated
calexil (calexil)
Changed in ukuu:
status: New → Invalid
Revision history for this message
Chris Kuethe (ckuethe) wrote :

Please justify changing this to invalid.

Changed in ukuu:
status: Invalid → New
Revision history for this message
Tony George (teejee2008) wrote :

The status has not changed. I saw this bug report just now. The previous commenter posted that status has changed to Invalid. I'm not sure what he means to say.

The 'ukuu' utility is designed to run with a display because it needs to display a Gtk dialog to inform the user that a new kernel is available. It's not meant to be run in an environment where display is not available.

If you need it to run without a display please make the necessary changes and submit a patch.

Revision history for this message
Axel (nospamforaxel-1) wrote :

Cannot install a kernel through ukuu in Ubuntu 17.10 Wayland-session.

Output:
-------
export DISPLAY=:0
sudo ukuu --install 4.14.0-rc8
No protocol specified
Unable to init server: Verbindung ist gescheitert: Verbindungsaufbau abgelehnt

(ukuu:7585): Gtk-WARNING **: cannot open display: :0

Revision history for this message
Axel (nospamforaxel-1) wrote :

Are there any plans to fix this in the near future, especially since Wayland is default now in Ubuntu?

It is somewhat annoying to 'logout - login - change to new kernel - lougout-login' when updating to a new kernel, which usually happens every weekend with the newest (rc) kernels.

Can I help?

Best regards

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.