A quick look at my own file shows the following, I'm using Ubuntu plucky (25.04) so the initial install media will provide me nothing useful (just as 22.10 media would in the question), but that source will still be a problem unless I find the install media which I don't have any more.
In my case, I've just disabled the source. You'll note it's done by adding a
Enabled: no
to the file.
guiverc@d7050-next:~$ cat /etc/apt/sources.list.d/third-party.sources
Enabled: no
Types: deb
URIs: cdrom:[Xubuntu 23.10 _Mantic Minotaur_ - Daily amd64 (20230829)]/
Suites: mantic
Components: main restricted universe multiverse
This can be achieved with a text editor, OR GUI tool too (see https://help.ubuntu.com/community/Repositories/Ubuntu for help).