Run-parts: missing operand error when installing mainline kernels on Zorin OS/Ubuntu

[SOLVED] I am running Zorin OS and attempting to install mainline kernels (trying to move to v7.0/6.19) using the mainline tool. Every time I trigger the install, dpkg fails with the following error during the linux-image-unsigned unpack/install phase:

run-parts: missing operand
new linux-image-unsigned-... package pre-installation script subprocess returned error exit status 1

I have checked my /etc/kernel/ hook directories (preinst.d, postinst.d, etc.), and even tried temporarily bypassing them, but the error persists. It seems the internal package scripts are expecting environment variables that are not being provided during the installation process.

Has anyone else encountered this conflict when using the mainline kernel tool on Zorin/Ubuntu? Are there specific kernel hooks that need to be manually shimmed to satisfy the run-parts requirement?

System context: Zorin OS 18.1, Ryzen 7, RX 7700.

Do You have Secure Boot and Fast Boot in BIOS disabled? Could You post a Screenshot of the Error?

Ubuntu Kernel 7.0 Bug (Bug 2148348)

In mainline kernel 7.0, the package linux-image-unsigned-7.0.0-070000-generic fails to install because its maintainer scripts (preinst, postinst, postrm) incorrectly pass multiple directories to run-parts. Since run-parts only accepts a single directory argument, this triggers the missing operand error and leaves the package in a broken state.

I avoided all of that by going to https://xanmod.org which installs without mainline calls.

3 Likes

kool i use the liquorix kernel/repo only puts in what my system needs no more ....no less

1 Like

I'm still a noob after 6 months, so bear with my ignorance.
I saw this error when I tried to install 7.0 and again just now with 6.19. If this problem has been around for months, why has it not been fixed before the release of 7.0, and will it eventually be fixed?

1 Like

well jumping up to many lvls can make ya fall off a cliff heres a link to what you need for the liquorix kernel

sudo add-apt-repository ppa:damentz/liquorix

sudo apt update && sudo apt install linux-image-liquorix-amd64

2 Likes

It takes time for bug fixes to be implemented because Linux is maintained by volunteers earning only donations, and they are going from one project to another. Microsoft has a decently paid staff and it still takes them months to fix a bug if not longer. Mainline will get around to fixing the problem but in the meantime I'm enjoying v6.19 Stable on my AMD system. v7 is still getting the kinks out and if you are adventurist enough you can download the latest build from xanmod.

1 Like

Don't forget the Headers.

1 Like

i used that and the headers are also installed as long as you install the repo before hand

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.