Code Monkey home page Code Monkey logo

Comments (10)

robinpaulson avatar robinpaulson commented on June 11, 2024

Of course, the broader point here is that the latest kernel will not work on any version of Ubuntu earlier than hirsuite, 21.04.

i realise that's outside the scope of this project, perhaps you could add a warning to the readme, that this only works on certain versions of ubuntu? Perhaps also a sanity check by parsing the output of "lsb_release -rs" if a user does use the script?

from ubuntu-mainline-kernel.sh.

ThoreauHenry avatar ThoreauHenry commented on June 11, 2024

The issue with the kernel is that whoever runs it is packaging the kernel-headers with a 21.04 only requirement. Which makes the kernel essentially useless, because 21.04 is already at that kernel level.

This is an ubuntu packaging issue, not this script. The best thing to do for now is to drop back to a supported kernel until the ubuntu guys can find their ass with both hands.

from ubuntu-mainline-kernel.sh.

pimlie avatar pimlie commented on June 11, 2024

These errors have happened before and afaik they have always been retro-actively fixed by the Ubuntu kernel team when they have time? That could take a couple of weeks unfortunately.

from ubuntu-mainline-kernel.sh.

robinpaulson avatar robinpaulson commented on June 11, 2024

until the ubuntu guys can find their ass with both hands.

i'm not sure insulting the ubuntu devs gets us anywhere.

also, this is getting off-topic. my point was to prevent the packages being installed on a system which doesn't support them, not to criticise those "responsible"

they have always been retro-actively fixed by the Ubuntu kernel team

that's good to hear. rather than installing the kernel, finding my system is broken and uninstalling it, are you interested in the suggestion i made for a fix? it would be better if we could find out the dependencies before downloading, but I'm not sure if that's possible. although there should be a build script/recipe somewhere on the server which hosts them.

is there any chance there is new code in the kernel which requires a more recent libc6? i had a look around on the kernel wiki/faq and couldn't find anything obvious. it's a bit beyond my skills to understand the kernel unfortunately.

it may be one of these:
https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa
https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/unstable

the latter of those links takes us to this build log:https://launchpadlibrarian.net/535697172/buildlog_ubuntu-hirsute-amd64.linux-meta-unstable_5.12.0.9.9_BUILDING.txt.gz

which lists libc6 v2.33 as a requirement for the build

from ubuntu-mainline-kernel.sh.

robinpaulson avatar robinpaulson commented on June 11, 2024

we can use dpkg-deb to find out the version required in the .deb package

and dpkg-query to find out which version is installed:

d'oh. of course, we can use gdebi instead of these two tools. no need to use dpkg, which has no knowledge of the apt database.

$ sudo gdebi [headers-package] --apt-line --q
$ echo $?
will tell us if we can install it or not. if $? returns "0", then on we go. if "1" or any other digit, then we stop and tell the user their system is not supported
[the --apt-line] option will only simulate the install, checking dependencies and other pre-requisites

from ubuntu-mainline-kernel.sh.

robinpaulson avatar robinpaulson commented on June 11, 2024

Given that Ubuntu hirsute and impish both use libc6 v2.33, I find it extremely doubtful that we ever will be able to install any mainline kernels on any earlier version of Ubuntu. Personally I only use LTS, upgrading every 6 months is way too much hassle. So, I guess I'll stick with the default Ubuntu hwe kernel until next April, then use this script again.

from ubuntu-mainline-kernel.sh.

robinpaulson avatar robinpaulson commented on June 11, 2024

Of course, the "correct" way to fix this would be to build the kernel ourselves, against Ubuntu Focal, then making a PPA on Launchpad or similar. That's again a bit more than I'm interested in doing.

from ubuntu-mainline-kernel.sh.

GiorgioBrux avatar GiorgioBrux commented on June 11, 2024

While this gets fixed, it's possible to use this PPA (big thanks to TuxInvader!).
If you are on focal you can simply add it with the usual add-apt-repository command, if you are on an older version you can

sudo nano /etc/apt/sources.list.d/mainline-ppa.list

and paste

deb http://ppa.launchpad.net/tuxinvader/lts-mainline/ubuntu focal main
deb-src http://ppa.launchpad.net/tuxinvader/lts-mainline/ubuntu focal main

Using it with ubuntu 18.04LTS/bionic and it works like a charm.

from ubuntu-mainline-kernel.sh.

robinpaulson avatar robinpaulson commented on June 11, 2024

Thanks @GiorgioBrux , I'll give that a go.

from ubuntu-mainline-kernel.sh.

robinpaulson avatar robinpaulson commented on June 11, 2024

OK, that works really well. It's a bigger install than umk provides, but that's not a biggie. So long as the maintainer continues providing those packages, I'll be using that instead of this, a ppa is always preferable to a single-use apt clone.

from ubuntu-mainline-kernel.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.