Ubuntu 22.04 Upgrade from 21.10 error

I tried to upgrade my ubuntu from 21.10 to 22.04 with

  • sudo do-release-upgrade -c
  • do-release-upgrade

but I always get an error

Hit jammy InRelease
Hit jammy-updates InRelease
Hit hirsute InRelease
Hit jammy-backports InRelease
Hit jammy-security InRelease
Ign impish InRelease
Err impish Release 404 Not Found [IP: 50.18.207.89 443]
Fetched 0 B in 0s (0 B/s)
Hit jammy InRelease
Hit jammy-updates InRelease
Hit jammy-backports InRelease
Hit hirsute InRelease
Hit jammy-security InRelease
Ign impish InRelease
Err impish Release 404 Not Found [IP: 184.72.30.82 443]
Fetched 0 B in 0s (0 B/s)
Hit jammy InRelease
Hit jammy-updates InRelease
Hit jammy-backports InRelease
Hit hirsute InRelease
Hit jammy-security InRelease
Ign impish InRelease
Err impish Release 404 Not Found [IP: 50.18.207.89 443]
Fetched 0 B in 0s (0 B/s)
Error during update
A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.
W:Updating from such a repository can't be done securely, and is
therefore disabled by default., W:See apt-secure(8) manpage for
repository creation and user configuration details., E:The repository
' impish Release'
does not have a Release file. 

I tried to remove speedtest-cli, remove snap of speedtest but nothing helped. Any idea what could I do?

4

2 Answers

You should comment out the unofficial repositories before upgrading. This can normally be done in 2 ways:

  1. Commenting out the relevant line from /etc/apt/sources.list
  2. Renaming the relevant files inside the directory /etc/apt/sources.list.d

When you have performed the upgrade, check your old repos/files, and update them accordingly to the latest version. After that you can uncomment and/or rename the files back to activate the repositories.

For solution 1:

Find the lines containing hirsute and impish and put a # in front of the line.

For solution 2:

Find the files inside /etc/apt/sources.list.d that contains the above repositories. Rename those files, so they don't end with a .list extension (for instance, rename them to filename.list.old).

0

First we'll find the file that's causing your errors...

cd /etc/apt

grep -i packagecloud.io sources.list

You may get no "hits" with the grep command if sources.list doesn't contain it. That's ok.


Then we look elsewhere...

cd sources.list.d

grep -i packagecloud.io *.list

This should provide you with the filename(s) that we're looking for.


Now we edit the found file(s) with...

sudo -H gedit found_filename.list

It should only contain one or two lines. Place a "#" (no quotes) at the front of each line, save the file.


Optional extra points:

grep -i deb.nodesource.com *.list

sudo -H gedit found_filename.list

Change hirsute to impish, save the file.


sudo apt update

Should run cleanly without the errors that you previously had.

If you wish to keep speedtest-cli, use this command, taken from here...

curl -s | sudo bash

Then install/reinstall speedtest-cli or speedtest if you wish.

Then you can do your upgrade.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like