Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change ubuntu kernel to another version on Linux Deploy? #1371

Open
Janus-WD opened this issue Sep 13, 2023 · 1 comment
Open

How do I change ubuntu kernel to another version on Linux Deploy? #1371

Janus-WD opened this issue Sep 13, 2023 · 1 comment

Comments

@Janus-WD
Copy link

After I installed the ubuntu on Linux Deploy, I want to change ubuntu kernel version and kernel config.
The current kernel version is:

root@sp3:/WORK# uname -a
Linux sp3 4.19.138-g45aa54f43 #3 SMP PREEMPT Thu May 18 17:50:30 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

root@sp3:/WORK# uname -r
4.19.138-g45aa54f43

But I found NOTHING in command dpkg --get-selections | grep linux-image
And the "/boot" is empty, too.

So I tried to install another kernel by sudo apt-get install linux-image-5.4.0-81-generic
And dpkg --get-selections | grep linux shows

root@sp3:/WORK# dpkg --get-selections | grep linux
binutils-aarch64-linux-gnu			install
console-setup-linux				install
libselinux1:arm64				install
linux-base					install
linux-image-5.4.0-81-generic			install
linux-libc-dev:arm64				install
linux-modules-5.4.0-81-generic			install
util-linux					install

But the uname -r is still "4.19.138-g45aa54f43"

How do I change kernel to 5.4.0-81 ?

@kloppy
Copy link

kloppy commented Nov 8, 2023

afaik you cannot switch kernels in a chroot, the kernel will always be the one that's running Android

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

No branches or pull requests

2 participants