Why does MAAS needs to deal with this? What's your environment looking like?
My guess is that if you are using a custom mirror, you are doing one of two things:
1. DNS poisoning
2. pointing MAAS to your mirror.
If you are doing 2, why would maas need to remove anything provided that maas should be replacing eveyrthing in /etc/apt and should be updating against that.
If you are doing 1, it could be a problem, but doing dns poisoning is bad....
That said, why is this a MAAS issue and not an APT issue? This seems to me like this is something APT needs to deal with.. ?
Why does MAAS needs to deal with this? What's your environment looking like?
My guess is that if you are using a custom mirror, you are doing one of two things:
1. DNS poisoning
2. pointing MAAS to your mirror.
If you are doing 2, why would maas need to remove anything provided that maas should be replacing eveyrthing in /etc/apt and should be updating against that.
If you are doing 1, it could be a problem, but doing dns poisoning is bad....
That said, why is this a MAAS issue and not an APT issue? This seems to me like this is something APT needs to deal with.. ?