I have a Dockerfile that compiles a custom linux kernel based on Ubuntu 22.04. It has been working fine until this morning, but now fails at the step where it runs apt-get update && apt-get build-dep -y linux linux-signed
giving this error:
The following packages have unmet dependencies:
builddeps:linux-signed : Depends: linux-generate (= 5.15.0-60.66) but it is not installable
I have all deb-src
lines uncommented in my apt sources.
root@ef3c9ab828f8:/# cat /etc/apt/sources.list | grep deb-src
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jammy universe
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ jammy multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ jammy-security universe
deb-src http://security.ubuntu.com/ubuntu/ jammy-security multiverse
What is linux-generate
? No matter where I look (google, apt-cache search
, https://launchpad.net/ubuntu/+source/linux-generate) I can't find that package or any information about it.
Update
Here is a minimal Dockerfile to produce the issue (tested on two different hosts):
FROM ubuntu:22.04
RUN sed -i 's/# deb-src/deb-src/' /etc/apt/sources.list
RUN apt-get update
RUN apt-get build-dep -y linux linux-signed
Update 2:
root@16e6b6976fda:/# apt policy linux-generate
N: Unable to locate package linux-generate