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

minimize.sh: remove kernels with higher versions #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rubo77
Copy link
Contributor

@rubo77 rubo77 commented Jan 4, 2023

Kernel version is at 5 already.

Kernel version is at 5 already.
@rubo77
Copy link
Contributor Author

rubo77 commented Jan 4, 2023

On Ubuntu I get a strange behaviour:

# uname -r
5.15.0-56-generic

# dpkg --list | awk '{ print $2 }' | grep 'linux-image-[3-9].*-generic'                                            
linux-image-5.15.0-53-generic
linux-image-5.15.0-56-generic

# dpkg --list | awk '{ print $2 }' | grep 'linux-image-[3-9].*-generic' | grep -v $(uname -r) | xargs apt-get purge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-image-unsigned-5.15.0-53-generic
Suggested packages:
  fdutils linux-doc | linux-source-5.15.0 linux-tools linux-modules-extra-5.15.0-53-generic
The following packages will be REMOVED:
  linux-image-5.15.0-53-generic* linux-modules-extra-5.15.0-53-generic*
The following NEW packages will be installed:
  linux-image-unsigned-5.15.0-53-generic

How could I solve this?

@rubo77
Copy link
Contributor Author

rubo77 commented Jan 4, 2023

This script doesn't cause the problem: https://askubuntu.com/a/1409370/34298

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.

1 participant