Let me tell you an example. For example, if you download a microblog client, you will always use the account you downloaded when updating this software. The problem you are talking about should be that the software you want to update is not downloaded from your own Apple id. If you want to update this kind of software, you must know the password of the Apple id that originally downloaded this software, otherwise you cannot update it.
I suggest that if the software is free, delete it and then use your id, otherwise every update will only pop up the account where you downloaded the software before.