linux-image-hwe-16.04 depends on linux-generic-hwe-16.04-edge

Bug #1666413 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Xenial
Invalid
Undecided
Tim Gardner

Bug Description

Installing the linux-generic-hwe-16.04 package pulls in linux-generic-hwe-16.04-edge, thus the system has linux-image-4.8.0-34-generic and linux-image-4.8.0-36-generic installed. The system then boots to 4.8.0-36.

Installing linux-generic-hwe-16.04 shouldn't pull in linux-generic-hwe-16.04-edge and only one kernel should be installed.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1666413

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Xenial):
assignee: nobody → Tim Gardner (timg-tpi)
status: New → In Progress
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Tim Gardner (timg-tpi) wrote :

Lee - I'm not seeing this symptom. From a stock fully updated Xenial image:

rtg@ubuntu:~$ uname -r
4.4.0-64-generic
rtg@ubuntu:~$ sudo apt-get install linux-generic-hwe-16.04
[sudo] password for rtg:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.8.0-36 linux-headers-4.8.0-36-generic linux-headers-generic-hwe-16.04
  linux-image-4.8.0-36-generic linux-image-extra-4.8.0-36-generic linux-image-generic-hwe-16.04 thermald
Suggested packages:
  fdutils linux-tools
The following NEW packages will be installed:
  linux-generic-hwe-16.04 linux-headers-4.8.0-36 linux-headers-4.8.0-36-generic
  linux-headers-generic-hwe-16.04 linux-image-4.8.0-36-generic linux-image-extra-4.8.0-36-generic
  linux-image-generic-hwe-16.04 thermald
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 72.4 MB of archives.
After this operation, 316 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

It looks to me like it will do the right thing.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

I did notice that linux-generic-hwe-16.04-edge is lagging by one release.

Revision history for this message
Lee Trager (ltrager) wrote :

I can reproduce this when trying to deploy Xenial with HWE-16.04 or in an LXD container when using apt. In both cases linux-generic-hwe-16.04 is being installed into a environment which does not currently have a kernel installed. The MAAS simple stream was just updated to use the new linux-generic-hwe-16.04 package name so its easiest to reproduce this with an LXD container.

$ sudo apt install linux-generic-hwe.16.04
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-generic-hwe-16.04-edge' for regex 'linux-generic-hwe.16.04'
Note, selecting 'linux-generic-hwe-16.04' for regex 'linux-generic-hwe.16.04'
The following additional packages will be installed:
  crda grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libnl-genl-3-200 linux-firmware
  linux-headers-4.8.0-34 linux-headers-4.8.0-34-generic linux-headers-4.8.0-36
  linux-headers-4.8.0-36-generic linux-headers-generic-hwe-16.04 linux-headers-generic-hwe-16.04-edge
  linux-image-4.8.0-34-generic linux-image-4.8.0-36-generic linux-image-extra-4.8.0-34-generic
  linux-image-extra-4.8.0-36-generic linux-image-generic-hwe-16.04 linux-image-generic-hwe-16.04-edge
  thermald wireless-regdb
Suggested packages:
  desktop-base fdutils linux-tools
The following NEW packages will be installed:
  crda grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw libnl-genl-3-200 linux-firmware
  linux-generic-hwe-16.04 linux-generic-hwe-16.04-edge linux-headers-4.8.0-34
  linux-headers-4.8.0-34-generic linux-headers-4.8.0-36 linux-headers-4.8.0-36-generic
  linux-headers-generic-hwe-16.04 linux-headers-generic-hwe-16.04-edge linux-image-4.8.0-34-generic
  linux-image-4.8.0-36-generic linux-image-extra-4.8.0-34-generic linux-image-extra-4.8.0-36-generic
  linux-image-generic-hwe-16.04 linux-image-generic-hwe-16.04-edge thermald wireless-regdb
0 upgraded, 24 newly installed, 0 to remove and 7 not upgraded.
Need to get 184 MB of archives.
After this operation, 792 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Revision history for this message
Lee Trager (ltrager) wrote :
Revision history for this message
Andy Whitcroft (apw) wrote :

The issue here is that in both examples you are using the wrong package name:

  sudo apt install linux-generic-hwe.16.04
  /usr/bin/apt-get --quiet --assume-yes \
    --option=Dpkg::options::=--force-unsafe-io \
    --option=Dpkg::Options::=--force-confold \
    install linux-generic-hwe.16.04

The correct package name is linux-generic-hwe-16.04. By using a non-existant package but using regular-expression characters (.) you are triggering pattern match mode. Apt even tells you this in your manual update:

  Note, selecting 'linux-generic-hwe-16.04-edge' for regex 'linux-generic-hwe.16.04'
  Note, selecting 'linux-generic-hwe-16.04' for regex 'linux-generic-hwe.16.04'

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Good catch. I'm marking this invalid,

Changed in linux (Ubuntu Xenial):
status: In Progress → Invalid
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.