Skip to content

Fix: Handle the messed-up status of packages on Ubuntu derivatives#2507

Merged
ipspace merged 1 commit intodevfrom
install-extra
Jul 10, 2025
Merged

Fix: Handle the messed-up status of packages on Ubuntu derivatives#2507
ipspace merged 1 commit intodevfrom
install-extra

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jul 9, 2025

Pop!_OS supposedly has the 'linux-modules-extra' package, but rejects to install it with a weird error messsage that doesn't even produce a proper exit code. This patch uses a slightly different approach to figuring out if the package is there to be installed.

Tested on Pop!_OS 22.04, Ubuntu 24.04 and Debian Bookworm

Pop!_OS supposedly has the 'linux-modules-extra' package, but rejects
to install it with a weird error messsage that doesn't even produce
a proper exit code. This patch uses a slightly different approach to
figuring out if the package is there to be installed.

Tested on Pop!_OS 22.04, Ubuntu 24.04 and Debian Bookworm
@ipspace
Copy link
Owner Author

ipspace commented Jul 9, 2025

Hey @zalekz, this should fix the last remaining problem in #2441. Could you please verify it? Thank you!

@ipspace ipspace requested a review from ssasso July 9, 2025 10:06
@ipspace ipspace merged commit ff25087 into dev Jul 10, 2025
7 checks passed
@ipspace ipspace deleted the install-extra branch July 10, 2025 06:00
@ipspace ipspace mentioned this pull request Jul 10, 2025
@zalekz
Copy link

zalekz commented Jul 10, 2025

Hey @zalekz, this should fix the last remaining problem in #2441. Could you please verify it? Thank you!

@ipspace : Sorry for being late, I see that the changes have already been merged, but yes, I can also confirm that everything now installs on Pop!_OS 22.04 flawlessly using the updated scripts from the current dev branch, those with apt-cache search instead of apt-cache show. After the installation the user is suggested to reboot the system though, so all the necessary services are started automatically.. The clab and libvirt tests are successful then after a system restart. Many thanks!

EXTRA="linux-modules-extra-$(uname -r)"
fi
# Added curl, which is not installed by default on Debian - ghostinthenet - 20220417
$SUDO apt-get -y $FLAG_APT install python3 python3-setuptools ifupdown python3-pip curl $EXTRA
Copy link

@zalekz zalekz Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$SUDO apt-get -y $FLAG_APT install python3 python3-setuptools ifupdown python3-pip curl $EXTRA

Perhaps, there is no need in that $EXTRA variable on this line anymore

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that one should go out (the next time we're changing this script ;)

@ipspace
Copy link
Owner Author

ipspace commented Jul 10, 2025

I can also confirm that everything now installs on Pop!_OS 22.04 flawlessly using the updated scripts from the current dev branch, those with apt-cache search instead of apt-cache show.

Thanks a million for the confirmation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants