-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update m1n1 for macOS Sonoma 14.5 compatibility #118
Comments
Already updated to 1.4.14 in our ppa since yesterday, see https://launchpad.net/~ubuntu-asahi/+archive/ubuntu/ubuntu-asahi Updating m1n1 stage 1 will require a |
Can we make this work with |
It probably does already since we use the latest asahi installer (INSTALLER_BASE=https://cdn.asahilinux.org/installer), but I haven't tested it yet. |
Note that there is a stage 2 mitigation in OpenBSD which — as far as I understand — doesn't require booting up macOS. I don't know whether it's available for Asahi Linux or not. |
@devnoname120 indeed. We also package the fix in our ppa as |
@tobhe Hmm for some reason I'm still on ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Get:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7468 B]
Get:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Get:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7461 B]
Fetched 29.9 kB in 0s (64.8 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubuntu@ubuntu:~$ sudo apt list --upgradable
Listing... Done
python3-distupgrade/noble-updates 1:24.04.18 all [upgradable from: 1:24.04.16]
ubuntu-release-upgrader-core/noble-updates 1:24.04.18 all [upgradable from: 1:24.04.16]
ubuntu@ubuntu:~$ sudo apt upgrade m1n1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
m1n1 is already the newest version (1.4.11-1ubuntu0).
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
python3-distupgrade ubuntu-release-upgrader-core
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. My configuration: ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 6.5.0-1013-apple-arm #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Sat Nov 18 04:29:37 UTC 2 aarch64 aarch64 aarch64 GNU/Linux |
hmm, looks like the ppa is missing. try |
Here is what I see now. I think that I issued ubuntu@ubuntu:~$ sudo add-apt-repository ppa:ubuntu-asahi/ubuntu-asahi
[sudo] password for ubuntu:
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu/
Suites: noble
Components: main
'
Description:
This PPA contains the current stable Ubuntu Asahi packages that are not part of the official archive.
More info: https://launchpad.net/~ubuntu-asahi/+archive/ubuntu/ubuntu-asahi
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [89.7 kB]
Get:3 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble InRelease [17.8 kB]
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:6 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble/main arm64 Packages [14.9 kB]
Get:7 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble/main Translation-en [5864 B]
Get:8 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Get:9 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7468 B]
Get:10 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Get:11 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7461 B]
Fetched 158 kB in 1s (192 kB/s)
Reading package lists... Done
ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Setting up libgl1-mesa-dri:arm64 (24.1.0~pre20240228-1asahi2.24.04) ...
Setting up linux-image-6.8.0-1005-apple-arm (6.8.0-1005.6) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.5.0-1013-apple-arm
.
mQINBGUTQa4BEADHiZlEAZST37mMqpPKL3wS9cX1WsOx9X8QQaA2pWnuQpp+EUNn
gbzIVHbE1hTy528GizMc/H/UF8yGf/UGDPDQqI7iyqStNjv7gdm+9g8v6i49sRJ2
@@ -31,4 +32,3 @@
eQ==
=a17G
-----END PGP PUBLIC KEY BLOCK-----
-Enabled: no
Configuration file '/etc/apt/sources.list.d/ubuntu-asahi.sources'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** ubuntu-asahi.sources (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apt/sources.list.d/ubuntu-asahi.sources ...
Refresh gnome-42-2204 snap to asahi/stable channel
/var/lib/dpkg/info/ubuntu-asahi.postinst: 8: snap: not found
Processing triggers for libc-bin (2.39-0ubuntu8.1) ...
Processing triggers for linux-image-6.8.0-1005-apple-arm (6.8.0-1005.6) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-1005-apple-arm
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:###################################################################################################flash-kernel: deferring update (trigger activated)################################################################################......../etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1005-apple-arm
Found initrd image: /boot/initrd.img-6.8.0-1005-apple-arm
Found linux image: /boot/vmlinuz-6.5.0-1013-apple-arm
Found initrd image: /boot/initrd.img-6.5.0-1013-apple-arm
Found linux image: /boot/vmlinuz-5.19.5-10-asahi
Found initrd image: /boot/initrd.img-5.19.5-10-asahi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
/etc/kernel/postinst.d/zz-update-m1n1:
/bin/ls: cannot access '/usr/lib/linux-image-*asahi*/apple': No such file or directory
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
cat: '/*.dtb': No such file or directory
run-parts: /etc/kernel/postinst.d/zz-update-m1n1 exited with return code 1
dpkg: error processing package linux-image-6.8.0-1005-apple-arm (--configure):
installed linux-image-6.8.0-1005-apple-arm package post-installation script subprocess returned error exit status 1
/bin/df: /sys/firmware/efi/efivars: Invalid argument
Processing triggers for flash-kernel (3.107ubuntu8) ...
flash-kernel: requested kernel 6.8.0-1005-apple-arm is in state half-configured.
flash-kernel: quitting cleanly, anticipating a future run
Errors were encountered while processing:
linux-image-6.8.0-1005-apple-arm
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1) I ran ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:5 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble InRelease
Hit:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
ubuntu@ubuntu:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
asahi-fwextract liblzfse1 linux-image-5.19.5-10-asahi linux-modules-5.19.5-10-asahi
Use 'sudo apt autoremove' to remove them.
The following upgrades have been deferred due to phasing:
python3-distupgrade ubuntu-release-upgrader-core
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-6.8.0-1005-apple-arm (6.8.0-1005.6) ...
Processing triggers for linux-image-6.8.0-1005-apple-arm (6.8.0-1005.6) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-1005-apple-arm
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1005-apple-arm
Found initrd image: /boot/initrd.img-6.8.0-1005-apple-arm
Found linux image: /boot/vmlinuz-6.5.0-1013-apple-arm
Found initrd image: /boot/initrd.img-6.5.0-1013-apple-arm
Found linux image: /boot/vmlinuz-5.19.5-10-asahi
Found initrd image: /boot/initrd.img-5.19.5-10-asahi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
/etc/kernel/postinst.d/zz-update-m1n1:
/bin/ls: cannot access '/usr/lib/linux-image-*asahi*/apple': No such file or directory
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
cat: '/*.dtb': No such file or directory
run-parts: /etc/kernel/postinst.d/zz-update-m1n1 exited with return code 1
dpkg: error processing package linux-image-6.8.0-1005-apple-arm (--configure):
installed linux-image-6.8.0-1005-apple-arm package post-installation script subprocess returned error exit status 1
Processing triggers for flash-kernel (3.107ubuntu8) ...
flash-kernel: requested kernel 6.8.0-1005-apple-arm is in state half-configured.
flash-kernel: quitting cleanly, anticipating a future run
Errors were encountered while processing:
linux-image-6.8.0-1005-apple-arm
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1) |
This is a side effect of your ppa going MIA. You will have to force uninstall What happened is: your ppa got removed because do-release-upgrade without being instructed otherwise simply disables everything but the official archive. The update pulled in the debian version of some of the asahi packages, including asahi-scripts. Now asahi-scripts ships an update hook to update the bootloader, but the device tree path differs from the one in Ubuntu so it can't find them and fails. EDIT: The best way to fix it manually is probably EDIT2: another (hacky) way would be moving |
I tried your solution, see below for the output. Note that I ran Should I try your ubuntu@ubuntu:~$ sudo apt install ubuntu-asahi
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 9224 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 asahi-scripts all 20231219.1-1 [9224 B]
Fetched 9224 B in 0s (121 kB/s)
(Reading database ... 194371 files and directories currently installed.)
Preparing to unpack .../asahi-scripts_20231219.1-1_all.deb ...
Unpacking asahi-scripts (20231219.1-1) over (20231219.1-1) ...
Setting up asahi-scripts (20231219.1-1) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-1005-apple-arm
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
flash-kernel: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-6.5.0-1013-apple-arm
flash-kernel: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-5.19.5-10-asahi
flash-kernel: deferring update (trigger activated)
Setting up linux-image-6.8.0-1005-apple-arm (6.8.0-1005.6) ...
Processing triggers for flash-kernel (3.107ubuntu8) ...
flash-kernel: requested kernel 6.8.0-1005-apple-arm is in state triggers-pending.
flash-kernel: quitting cleanly, anticipating a future run
Processing triggers for linux-image-6.8.0-1005-apple-arm (6.8.0-1005.6) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-1005-apple-arm
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1005-apple-arm
Found initrd image: /boot/initrd.img-6.8.0-1005-apple-arm
Found linux image: /boot/vmlinuz-6.5.0-1013-apple-arm
Found initrd image: /boot/initrd.img-6.5.0-1013-apple-arm
Found linux image: /boot/vmlinuz-5.19.5-10-asahi
Found initrd image: /boot/initrd.img-5.19.5-10-asahi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
/etc/kernel/postinst.d/zz-update-m1n1:
/bin/ls: cannot access '/usr/lib/linux-image-*asahi*/apple': No such file or directory
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
cat: '/*.dtb': No such file or directory
run-parts: /etc/kernel/postinst.d/zz-update-m1n1 exited with return code 1
dpkg: error processing package linux-image-6.8.0-1005-apple-arm (--configure):
installed linux-image-6.8.0-1005-apple-arm package post-installation script subprocess returned error exit status 1
Processing triggers for flash-kernel (3.107ubuntu8) ...
flash-kernel: requested kernel 6.8.0-1005-apple-arm is in state half-configured.
flash-kernel: quitting cleanly, anticipating a future run
Errors were encountered while processing:
linux-image-6.8.0-1005-apple-arm
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1) Edit: I ran your ubuntu@ubuntu:~$ sudo mv /etc/kernel/postinst.d/zz-update-m1n1 . ubuntu@ubuntu:~$ sudo apt install ubuntu-asahi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ubuntu-asahi is already the newest version (1.21+24.04).
The following packages were automatically installed and are no longer required:
asahi-fwextract liblzfse1 linux-image-5.19.5-10-asahi linux-modules-5.19.5-10-asahi
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1005-apple-arm
Found initrd image: /boot/initrd.img-6.8.0-1005-apple-arm
Found linux image: /boot/vmlinuz-6.5.0-1013-apple-arm
Found initrd image: /boot/initrd.img-6.5.0-1013-apple-arm
Found linux image: /boot/vmlinuz-5.19.5-10-asahi
Found initrd image: /boot/initrd.img-5.19.5-10-asahi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Processing triggers for flash-kernel (3.107ubuntu8) ...
System running in EFI mode, skipping.
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Pending kernel upgrade!
Running kernel version:
6.5.0-1013-apple-arm
Diagnostics:
The currently running kernel version is not the expected kernel version 6.8.0-1005-apple-arm.
Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host. ubuntu@ubuntu:~$ sudo apt reinstall asahi-scripts
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
asahi-fwextract liblzfse1 linux-image-5.19.5-10-asahi linux-modules-5.19.5-10-asahi
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 0 B/9224 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 194371 files and directories currently installed.)
Preparing to unpack .../asahi-scripts_20231219.1-1_all.deb ...
Unpacking asahi-scripts (20231219.1-1) over (20231219.1-1) ...
Setting up asahi-scripts (20231219.1-1) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-1005-apple-arm
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
W: Possible missing firmware /lib/firmware/renesas_usb_fw.mem for built-in driver xhci_pci
flash-kernel: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-6.5.0-1013-apple-arm
flash-kernel: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-5.19.5-10-asahi
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.107ubuntu8) ...
System running in EFI mode, skipping.
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Pending kernel upgrade!
Running kernel version:
6.5.0-1013-apple-arm
Diagnostics:
The currently running kernel version is not the expected kernel version 6.8.0-1005-apple-arm.
Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host. I haven't restarted yet because I'm not physically close to my Mac Mini in case things go wrong. But at least the ubuntu@ubuntu:~$ sudo apt list --installed | grep m1n1
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
m1n1/noble,now 1.4.14-1ubuntu0.1~asahi1 arm64 [installed] Should I remove the old PPAs? (Which ones?) ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [89.7 kB]
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:4 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Get:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7468 B]
Get:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Get:9 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7461 B]
Fetched 120 kB in 1s (151 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources:1 and /etc/apt/sources.list.d/ubuntu-asahi.sources:1 |
Looks good! You can remove Sorry for the trouble! I wonder if we might need to do an info post for others. We fixed this in for most people with an ubuntu-asahi update but if people upgraded before that they might have hit the same issue. |
ubuntu@ubuntu:~$ sudo rm /etc/apt/sources.list.d/ubuntu-asahi-ubuntu-ubuntu-asahi-noble.sources
[sudo] password for ubuntu:
ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [89.7 kB]
Hit:3 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble InRelease
Get:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Get:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7468 B]
Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Get:9 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7461 B]
Fetched 120 kB in 1s (199 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@ubuntu:~$ sudo update-m1n1
/bin/ls: cannot access '/usr/lib/linux-image-*asahi*/apple': No such file or directory
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
cat: '/*.dtb': No such file or directory Does this look good? |
Oh no, that still seems to be the wrong asahi-scripts version causing the same bug you saw previously... On my machine I'm seeing:
|
ubuntu@ubuntu:~$ apt list --upgradable
Listing... Done
python3-distupgrade/noble-updates 1:24.04.18 all [upgradable from: 1:24.04.16]
ubuntu-release-upgrader-core/noble-updates 1:24.04.18 all [upgradable from: 1:24.04.16] ubuntu@ubuntu:~$ apt list --installed | grep asahi-scripts
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
asahi-scripts/noble,now 20231219.1-1 all [installed,automatic] |
Ok, so this seems to be my mistake. Looks like we missed this when moving everything to the new ppa for noble. Should be there in a few minutes. |
Should be available now |
ubuntu@ubuntu:~$ sudo apt update
[sudo] password for ubuntu:
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [89.7 kB]
Get:3 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Get:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7468 B]
Get:5 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [89.7 kB]
Get:6 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Get:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7461 B]
Hit:8 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Packages [34.7 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 Packages [22.4 kB]
Get:11 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble InRelease [17.8 kB]
Get:12 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble/main arm64 Packages [15.1 kB]
Get:13 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble/main Translation-en [5940 B]
Fetched 305 kB in 2s (163 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@ubuntu:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
asahi-fwextract liblzfse1 linux-image-5.19.5-10-asahi linux-modules-5.19.5-10-asahi
Use 'sudo apt autoremove' to remove them.
The following upgrades have been deferred due to phasing:
python3-distupgrade ubuntu-release-upgrader-core
The following packages will be upgraded:
asahi-scripts
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 9408 B of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble/main arm64 asahi-scripts all 20231219.1-1ubuntu1 [9408 B]
Fetched 9408 B in 2s (3783 B/s)
(Reading database ... 194371 files and directories currently installed.)
Preparing to unpack .../asahi-scripts_20231219.1-1ubuntu1_all.deb ...
No diversion 'diversion of /usr/sbin/update-grub by asahi-scripts', none removed.
Unpacking asahi-scripts (20231219.1-1ubuntu1) over (20231219.1-1) ...
Setting up asahi-scripts (20231219.1-1ubuntu1) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-1005-apple-arm
flash-kernel: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-6.5.0-1013-apple-arm
flash-kernel: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-5.19.5-10-asahi
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.107ubuntu8) ...
System running in EFI mode, skipping.....
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Pending kernel upgrade!
Running kernel version:
6.5.0-1013-apple-arm
Diagnostics:
The currently running kernel version is not the expected kernel version 6.8.0-1005-apple-arm.
Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:5 https://ppa.launchpadcontent.net/ubuntu-asahi/ubuntu-asahi/ubuntu noble InRelease
Hit:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:9 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@ubuntu:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
asahi-fwextract liblzfse1 linux-image-5.19.5-10-asahi linux-modules-5.19.5-10-asahi
Use 'sudo apt autoremove' to remove them.
The following upgrades have been deferred due to phasing:
python3-distupgrade ubuntu-release-upgrader-core
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. ubuntu@ubuntu:~$ sudo update-m1n1
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
m1n1 updated at /run/.system-efi/m1n1/boot.bin ubuntu@ubuntu:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1005-apple-arm
Found initrd image: /boot/initrd.img-6.8.0-1005-apple-arm
Found linux image: /boot/vmlinuz-6.5.0-1013-apple-arm
Found initrd image: /boot/initrd.img-6.5.0-1013-apple-arm
Found linux image: /boot/vmlinuz-5.19.5-10-asahi
Found initrd image: /boot/initrd.img-5.19.5-10-asahi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done I then rebooted without issues and ran: ubuntu@ubuntu:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
asahi-fwextract liblzfse1 linux-image-5.19.5-10-asahi linux-modules-5.19.5-10-asahi
0 upgraded, 0 newly installed, 4 to remove and 2 not upgraded.
After this operation, 516 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 194371 files and directories currently installed.)
Removing asahi-fwextract (0.6.12-2) ...
Removing liblzfse1:arm64 (1.0-1) ...
Removing linux-image-5.19.5-10-asahi (5.19.5-10) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.19.5-10-asahi
/etc/kernel/postrm.d/zz-flash-kernel:
flash-kernel: Kernel 5.19.5-10-asahi has been removed.
flash-kernel: A higher version (6.8.0-1005-apple-arm) is still installed, no reflashing required.
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1005-apple-arm
Found initrd image: /boot/initrd.img-6.8.0-1005-apple-arm
Found linux image: /boot/vmlinuz-6.5.0-1013-apple-arm
Found initrd image: /boot/initrd.img-6.5.0-1013-apple-arm
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
/etc/kernel/postrm.d/zz-update-m1n1:
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
m1n1 updated at /run/.system-efi/m1n1/boot.bin
Removing linux-modules-5.19.5-10-asahi (5.19.5-10) ...
Processing triggers for libc-bin (2.39-0ubuntu8.1) ... And I then rebooted and everything looks fine 👌 I will update macOS and reboot to Ubuntu to see if the mitigation works. And then I'll update the stage 1 bootloader from the macOS recovery. |
Awesome, thanks for your patience :) One less bug. |
Here is what I did to upgrade and test:
Here is what I did for upgrading m1n1:
So everything works and is solved on my side. 🎉 @tobhe No, thank you for your patience. I'm incredibly grateful for your work! 🙏 |
@tobhe I owe you a beer next time I pass by München! 😄 |
@devnoname120 that is an offer I can hardly say no to :) feel free to ping me when you are around |
Ubuntu Asahi's
m1n1
package must be upgraded to match Apple's memory layout changes.Per https://social.treehouse.systems/@AsahiLinux/112449204541186432
See also followup: https://social.treehouse.systems/@AsahiLinux/112454079096607233
The text was updated successfully, but these errors were encountered: