You cannot always upgrade to a new release when you have PPAs still enabled. You should only have the official sources before you start the upgrade process.
You also have sources that are for Debain and not Ubuntu. This can cause a lot of problems with your package management even in-between release upgrades.
It depends on how far the release upgrade proceeded. If this upgrade attempt failed halfway through, you may need to perform a clean installation. It can be difficult to release upgrade after a failed attempt. If you are not very proficient in solving potentially several issues due to the failed release upgrade, a clean installation will be much easier and more reliable.
If the release upgrade stopped at the very beginning, you should be able to proceed with the release upgrade after removing the offending sources.
To disable sources, first make a backup of your current list of sources:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
Then edit the sources.list
:
sudo nano /etc/apt/sources.list
Comment out all sources that are not official Ubuntu sources by putting a #
before each line. In your example above, you should comment every line that doesn't include ubuntu.com
, so comment out all the PPA lines from launchpad.net
as well as Skype, teamviewer, slack, Microsoft, etc.
When you are finished editing, press CTRL+O to save, then CTRL+X to exit.