Upgrading from 20.3 to 21 to 21.3 to 22 - needed help removing Skype files

I’ve started upgrading my wife’s laptop from 20.3 to 21 using the upgrade paths to get to 22. (Yeah, we let it slide).

When running the mint installer, after checking the Apt Cache, the warning I get is “Your package cache can’t refresh correctly. Run 'apt update and fix the errors it displays.”

The errors are:

DEBIAN_PRIORITY=critical apt-get update
W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease  503
Service Unavailable [IP: 23.44.16.188 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

We stopped using Skype so I did run uninstall commands but the above problem persists. Skype is no longer in the apps menu but files remained. I ran an iname command to find all Skype named files and found a big pair of folders in the .config folder. So I moved those to the trash. The problem still remained.

Looking through my list of Skype names I found this: /etc/apt/sources.list.d/skype-stable.list Since that is in an apt folder and we’re dealing with the apt cache this seemed promising. I found the folder and went to remove the skype-stable.list file but it is protected. I can’t delete, move, or rename it. The properties permissions are not changeable. I went to terminal and tried to remove it with rm and rm -f. Nothing is working.

XXXX:/etc/apt/sources.list.d$ cd /etc/apt/sources.list.d
XXXX:/etc/apt/sources.list.d$ rm -f skype-stable.list
rm: cannot remove 'skype-stable.list': Permission denied

How come I cannot delete this file? I am the owner of this laptop and installed Mint myself.
I even tried to chmod and chown the file but was denied each time.

XXXX:/etc/apt/sources.list.d$ chmod 777 skype-stable.list
chmod: changing permissions of 'skype-stable.list': Operation not permitted
XXXX:/etc/apt/sources.list.d$ chown sallie skype-stable.list
chown: changing ownership of 'skype-stable.list': Operation not permitted

All I want to do is get rid of the Skype files so that I can proceed with the upgrades.

I got an answer. It was under Software Sources and I had to delete it. You can look for other software repositories and choose to delete software from there. Once I did that, the locked files were removed automatically.