As per title I tried installing pihole by running
curl -sSL https://install.pi-hole.net | bash
and it ended with this error : RTNETLINK answers: File exists error
As per title I tried installing pihole by running
curl -sSL https://install.pi-hole.net | bash
and it ended with this error : RTNETLINK answers: File exists error
Run the installer again.
If it still doesn't work, perhaps these links will help:
https://github.com/pi-hole/pi-hole/issues/1110#issuecomment-285349933
https://www.reddit.com/r/pihole/comments/6o4llg/problems_installing_pihole_on_orange_pi_zero/
I just ate a few hours tonight when trying to install on a Centos 7 VPS on OpenVZ that comes with a static public IP already configured. I think this should be considered a supported use case as setting up pi-hole with openvpn or strongswan on a cheap VPS is pretty common and logical.
The overall problem is that the code to get IPv4 info is not robust and pulls bad values. This messes up the network config files and results in the "RTNETLINK answers: File exists error" error. I spent some time trying to just fix the problem, but just kept running into more and more issues. Since I was already setup with correct static IPv4 configuration, the solution for me was:
Install proceeded successfully after this.
Corrective action suggested to developers:
Regards
So the problem has been around for a bit I see as this is an old thread. It sounds like a reasonable solution. Pull requests are always welcome. Or at least recreating this issue on GitHub since it relates more closely to the code.