Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
Thanks @GiorgioBrux , I'll give that a go.
from ubuntu-mainline-kernel.sh.
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)
- linux-tools? HOT 2
- Abort, the amd64 build has not succeeded HOT 2
- [Feature?] Revert back to Ubuntu default distro kernel (or Hardware Enablement Stack) HOT 6
- kernel install failed since v5.10.37, v5.11.21 HOT 1
- Possible error while trying to exit the script from uninstallation HOT 1
- gpg is required HOT 3
- GPG: check signature behind proxy HOT 1
- Support Secure Boot HOT 3
- Build mailine kernel locally or remotelly with configuration and patches applied HOT 1
- not working with the latest kernel v5.16 HOT 2
- Abort, sha256sum returned an error 4 HOT 1
- Abort, the amd64 build has not succeeded HOT 2
- How to return to HWE? HOT 1
- Freezing while installing updated kernel? HOT 2
- ubuntu-main-line-kernel-sh Abort, the amd64 build has not succeeded HOT 1
- add .gitattributes HOT 1
- line 419: REMOTE_VERSIONS: bad array subscript HOT 2
- Doesn't install the latest version available HOT 6
- Package names do not match the expected format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubuntu-mainline-kernel.sh.