Trying to upgrade from 20 to 2022 keep getting following error
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 'https://packagecloud.io/AllToMP3/alltomp3/ubuntu focal Release' does not have a Release file.
The page you were looking for doesn't exist.
You may have mistyped the address or the page may have moved.
If you are the application owner check the logs for more information.
Which means that the problem is on their side (c.q. site):
AllToMP3 software has not been renewed since 2 years ago so a 22.04 version does not seem to be available (yet).
So it doesn't matter which other distro you try, you will keep on encountering this problem.
The choices are these:
you need this software badly so that you wait for a new AllToMP3 version before you upgrade
(however long that may take ... could be years)
you upgrade, knowing that it might need some tinkering to get AllToMP3 going
(disclaimer: This is not guaranteed to succeed, but there is a big chance it will)
You upgrade and find a replacement for AllToMP3 (like 'youtube-dl' or 'yt-dlp')
In case of choice 2 or 3
Disable (or remove) the repository from Controlcenter -> Software &updates:
Try to upgrade again by using the commands below (or any other way you prefer)
The first three commands are just to bring you up to the latest packages and remove any useless remainders of uninstalled software. The last command is the upgrade to the 22.04 version:
Good luck, and keep in mind: For securityreasons it is adviceble to stay away from 3rd party repositories whenever possible. The Ubuntu repositories contain more than 70,000 software packages so there is a pretty good chance that it will offer what you are looking for.
EDIT: Although Ubuntu-MATE LTS releases get updates for 3 years, remember that that is only concerning the desktop environment.
The rest of the system and software get updates for 5 years.
So securitywise it is pretty safe.
See also this post:
Hello Thom,
Thank you for your help. However the repository https://packagecloud.io/AllToMP3/alltomp3/ubuntu focal Release' does not show up in software and updates. Maybe there is another way to remove it or maybe it is hidden in something else?
That could be possible although I've never encountered that.
It must be in a file somewhere under /etc/apt
So you could search in all files under that directory by issuing:
grep -ril alltomp3 /etc/apt/*
the output will display the files that contain the word 'alltomp3'
If you get one or more filenames in return, you can edit those files (as administrator ofcourse) and delete that line. Do not use libreoffice to edit those files. Use pluma
You can also let the computer do it for you:
grep -ril alltomp3 /etc/apt/* | while read filename
do
sudo sed -i '/alltomp3/d' "$filename"
done
Hi Thom,
That flushed it out. I'm now upgraded to Jammy Jellyfish. I've attached a png with the results of where it was hiding. Your script to edit the references out worked perfectly.
Many thanks for your help,
John