Hard times upgrading Ubuntu 20.04 to 22.04
Recently, I decided to do a reinstall of Ubuntu 20.04 on my home computer. This is what it came shipped with. The overall process was a breeze, as Dell has made factory re-installs a snap (no pun intended). However, I ran into issues when attempting to upgrade Ubuntu 20.04 to Ubuntu 22.04.
I kept getting the following error whenever I attempted to run
scott@scott-Precision-3650-Tower:~$ sudo do-release-upgrade Checking for a new Ubuntu release Failed to connect to https://changelogs.ubuntu.com/meta-release. Check your Internet connection or proxy settings No new release found.
I then checked into the firewall on my system, and made sure 1022/TCP was open, per many posts on the web. Still no go.
Luckily, I found a post from Reddit user PhoenixOneThree who mentioned that adding the following lines to your /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py file would allow the upgrade to run.
import ssl ssl._create_default_https_context = ssl._create_unverified_context
https://www.reddit.com/r/Ubuntu/comments/yajzo2/upgrade_2004_to_2204_fails_because_of_https/
Once I added the lines to my MetaRelease.py file, it allowed the upgrade to take place.
scott@scott-Precision-3650-Tower:~$ sudo do-release-upgrade Checking for a new Ubuntu release Get:1 Upgrade tool signature [819 B] Get:2 Upgrade tool [1,266 kB] Fetched 1,267 kB in 0s (0 B/s) authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' extracting 'jammy.tar.gz' Reading cache Checking package manager Reading package lists... Done Building dependency tree Reading state information... Done
The install went off without a hitch. Now, I will admit that since I don't know the full effects of adding the line to the MetaRelease.py file, once the upgrade was complete, I checked the MetaRelease.py file, the import ssl entries were removed.
Comments
Post a Comment