Step 1: Add the required repository for downgrading
sudo nano /etc/apt/sources.list
Add the following “old-releases” repository to the end of the file.
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse
Step 2: Downgrade wpa_supplicant
Run the following to fetch your package list and downgrade the package
sudo apt update
sudo apt --allow-downgrades install wpasupplicant=2:2.9.0-21build1 Do make
sure you have marked the package to prevent any update for now.
sudo apt-mark hold wpasupplicant
Step 3: Setup Hotspot
You can use use the Network-Manager UI or just run the following command to start or create a hotspot. Since I am on using the XFCE desktop environment, it is pretty much easier to use command-line.
nmcli dev wifi hotspot
You can view the password via the the Network-Manager UI or you can always view it with the following command
nmcli dev wifi show-password
Step 4: Connecting to hotspot
If all thing goes well, you should now be able to connect to your Ubuntu (22.04) WiFi hotspot with ease.