Fix freeradius-config installation error on Ubuntu 16.04 and FreeRadius3.0.X




This morning, I just tried to install FreeRadius 3.0.X on my Ubuntu 16.04 server. And it said that I have to install freeradius-config in order to finish the installation. But, I got these error messages:

...
dpkg: error processing archive /var/cache/apt/archives/freeradius-config_3.0.12-ppa1~xenial_amd64.deb (--unpack):
 trying to overwrite '/etc/freeradius/hints', which is also in package freeradius 3.0.12-ppa1~xenial
Errors were encountered while processing:
 /var/cache/apt/archives/freeradius-config_3.0.12-ppa1~xenial_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
...

So what I did to fix that is to run the following command to force orverwrite the freeradius-config page:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/freeradius-config_3.0.12-ppa1~xenial_amd64.deb

Then the rest was fine.


Comments