I am brand new to Linux and I am using Ubuntu 24.04.1 LTS. I keep trying to install programs via the terminal but i keep getting this same issue:
E: Conflicting values set for option Signed-By regarding source https://ppa.launchpadcontent.net/linuxuprising/java/ubuntu/ jammy: /usr/share/keyrings/oracle-jdk11-installer.gpg != /usr/share/keyrings/oracle-jdk18-installer.gpg
E: The list of sources could not be read.
I don't know what to do and I've tried deleting the files its mentioning since I don't need them but it keeps showing the issue.
Some people have mentioned that this problem is very similar to the problem in this post: "Conflicting values set for option Signed-By regarding source" but I have looked at that post several times trying to figure out how to use the code suggested to solve my problem but I have truly almost zero idea as to how since as I had stated earlier, I am extremely inexperienced when it comes to Linux or Ubuntu
I also can't really get any help thru that post that people keep suggesting because I need 50 reputation to comment to ask for help and I'm pretty sure I have zero. All I want is help with a problem that I've been dealing with for about a week now and I haven't found a single piece of useful information online.
I tried converting the code in the suggested post to use it for what I need and I got to this
curl https://ppa.launchpadcontent.net/linuxuprising/java/ubuntu/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/oracle-jdk11-installer.gpg add -
But now I'm getting a new error:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   196  100   196    0     0    290      0 --:--:-- --:--:-- --:--:--   290
gpg: no valid OpenPGP data found.
So I tried entering this in since I googled it and found a post about it on this same website:
sudo apt-key add gpg
But it just gives me this and doesn't seem to do anything because it gives me the same error code:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
And at this point I have no clue what to do.
