PPA description

Kernel linux-unstable with Rust support enabled

Git repository:

Steps to compile a Rust kernel module:

1) Add this ppa

2) Install prerequisite packages and rust-for-linux + linux-unstable from this ppa (and reboot):

$ sudo apt install bindgen flex bison libssl-dev libelf-dev rust-for-linux linux-image-6.1.0-2-generic linux-modules-extra-6.1.0-2-generic linux-modules-6.1.0-2-generic linux-headers-6.1.0-2-generic

$ sudo reboot

3) Git clone the linux source code:

$ git clone

4) Prepare the linux source to build Rust modules (make sure EXTRAVERSION matches the exact kernel version suffix):

$ cd linux
$ cp /boot/config-6.1.0-2-generic .config
$ export PATH=/var/lib/rust-for-linux/bin:$PATH
$ make EXTRAVERSION=-2-generic LOCALVERSION= modules_prepare

5) Now you can build Rust modules using the prepared Linux source directory as your kernel source target

Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by adding ppa:arighi/linux-unstable-rust to your system's Software Sources. (Read about installing)

sudo add-apt-repository ppa:arighi/linux-unstable-rust
sudo apt update
Technical details about this PPA

This PPA can be added to your system manually by copying the lines below and adding them to your system's software sources.

Display sources.list entries for:
Signing key:
4096R/1FFEA0F2681BB21A6D5F86F9137DF367D1707550 (What is this?)


For questions and bugs with software in this PPA please contact Andrea Righi.

PPA statistics

0 updates added during the past month.
View package details

Overview of published packages

16 of 6 results
Package Version Uploaded by
linux-meta-unstable Andrea Righi ()
linux-signed-unstable 6.1.0-3.3+rust2 Andrea Righi ()
linux-unstable 6.2.0-9.9+rust1 Andrea Righi ()
linux-unstable 6.1.0-3.3+rust2 Andrea Righi ()
rust-for-linux 1.62.0ubuntu3 Andrea Righi ()
rust-for-linux 1.62.0ubuntu2 Andrea Righi ()
16 of 6 results

Latest updates

  • linux-unstable 75 weeks ago
    Failed to build: amd64
  • rust-for-linux 76 weeks ago
    Successfully built
  • rust-for-linux 90 weeks ago
    Successfully built
  • linux-unstable 90 weeks ago
    Successfully built
  • linux-meta-unstable 90 weeks ago
    Successfully built