Problems with debian package and proto_dhcp/freeradius-dhcp*.deb #1125

Closed
jpereira opened this Issue Jul 6, 2015 · 2 comments

Projects

None yet

1 participant

@jpereira
Contributor
jpereira commented Jul 6, 2015

Hi,

We have a conflict between the packages "freeradius-XXX.deb" and freeradius-dhcp-XXX.deb.

[root@jpereira-desktop freeradius]# dpkg -S /usr/lib/freeradius/proto_dhcp.so 
freeradius: /usr/lib/freeradius/proto_dhcp.so
[root@jpereira-desktop freeradius]# dpkg -i freeradius-dhcp_3.0.9+git_amd64.deb 
(Reading database ... 324085 files and directories currently installed.)
Preparing to unpack freeradius-dhcp_3.0.9+git_amd64.deb ...
Unpacking freeradius-dhcp (3.0.9+git) ...
dpkg: error processing archive freeradius-dhcp_3.0.9+git_amd64.deb (--install):
 trying to overwrite '/usr/lib/freeradius/proto_dhcp.so', which is also in package freeradius 3.0.9+git
Errors were encountered while processing:
 freeradius-dhcp_3.0.9+git_amd64.deb
[root@jpereira-desktop freeradius]# 

The file "proto_dhcp" is referenced by two packages.

[jpereira@jpereira-desktop freeradius-server-3.0.x.git]$ grep "freeradius/proto" debian/*.install
debian/freeradius-dhcp.install:usr/lib/freeradius/proto_dhcp*.so
debian/freeradius.install:usr/lib/freeradius/proto*.so
[jpereira@jpereira-desktop freeradius-server-3.0.x.git]$ 

@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 6, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 fff7356
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 6, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 f067ae3
@jpereira
Contributor
jpereira commented Jul 6, 2015

The problem was caused because exist a double reference for "proto_dhcp.so" into the package "freeradius-XXX.deb" and "freeradius-dhcp-XXX.deb".

And don't make sense to create a separated package "freeradius-dhcp-XXX.deb" and keep/install/enable by default over another package. in this case "freeradius-XXX.deb"

This patch #1126 fixes this.

@jpereira
Contributor
jpereira commented Jul 6, 2015

Below some evidences.

removing everything...

[root@jpereira-desktop freeradius]# dpkg -l | awk '/freeradius/ { print $2}' | xargs dpkg -P --force-all
[root@jpereira-desktop freeradius]# rm -rf /etc/freeradius/

installing the basic

[root@jpereira-desktop freeradius]# dpkg -i libfreeradius3_3.0.9+git_amd64.deb \
freeradius-common_3.0.9+git_all.deb  \
freeradius-config_3.0.9+git_amd64.deb \
freeradius_3.0.9+git_amd64.deb 
Selecting previously unselected package libfreeradius3.
(Reading database ... 323303 files and directories currently installed.)
Preparing to unpack libfreeradius3_3.0.9+git_amd64.deb ...
Unpacking libfreeradius3 (3.0.9+git) ...
Selecting previously unselected package freeradius-common.
Preparing to unpack freeradius-common_3.0.9+git_all.deb ...
Unpacking freeradius-common (3.0.9+git) ...
Selecting previously unselected package freeradius-config.
Preparing to unpack freeradius-config_3.0.9+git_amd64.deb ...
Unpacking freeradius-config (3.0.9+git) ...
Selecting previously unselected package freeradius.
Preparing to unpack freeradius_3.0.9+git_amd64.deb ...
Unpacking freeradius (3.0.9+git) ...
Setting up libfreeradius3 (3.0.9+git) ...
Setting up freeradius-common (3.0.9+git) ...
Adding user freerad to group shadow
Setting up freeradius-config (3.0.9+git) ...
make: Entering directory `/etc/freeradius/certs'
make: Leaving directory `/etc/freeradius/certs'
make: Entering directory `/etc/freeradius/certs'
openssl gendh -out dh -2 2048
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
...................................
[root@jpereira-desktop freeradius]# 

And now installing the freeradius-dhcp without errors.

[root@jpereira-desktop freeradius]# dpkg -i freeradius-dhcp_3.0.9+git_amd64.deb 
(Reading database ... 324057 files and directories currently installed.)
Preparing to unpack freeradius-dhcp_3.0.9+git_amd64.deb ...
Unpacking freeradius-dhcp (3.0.9+git) ...
Setting up freeradius-dhcp (3.0.9+git) ...
 * Checking FreeRADIUS daemon configuration...                                                                                                  [ OK ] 
 * Stopping FreeRADIUS daemon freeradius                                                                                                        [ OK ] 
 * Starting FreeRADIUS daemon freeradius                                                                                                        [ OK ] 
[root@jpereira-desktop freeradius]# 
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 10, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 dfbaa6e
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 10, 2015
@jpereira jpereira Don't install proto_dhcp.so in freeradius-*.deb, #1125 4811163
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 10, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 5997106
@jpereira jpereira closed this Jul 10, 2015
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 7186c92
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 ba06296
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Don't install proto_dhcp.so in freeradius-*.deb, #1125 9d4be78
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 f1e638d
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Don't install proto_dhcp.so in freeradius-*.deb, #1125 9469401
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 665457c
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 1cbfef1
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Don't install proto_dhcp.so in freeradius-*.deb, #1125 ecda672
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Jul 15, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 df1fbca
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Aug 13, 2015
@jpereira jpereira Don't install proto_dhcp.so in freeradius-*.deb, #1125 d5ab4b7
@jpereira jpereira added a commit to jpereira/freeradius-server that referenced this issue Aug 13, 2015
@jpereira jpereira Fix problems with freeradius-dhcp*.deb, refs #1125 357857e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment