One of the reasons for getting this error is that I wanted to switch from Ubuntu 20.04 to Ubuntu 21.10. I wanted to do this because I've been using Ubuntu 20.04 for about a month and I didn't get any updates to a newer version. I wanted to take matters into my own hands because it started to irritate me and I used this tutorial. I took the first method from the shore, but I didn't think that it could be an update to the development version of the system that is yet to appear on the market. It didn't update to version 22.04 because it was suggested by the system after using the first method of this guide, so various bugs began to appear, such as even after trying to run Software & Updates I got this message:
After typing in sudo apt-get update in the terminal, I got something like this:

After starting the program, the Software updater shows something like this:

When I click update partially it shows:

When I press continue it appears, however when I click upgrade nothing happens. When I type sudo apt-get upgrade
this shows up:

When trying to solve this problem, I decided to use this guide. The error I am writing about is described in point 7.