Gå til innhold

Umulig å innstalere freeradius på ubuntu 18.04 LTS?


Anbefalte innlegg

Får det bare ikke til uansett om jeg bruker apt-get eller dpkg får jeg samme errors.

som med eksemplet her med dpkg 

dpkg -i freeradius_3.0.16+dfsg-1ubuntu3.1_amd64.deb
(Reading database ... 96583 files and directories currently installed.)
Preparing to unpack freeradius_3.0.16+dfsg-1ubuntu3.1_amd64.deb ...
Unpacking freeradius (3.0.16+dfsg-1ubuntu3.1) over (3.0.16+dfsg-1ubuntu3.1) ...
Setting up freeradius (3.0.16+dfsg-1ubuntu3.1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
ln: failed to create symbolic link '/etc/freeradius/3.0/sites-enabled/default': No such file or directory
dpkg: error processing package freeradius (--install):
 installed freeradius package post-installation script subprocess returned error exit status 1
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.24) ...
Errors were encountered while processing:
 freeradius


Om jeg bruker apt-get install -f eller dpkg --configure -a hjelper heller ikke

Endret av Lindsay
Lenke til kommentar
Videoannonse
Annonse
Gjest Slettet-t8fn5F

Jeg fikk det installerte bare ved å skrive "sudo apt install freeradius"
Installert det på en helt clean Ubuntu under WSL

  • Liker 1
Lenke til kommentar

Det mangler nok en del pakker fra før, så installasjonen din snubler nok i det.

 

Prøv å finne og installere en toppnivå-pakke med apt, så pleier den å dra inn alle dependencies som trengs.

 

https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/freeradius_3.0.16+dfsg-1ubuntu3_amd64.deb.html

 

Om du tenker på freeradius_3.0.16+dfsg-1ubuntu3.1_amd64.deb?

Den er prøvd med samme resultat ergo derfor jeg også nevnte dpkg og ikke bare dpkg --configure -a

 

Som sagt har også prøvd med aptitude og sånn jeg leser på nett har dette med start|stopp|restart å gjøre ettersom dette har blitt endret ?

Runlevel Changes
================
In freeradius 1.1.5-1, we changed our update-rc.d call so that we start
at S50 and stop at K19 in order to fix dependency issues with various
databases.  This only takes effect for new installs however.  If you
want to update your existing install to do the same, a quick method is:

update-rc.d -f freeradius remove
update-rc.d freeradius start 50 2 3 4 5 . stop 19 0 1 6 . 

Det er nettopp der install feiler og ser det er flere som ikke får det til.

Endret av Lindsay
Lenke til kommentar
Lindsay skrev (På 14.7.2019 den 20.42):

Om du tenker på freeradius_3.0.16+dfsg-1ubuntu3.1_amd64.deb?

Linket mest til den siden så du så hvilke pakker pakken din er avhengig av. Feilmeldingene du får tilsier at noen av dem mangler og det løses ingen dependencies siden du manuelt kører dpkg som er mye mer low-level enn apt. Du bør kun bruke dpkg om det absolutt er nødvendig. apt er designet for å nøste opp i hva du trenger av ekstra pakker og den kaller opp dpkg i riktig rekkefølge på det den laster ned.

 

Har du prøvd det skriver ?

 

Mulig freeradius ikke en toppnivå-pakke (meta-pakke) men det er vel uansett en god start ?

 

En annen mulighet er å prøve å installere alle pakkene som trengs sammen på samme kommandolinjen.

Lenke til kommentar
vidor skrev (På 14.7.2019 den 20.55):

Linket mest til den siden så du så hvilke pakker pakken din er avhengig av. Feilmeldingene du får tilsier at noen av dem mangler og det løses ingen dependencies siden du manuelt kører dpkg som er mye mer low-level enn apt. Du bør kun bruke dpkg om det absolutt er nødvendig. apt er designet for å nøste opp i hva du trenger av ekstra pakker og den kaller opp dpkg i riktig rekkefølge på det den laster ned.

 

Har du prøvd det skriver ?

 

Mulig freeradius ikke en toppnivå-pakke (meta-pakke) men det er vel uansett en god start ?

 

En annen mulighet er å prøve å installere alle pakkene som trengs sammen på samme kommandolinjen.

Dyttet inn avhengigheter som er å finne, er ikke att jeg ikke har prøvd :)

root@ubuntu-pihole:~# aptitude install freeradius-common freeradius-config libc6                                                                              libct4 libfreeradius3 libgdbm5 libpam0g libperl5.26 libpython2.7 libreadline7 l                                                                             ibsqlite3-0 libssl1.1 libtalloc2 libwbclient0 lsb-base
freeradius-common is already installed at the requested version (3.0.16+dfsg-1ub                                                                             untu3.1)
freeradius-config is already installed at the requested version (3.0.16+dfsg-1ub                                                                             untu3.1)
libc6 is already installed at the requested version (2.27-3ubuntu1)
libct4 is already installed at the requested version (1.00.82-2)
libfreeradius3 is already installed at the requested version (3.0.16+dfsg-1ubunt                                                                             u3.1)
libgdbm5 is already installed at the requested version (1.14.1-6)
libpam0g is already installed at the requested version (1.1.8-3.6ubuntu2.18.04.1                                                                             )
libperl5.26 is already installed at the requested version (5.26.1-6ubuntu0.3)
libpython2.7 is already installed at the requested version (2.7.15-4ubuntu4~18.0                                                                             4)
libreadline7 is already installed at the requested version (7.0-3)
libsqlite3-0 is already installed at the requested version (3.22.0-1ubuntu0.1)
libssl1.1 is already installed at the requested version (1.1.1-1ubuntu2.1~18.04.                                                                             3)
libtalloc2 is already installed at the requested version (2.1.10-2ubuntu1)
libwbclient0 is already installed at the requested version (2:4.7.6+dfsg~ubuntu-                                                                             0ubuntu2.11)
lsb-base is already installed at the requested version (9.20170808ubuntu1)
freeradius-common is already installed at the requested version (3.0.16+dfsg-1ub                                                                             untu3.1)
freeradius-config is already installed at the requested version (3.0.16+dfsg-1ub                                                                             untu3.1)
libc6 is already installed at the requested version (2.27-3ubuntu1)
libct4 is already installed at the requested version (1.00.82-2)
libfreeradius3 is already installed at the requested version (3.0.16+dfsg-1ubunt                                                                             u3.1)
libgdbm5 is already installed at the requested version (1.14.1-6)
libpam0g is already installed at the requested version (1.1.8-3.6ubuntu2.18.04.1                                                                             )
libperl5.26 is already installed at the requested version (5.26.1-6ubuntu0.3)
libpython2.7 is already installed at the requested version (2.7.15-4ubuntu4~18.0                                                                             4)
libreadline7 is already installed at the requested version (7.0-3)
libsqlite3-0 is already installed at the requested version (3.22.0-1ubuntu0.1)
libssl1.1 is already installed at the requested version (1.1.1-1ubuntu2.1~18.04.                                                                             3)
libtalloc2 is already installed at the requested version (2.1.10-2ubuntu1)
libwbclient0 is already installed at the requested version (2:4.7.6+dfsg~ubuntu-                                                                             0ubuntu2.11)
lsb-base is already installed at the requested version (9.20170808ubuntu1)
The following partially installed packages will be configured:
  freeradius freeradius-dhcp freeradius-mysql libfreeradius-dev
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up freeradius (3.0.16+dfsg-1ubuntu3.1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling ba                                                                             ck to defaults
ln: failed to create symbolic link '/etc/freeradius/3.0/sites-enabled/default':                                                                              No such file or directory
dpkg: error processing package freeradius (--configure):
 installed freeradius package post-installation script subprocess returned error                                                                              exit status 1
dpkg: dependency problems prevent configuration of freeradius-dhcp:
 freeradius-dhcp depends on freeradius (= 3.0.16+dfsg-1ubuntu3.1); however:
  Package freeradius is not configured yet.

dpkg: error processing package freeradius-dhcp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of freeradius-mysql:
 freeradius-mysql depends on freeradius (= 3.0.16+dfsg-1ubuntu3.1); however:
  Package freeradius is not configured yet.

dpkg: error processing package freeradius-mysql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libfreeradius-dev:
 libfreeradius-dev depends on freeradius-dhcp (= 3.0.16+dfsg-1ubuntu3.1); howeve                                                                             r:
  Package freeradius-dhcp is not configured yet.

dpkg: error processing packagNo apport report written because the error message                                                                              indicates its a followup error from a previous failure.
                                                       No apport report written                                                                              because the error message indicates its a followup error from a previous failure                                                                             .
 No apport report written because MaxReports is reached already
                                                               e libfreeradius-d                                                                             ev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 freeradius
 freeradius-dhcp
 freeradius-mysql
 libfreeradius-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up freeradius (3.0.16+dfsg-1ubuntu3.1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling ba                                                                             ck to defaults
ln: failed to create symbolic link '/etc/freeradius/3.0/sites-enabled/default':                                                                              No such file or directory
dpkg: error processing package freeradius (--configure):
 installed freeradius package post-installation script subprocess returned error                                                                              exit status 1
dpkg: dependency problems prevent configuration of freeradius-dhcp:
 freeradius-dhcp depends on freeradius (= 3.0.16+dfsg-1ubuntu3.1); however:
  Package freeradius is not configured yet.

dpkg: error processing package freeradius-dhcp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of freeradius-mysql:
 freeradius-mysql depends on freeradius (= 3.0.16+dfsg-1ubuntu3.1); however:
  Package freeradius is not configured yet.

dpkg: error processing package freeradius-mysql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libfreeradius-dev:
 libfreeradius-dev depends on freeradius-dhcp (= 3.0.16+dfsg-1ubuntu3.1); howeve                                                                             r:
  Package freeradius-dhcp is not configured yet.

dpkg: error processing package libfreeradius-dev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 freeradius
 freeradius-dhcp
 freeradius-mysql
 libfreeradius-dev

root@ubuntu-pihole:~#

Kan kjøre remove og purge, er bare att jeg har gjort det en del ganger før uten att dette hjelper

 

Eneste jeg ikke har prøvd er 

update-rc.d -f freeradius remove
update-rc.d freeradius start 50 2 3 4 5 . stop 19 0 1 6 .
Lenke til kommentar

Hvorfor bruker du ikke systemctl  istedenfor  update.rc-d?

 

 

Du kan så si :)

Nå har jeg løst dette da jeg la inn dette på en raspberrypi 3.

Der funka dette out of the box, men skulle jo gjerne ha hatt en forklaring på hvorfor det ikke gikk å legge inn freeradius på denne ubuntu maskinen.

Lenke til kommentar

Ikke samme som sist, men 

root@ubuntu-pihole:~# apt install freeradius freeradius-mysql                   Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  freeradius-utils libfreeradius3 libmysqlclient20 libwbclient0
Suggested packages:
  freeradius-ldap freeradius-postgresql freeradius-krb5 snmp
The following NEW packages will be installed:
  freeradius freeradius-mysql libmysqlclient20 libwbclient0
The following packages will be upgraded:
  freeradius-utils libfreeradius3
2 upgraded, 4 newly installed, 0 to remove and 3 not upgraded.
Need to get 2,839 kB of archives.
After this operation, 7,740 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://packages.networkradius.com/releases/ubuntu-bionic bionic/main amd64 freeradius-utils amd64 3.0.19+git [120 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libwbclient0 amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.11 [33.1 kB]
Get:3 http://packages.networkradius.com/releases/ubuntu-bionic bionic/main amd64 libfreeradius3 amd64 3.0.19+git [210 kB]
Get:4 http://packages.networkradius.com/releases/ubuntu-bionic bionic/main amd64 freeradius amd64 3.0.19+git [1,616 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmysqlclient20 amd64 5.7.26-0ubuntu0.18.04.1 [818 kB]
Get:6 http://packages.networkradius.com/releases/ubuntu-bionic bionic/main amd64 freeradius-mysql amd64 3.0.19+git [40.9 kB]
Fetched 2,839 kB in 1s (2,684 kB/s)
Selecting previously unselected package libwbclient0:amd64.
(Reading database ... 96731 files and directories currently installed.)
Preparing to unpack .../0-libwbclient0_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.11_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.11) ...
Preparing to unpack .../1-freeradius-utils_3.0.19+git_amd64.deb ...
Unpacking freeradius-utils (3.0.19+git) over (3.0.16+dfsg-1ubuntu3.1) ...
Preparing to unpack .../2-libfreeradius3_3.0.19+git_amd64.deb ...
Unpacking libfreeradius3 (3.0.19+git) over (3.0.16+dfsg-1ubuntu3.1) ...
Selecting previously unselected package freeradius.
Preparing to unpack .../3-freeradius_3.0.19+git_amd64.deb ...
Unpacking freeradius (3.0.19+git) ...
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack .../4-libmysqlclient20_5.7.26-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.26-0ubuntu0.18.04.1) ...
Selecting previously unselected package freeradius-mysql.
Preparing to unpack .../5-freeradius-mysql_3.0.19+git_amd64.deb ...
Unpacking freeradius-mysql (3.0.19+git) ...
Setting up libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.11) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Setting up libfreeradius3 (3.0.19+git) ...
Setting up freeradius (3.0.19+git) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
dpkg-statoverride: warning: --update given but /etc/freeradius/mods-config/files/pre-proxy does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/mods-config/files/accounting does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/mods-config/preprocess/huntgroups does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/mods-config/preprocess/hints does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/experimental.conf does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/proxy.conf does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/clients.conf does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/certs does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/sites-available does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/sites-enabled does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/mods-config/attr_filter does not exist
dpkg-statoverride: warning: --update given but /etc/freeradius/policy.d does not exist
Job for freeradius.service failed because the control process exited with error code.
See "systemctl status freeradius.service" and "journalctl -xe" for details.
invoke-rc.d: initscript freeradius, action "start" failed.
● freeradius.service - FreeRADIUS multi-protocol policy server
   Loaded: loaded (/lib/systemd/system/freeradius.service; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2019-07-15 15:46:34 UTC; 23ms ago
     Docs: man:radiusd(8)
           man:radiusd.conf(5)
           http://wiki.freeradius.org/
           http://networkradius.com/doc/
  Process: 5788 ExecStartPre=/usr/sbin/freeradius $FREERADIUS_OPTIONS -Cx -lstdout (code=exited, status=1/FAILURE)
  Process: 5783 ExecStartPre=/bin/chown freerad:freerad /var/run/freeradius (code=exited, status=0/SUCCESS)

Jul 15 15:46:34 ubuntu-pihole systemd[1]: freeradius.service: Control process exited, code=exited status=1
Jul 15 15:46:34 ubuntu-pihole systemd[1]: freeradius.service: Failed with result 'exit-code'.
Jul 15 15:46:34 ubuntu-pihole systemd[1]: Failed to start FreeRADIUS multi-protocol policy server.
Created symlink /etc/systemd/system/multi-user.target.wants/freeradius.service → /lib/systemd/system/freeradius.service.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.24) ...
Setting up libmysqlclient20:amd64 (5.7.26-0ubuntu0.18.04.1) ...
Setting up freeradius-mysql (3.0.19+git) ...
Job for freeradius.service failed because the control process exited with error code.
See "systemctl status freeradius.service" and "journalctl -xe" for details.
invoke-rc.d: initscript freeradius, action "force-reload" failed.
Setting up freeradius-utils (3.0.19+git) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
root@ubuntu-pihole:~
Lenke til kommentar

Forsket du i dette?

 

'See "systemctl status freeradius.service" and "journalctl -xe" for details.'

 

Jo jeg enablet med systemctl enable freeradius og kjørte systemctl start freeradius med samme resultat

systemctl start freeradius
Job for freeradius.service failed because the control process exited with error code.
See "systemctl status freeradius.service" and "journalctl -xe" for details.
root@ubuntu-pihole:~#

root@ubuntu-pihole:~# journalctl -xe
Jul 15 17:16:45 ubuntu-pihole systemd[1]: Stopped FreeRADIUS multi-protocol poli
-- Subject: Unit freeradius.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit freeradius.service has finished shutting down.
Jul 15 17:16:45 ubuntu-pihole systemd[1]: Starting FreeRADIUS multi-protocol pol
-- Subject: Unit freeradius.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit freeradius.service has begun starting up.
Jul 15 17:16:45 ubuntu-pihole freeradius[27169]: libssl version mismatch.  built
Jul 15 17:16:45 ubuntu-pihole systemd[1]: freeradius.service: Control process ex
Jul 15 17:16:45 ubuntu-pihole systemd[1]: freeradius.service: Failed with result
Jul 15 17:16:45 ubuntu-pihole systemd[1]: Failed to start FreeRADIUS multi-proto
-- Subject: Unit freeradius.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit freeradius.service has failed.
--
-- The result is RESULT.
Lenke til kommentar

Ok.

Jeg har forsket litt. Det ser ut som det var her konfigureringen av freeradius feilet ved installasjon fra ubuntu sin kilde:
 

ln: failed to create symbolic link '/etc/freeradius/3.0/sites-enabled/default':

 

Jeg kan ikke umiddelbart se grunnen til dette.

Endret av mobile999
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...