The Error “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.”, is an error that is invoked when you are working on ubuntu and are trying to update your hisrute version. Given below is the snippet of the error you might get:
An upgrade from 'hirsute' to 'jammy' is not supported with this tool.
I would like to share with you the steps I took to fix the “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.”
Why “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.” Error is Seen?
The error, “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.” is seen because, there might be an error in the script which you are using, creating a new script and running it with an appropriate command would fix the error.
If the error still persists then it likely that the apt files referenced in your system are missing from the Ubuntu server.
The detailed solution to fix the error “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.”, is given below:
How to Fix “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.” Error?
To fix the error, you will have to create a new script named script.sh with all the appropriate code inside and then run the script in a correct way.
If the above method does not work then it is likely that the error is caused by the apt files referenced in your system are missing from the Ubuntu server, then changing all the hirsute
labels to jammy
should fix the error.
To fix the error, “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool..”, you will have to follow the steps mentioned below:
Step 1: Change into your Script
To fix the error first you will have to create a new script named script.sh and enter the below mentioned code in it:
#!/bin/bash
sudo sed -i 's/continue/pass/g' /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py
sudo sed -i 's/hirsute/jammy/g' /etc/apt/sources.list
sudo apt-get update
echo "Upgrade distro"
sudo do-release-upgrade
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get install -f -y
sudo apt-get autoremove --purge -y
Then you will have to run the code properly by entering the below mentioned command:
chmod +x script.sh && ./script.sh
This should fix the error “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.”.
Step 2: Changing the hisrute Labels
If the above method does not work then it is likely that the error is caused because of the apt files referenced in your system were missing from the Ubuntu server, then changing all the hirsute
labels to jammy
should fix the error.
To do so you will have to go to the sources.list file by following the path /etc/apt/sources.list
and then change all the hisrute labels to jammy.
Then your apt should run correctly and then run the scripts as shown in step 1.
Note: some messages about php-fpm not being enabled under Apache HTTP can be seen but running a ngnix should fix all the problems. Make sure to run apt upgrade && apt update && apt dist-upgrade && apt autoremove
to clean out the detritus.
This should fix the error “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.”.
Conclusion
To fix the error “An upgrade from ‘hirsute’ to ‘jammy’ is not supported with this tool.”, you will have to create a new script named script.sh with all the appropriate code inside and then run the script in a correct way.
If the above method does not work then it is likely that the error is caused if the apt files referenced in your system were missing from the Ubuntu server, then changing all the hirsute
labels to jammy
should fix the error