Trying to upgrade 20 2022 keep getting following error

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.

No idea what to do about that. Help!

Are you upgrading from Ubuntu MATE 20.04 LTS to 22.04 LTS? Can you post the output of

sudo apt full-upgrade

also please post content from /etc/apt/sources.list

1 Like

Ou[put in attached doc.
Thanks,
John

(Attachment term output.odt is missing)

Herevis the requested output in png format.
Thanks,
John

Hi John,

Updating seems to work perfectly on your system :slight_smile:
But during release upgrading you had two warnings (W) and one error(E)

The following error means that updating your AllToMP3 software is not possible by normal means:

E: The repository https://packagecloud.io/AllToMP3/alltomp3/ubuntu focal Release' does not have a Release file.

Visiting the link produces this:

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:

  1. 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)
  2. 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)
  3. 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:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo do-release upgrade

Warnings (W) are OK, Errors (E) are NOT OK
Evaluate any errors before continuing.

in case of choice 2:

Afterwards, visit the site of AllToMP3 and follow the installation instructions to install their software and/or repository again.

If their installerscript complains that it doesn't know your ubuntu version, force it to use the last ubuntu version they support.

In case of choice 3:

Install the replacement for AllToMP3 like yt-dlp by issuing:

sudo apt install yt-dlp

Use it like:

yt-dlp -x --audio-format mp3 --audio-quality 0  https://www.youtube.com/watch?v=0-oQRSViZQE

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:

5 Likes

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?

Thanks,
John

Hi John,

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

EDIT: optimized code

3 Likes

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

3 Likes

Hi John,

The AllToMP3 files you showed can be deleted safely.
Since you ran the script they are probably empty anyway :slight_smile:
This will do the trick:

sudo rm /etc/apt/sources.list.d/AllToMP3*
1 Like