ukuu unnecessarily requires X

Bug #1662436 reported by Chris on 2017-02-07
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

description: updated
calexil (calexil) on 2017-03-23
Changed in ukuu:
status: New → Invalid
Chris (chris-kuethe+launchpad) wrote :

Please justify changing this to invalid.

Changed in ukuu:
status: Invalid → New
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.

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

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  Edit
Everyone can see this information.

Other bug subscribers