This GitHub repository has various apt repos, that can roughly be classified into 2 types:
You have to add the common apt repo irrespective of whether you are using Debian or Ubuntu. Run the following to add this repo:
curl -s --compressed "https://adityagarg8.github.io/t2-ubuntu-repo/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/t2-ubuntu-repo.gpg >/dev/null
sudo curl -s --compressed -o /etc/apt/sources.list.d/t2.list "https://adityagarg8.github.io/t2-ubuntu-repo/t2.list"
sudo apt update
Now after you have added the common apt repo, you additionally have to add a release specific repo for kernel updates and tiny-dfr
. Follow the steps below:
Identify your release codename. It is:
a) jammy
for Ubuntu 22.04
b) noble
for Ubuntu 24.04
c) bookworm
for Debian 12
d) sid
for Debian unstable
Run the following (taking noble
as the example, just replace it with your release codename in the first line):
CODENAME=noble
echo "deb [signed-by=/etc/apt/trusted.gpg.d/t2-ubuntu-repo.gpg] https://github.com/AdityaGarg8/t2-ubuntu-repo/releases/download/${CODENAME} ./" | sudo tee -a /etc/apt/sources.list.d/t2.list
sudo apt update
Note: You will have to add the release specific apt repo again whenever you upgrade Ubuntu/Debian to a newer release.
You should be then be able to install and update the following packages with apt
.
WARNING :- apple-bce, apple-touchbar, applesmc-t2, apfs-dkms and bcm5974-t2 packages should NOT be installed if installing the linux-t2
or linux-t2-lts
package, as t2 kernels have these drivers built in.
linux-t2
or linux-t2-lts
)tiny-dfr
)linux-t2
or linux-t2-lts
)get-wifi-firmware
.linux-t2
or linux-t2-lts
)linux-t2
or linux-t2-lts
)If you’ve really loved the work I’ve done so far for T2 Macs, and wanna help me out financially, you can donate me (AdityaGarg8) by following the instructions given here.