In Arch Linux, you can easily downgrade packages with the script https://github.com/archlinux-downgrade/downgrade, also available from AUR.
I experienced problems with the new version (2:2.11.1) of wpa_supplicant in PineBook Pro, where I have EndeavourOS. WiFi does not work anymore with the new version of wpa_supplicant.
I tried downgrading as suggested in the EndeavourOS forum. However, I got this error:
1 2 3 4 5 |
sudo downgrade wpa_supplicant No results found Unable to downgrade wpa_supplicant |
That’s because, by default, the downgrade script uses this archive site https://archive.archlinux.org or the local cache (which I always clear). However, that archive is for the x86 architecture. You must use a corresponding archive for the arm architecture, like https://alaa.ad24.cz/, using the command line option:
1 2 |
--ala-url <url> location of ALA server, defaults to "https://archive.archlinux.org" |
So I ran (note that I also chose to add the package to “IgnorePkg” to avoid further future updates, at least until the bug is solved):
1 2 3 4 5 6 |
sudo downgrade wpa_supplicant --ala-url https://alaa.ad24.cz/ :: Retrieving packages... wpa_supplicant-2:2.10-8-aarch64 1446,1 KiB 790 KiB/s 00:02 [------------------------------------] 100% warning: downgrading package wpa_supplicant (2:2.11-2 => 2:2.10-8) ... add wpa_supplicant to IgnorePkg? [y/N] y |
When running the command, you get the possible versions to downgrade to:
Reboot, and WiFi works again 🙂