linux-generic should depend on linux-base >=4.1

Bug #1820419 reported by Fabian Zimmermann on 2019-03-16
180
This bug affects 67 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned
Xenial
High
Stefan Bader

Bug Description

[ SRU Justification ]

== Impact ==
Due to unversioned dependencies to linux-base, minimal installations will not pull in the latest requirements.

== Fix ==
Depend on linux-base (>= 4.5ubuntu1~16.04.1) specifically

== Testcase ==
See below (but also can be checked on dependencies).

== Risk of Regression ==
Low, no actual code change.

---

Hi,

we run a automated pipeline which automatically installs ubuntu 16.04 by pxe / netinstall.

This pipeline stopped working tonight, so I did some research.

Looks like linux-generic depends on linux-base, but requires a tool/script which was added in 4.1 (linux-update-symlinks).

packages.ubuntu.com only shows linux-base 4.5, but if I take a look into the packages.gz of <mirror>/ubuntu/ there is still a 4.0 available.

So somehow(tm) it seems netinstall is installing the 4.0 version of linux-base instead of the required 4.5 (4.1+).

In my opinion if a pkg needs a feature which is only available in a newer version of a pkg, this pkg should be a depend, so linux-generic should depend on linux-base >= 4.1 instead of just depend on linux-base.

I workarounded the problem by installing the hwe-kernel which has a correct dependency on linux-base 4.5.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1820419

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
no longer affects: linux (Ubuntu)
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Stefan Bader (smb) on 2019-03-26
Changed in linux (Ubuntu Xenial):
assignee: nobody → Stefan Bader (smb)
importance: Undecided → High
status: New → In Progress
Changed in linux (Ubuntu):
status: Incomplete → Invalid
description: updated
Brad Figg (brad-figg) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-xenial' to 'verification-done-xenial'. If the problem still exists, change the tag 'verification-needed-xenial' to 'verification-failed-xenial'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-xenial
Kevin Puetz (puetzk) wrote :
Download full text (4.2 KiB)

I'm not the original reporter, but I hit (and analyzed) what seems to be the same failure in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1820755

I just switched our packer template over to -proposed to test this:

i.e. changed it to use http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/installer-amd64/20101020ubuntu451.28/images/netboot/mini.iso, added apt-setup/proposed=true to the kernel command-line) and I can confirm that this runs to completion (whereas xenial-updates/current/images/netboot/mini.iso errors out.

debootstrap still initially installs the original xenial version of linux-base (but that's expected, since debootstrap is unable to look at multiple repositories), but it eventually gets upgraded

debootstrap: Preparing to unpack .../linux-base_4.0ubuntu1_all.deb ...
debootstrap: Unpacking linux-base (4.0ubuntu1) ...
...
debootstrap: Setting up linux-base (4.0ubuntu1) ...

... but later on (once base-installer is doing the kernel using the real in-target apt-get) it picks up the new kernel from xednial-proposed, and that prods it to pick up the new linux-base from xenial-updates ...

in-target: The following additional packages will be installed:
in-target: linux-base linux-headers-4.4.0-145 linux-headers-4.4.0-145-generic
in-target: linux-headers-generic linux-headers-virtual linux-image-4.4.0-145-generic
in-target: linux-image-virtual linux-modules-4.4.0-145-generic
in-target: Suggested packages:
in-target: fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
in-target: Recommended packages:
in-target: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo
in-target: The following NEW packages will be installed:
in-target: linux-headers-4.4.0-145 linux-headers-4.4.0-145-generic
in-target: linux-headers-generic linux-headers-virtual linux-image-4.4.0-145-generic
in-target: linux-image-virtual linux-modules-4.4.0-145-generic linux-virtual
in-target: The following packages will be upgraded:
in-target: linux-base
in-target: 1 upgraded, 8 newly installed, 0 to remove and 98 not upgraded.
in-target: Need to get 29.8 MB of archives.
in-target: After this operation, 146 MB of additional disk space will be used.
in-target: Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-base all 4.5ubuntu1~16.04.1 [18.1 kB]
in-target: Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-headers-4.4.0-145 all 4.4.0-145.171 [10.0 MB]
in-target: Get:3 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-headers-4.4.0-145-generic amd64 4.4.0-145.171 [820 kB]
in-target: Get:4 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-headers-generic amd64 4.4.0.145.153 [2,568 B]
in-target: Get:5 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-headers-virtual amd64 4.4.0.145.153 [1,760 B]
in-target: Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-modules-4.4.0-145-generic amd64 4.4.0-145.171 [12.0 MB]
in-target: Get:7 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-image-4.4.0-145-generic amd64 4.4.0-145.171 [6,919 kB]
in-target: Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 lin...

Read more...

Stefan Bader (smb) wrote :

Setting to verified according to comment #4.

Changed in linux (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-done-xenial
removed: verification-needed-xenial
Alex Deiter (deiter) on 2019-04-01
Changed in linux (Ubuntu Xenial):
status: Fix Committed → Fix Released
Stefan Bader (smb) on 2019-04-02
Changed in linux (Ubuntu Xenial):
status: Fix Released → Fix Committed
Launchpad Janitor (janitor) wrote :
Download full text (26.1 KiB)

This bug was fixed in the package linux - 4.4.0-145.171

---------------
linux (4.4.0-145.171) xenial; urgency=medium

  * linux: 4.4.0-145.171 -proposed tracker (LP: #1821724)

  * linux-generic should depend on linux-base >=4.1 (LP: #1820419)
    - [Packaging] Fix linux-base dependency

linux (4.4.0-144.170) xenial; urgency=medium

  * linux: 4.4.0-144.170 -proposed tracker (LP: #1819660)

  * Packaging resync (LP: #1786013)
    - [Packaging] resync getabis
    - [Packaging] update helper scripts
    - [Packaging] resync retpoline extraction

  * C++ demangling support missing from perf (LP: #1396654)
    - [Packaging] fix a mistype

  * CVE-2019-9213
    - mm: enforce min addr even if capable() in expand_downwards()

  * CVE-2019-3460
    - Bluetooth: Check L2CAP option sizes returned from l2cap_get_conf_opt

  * Xenial update: 4.4.176 upstream stable release (LP: #1818815)
    - net: fix IPv6 prefix route residue
    - vsock: cope with memory allocation failure at socket creation time
    - hwmon: (lm80) Fix missing unlock on error in set_fan_div()
    - net: Fix for_each_netdev_feature on Big endian
    - net: Add header for usage of fls64()
    - tcp: tcp_v4_err() should be more careful
    - net: Do not allocate page fragments that are not skb aligned
    - tcp: clear icsk_backoff in tcp_write_queue_purge()
    - vxlan: test dev->flags & IFF_UP before calling netif_rx()
    - net: stmmac: Fix a race in EEE enable callback
    - net: ipv4: use a dedicated counter for icmp_v4 redirect packets
    - x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32
    - mfd: as3722: Handle interrupts on suspend
    - mfd: as3722: Mark PM functions as __maybe_unused
    - net/x25: do not hold the cpu too long in x25_new_lci()
    - mISDN: fix a race in dev_expire_timer()
    - ax25: fix possible use-after-free
    - Linux 4.4.176

  * sky2 ethernet card don't work after returning from suspension
    (LP: #1798921) // Xenial update: 4.4.176 upstream stable release
    (LP: #1818815)
    - sky2: Increase D3 delay again

  * Xenial update: 4.4.175 upstream stable release (LP: #1818813)
    - drm/bufs: Fix Spectre v1 vulnerability
    - staging: iio: adc: ad7280a: handle error from __ad7280_read32()
    - ASoC: Intel: mrfld: fix uninitialized variable access
    - scsi: lpfc: Correct LCB RJT handling
    - ARM: 8808/1: kexec:offline panic_smp_self_stop CPU
    - dlm: Don't swamp the CPU with callbacks queued during recovery
    - x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux)
    - powerpc/pseries: add of_node_put() in dlpar_detach_node()
    - serial: fsl_lpuart: clear parity enable bit when disable parity
    - ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl
    - staging:iio:ad2s90: Make probe handle spi_setup failure
    - staging: iio: ad7780: update voltage on read
    - ARM: OMAP2+: hwmod: Fix some section annotations
    - modpost: validate symbol names also in find_elf_symbol
    - perf tools: Add Hygon Dhyana support
    - soc/tegra: Don't leak device tree node reference
    - f2fs: move dir data flush to write checkpoint process
    - f2fs: fix wrong return value of f2fs_acl_create
    - sunvdc: Do not spin in an infin...

Changed in linux (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers