I've got a question regarding having the same software in different source PPAs.
Let's say I add a PPA to get a software from some dev. Later on, this dev decides to add to his PPA a custom version of another software that I happen to already have on my computer.
Next time I do sudo apt-get upgrade
, I will receive his custom version if it has a higher version number than mine. It is a problem because the code might be malicious or break my workflow. Overall, this would be considered as a PPA hijack.
Explaining this in a foreign language isn't easy for me, so I figured out a diagram could help visualize the issue.
Is there any way for me, as a user, to prevent receiving updates from a software if the source PPA has changed since the last update/install? I know I can freeze (or pin) a version, but it means I won't get updates at all (even if it's a legit one), so it doesn't really solve this issue.
I tried posting on /r/linux4noobs and crossposted on /r/linuxquestions, but I didn't really get much answers.
In my opinion, this seems to be a huge security issue and I'm surprised it isn't mentioned more. I'm still pretty new to Linux in general tho, so I might not be understanding something here. I'm open-minded and willing to understand how apt
works, so feel free to point out anything I'm missing!
Thanks for future answers.
apt
that you could point me to which would allow some sort of "whitelist" when adding sources, or which would solve this issue due to their core organization?