Hello There is an error towards the bottom. I previously had an older version which I installed. Now I'm running into this. Thank you! /doug doug@db-dell:/etc$ sudo apt-get install freeradius make Reading package lists... Done Building dependency tree Reading state information... Done make is already the newest version. The following package was automatically installed and is no longer required: libfreeradius2 Use 'apt-get autoremove' to remove it. The following extra packages will be installed: freeradius-common freeradius-config freeradius-utils Suggested packages: freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5 snmp The following NEW packages will be installed: freeradius freeradius-common freeradius-config freeradius-utils 0 upgraded, 4 newly installed, 0 to remove and 114 not upgraded. Need to get 105 kB/2,069 kB of archives. After this operation, 5,233 kB of additional disk space will be used. Do you want to continue? [Y/n] y WARNING: The following packages cannot be authenticated! freeradius-common freeradius-config freeradius freeradius-utils Install these packages without verification? [y/N] y Get:1 http://ppa.launchpad.net/freeradius/stable-3.0/ubuntu/ trusty/main freeradius-utils amd64 3.0.10-ppa2~trusty [105 kB] Fetched 105 kB in 0s (144 kB/s) dpkg: unrecoverable fatal error, aborting: syntax error: unknown user 'freerad' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2)
On Feb 25, 2016, at 5:28 PM, Doug Berman <dougberman@gmail.com> wrote:
There is an error towards the bottom. I previously had an older version which I installed. Now I'm running into this. Thank you!
It's largely a debian packaging problem. What are you trying to do? Install FreeRADIUS as a debian package, or build it from source?
WARNING: The following packages cannot be authenticated!
freeradius-common freeradius-config freeradius freeradius-utils
Install these packages without verification? [y/N] y
You've edited your debian configuration to use a non-standard package location. If you know how to do that... you should be able to fix this issue yourself.
Get:1 http://ppa.launchpad.net/freeradius/stable-3.0/ubuntu/ trusty/main freeradius-utils amd64 3.0.10-ppa2~trusty [105 kB]
Fetched 105 kB in 0s (144 kB/s)
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'freerad' in statoverride file
The packages are broken. Delete them, and install the normal Debian packages. Or, build FreeRADIUS from source. Alan DeKok.
thanks Alan Is there debian configuration I should be using? I'm not certain where I can find that? I'd like to simply use apt-get to install freeradius and followed instructions accordingly. That didn't seem to work though. :-) /doug On Thu, Feb 25, 2016 at 6:04 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Feb 25, 2016, at 5:28 PM, Doug Berman <dougberman@gmail.com> wrote:
There is an error towards the bottom. I previously had an older version which I installed. Now I'm running into this. Thank you!
It's largely a debian packaging problem.
What are you trying to do? Install FreeRADIUS as a debian package, or build it from source?
WARNING: The following packages cannot be authenticated!
freeradius-common freeradius-config freeradius freeradius-utils
Install these packages without verification? [y/N] y
You've edited your debian configuration to use a non-standard package location. If you know how to do that... you should be able to fix this issue yourself.
Get:1 http://ppa.launchpad.net/freeradius/stable-3.0/ubuntu/ trusty/main freeradius-utils amd64 3.0.10-ppa2~trusty [105 kB]
Fetched 105 kB in 0s (144 kB/s)
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'freerad' in statoverride file
The packages are broken.
Delete them, and install the normal Debian packages. Or, build FreeRADIUS from source.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Feb 25, 2016, at 6:18 PM, Doug Berman <dougberman@gmail.com> wrote:
Is there debian configuration I should be using?
1) install debian on a new machine 2) apt-get install free radius If that doesn't work, go back to step (1). It's impossible to remotely debug a broken system. Alan DeKok.
On Thu, Feb 25, 2016 at 05:28:12PM -0500, Doug Berman wrote:
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'freerad' in statoverride file
Purge the packages (if possible), then edit /var/lib/dpkg/statoverride and remove all lines that contain "freerad". Make a backup of the file first if you're not experienced in this. Alternatively you could try "adduser freerad", but you need to make sure the user is created correctly. But it might help you get out of the situation. Then reinstall the packages. This crops up occasionally, but I'm not entirely sure why. I think it might be something like having old packages installed, removing (not purging) them, then installing v3 packages. Not entirely sure though. I usually only hit it when I've been playing around with package development. Somehow the packages get removed having removed the freerad user but not tidied up dpkg-statoverride. But the postinst/prerm files all seem to do it in the right order. You can't go too wrong with editing /var/lib/dpkg/statoverride, but don't blame me if you mess up dpkg/apt... Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
On Thu, Feb 25, 2016 at 05:28:12PM -0500, Doug Berman wrote:
The following package was automatically installed and is no longer required:
libfreeradius2
Use 'apt-get autoremove' to remove it.
Hmm. The above adds to my theory that it's to do with having bits of old packages around. Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
On Fri, Feb 26, 2016 at 9:38 AM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
On Thu, Feb 25, 2016 at 05:28:12PM -0500, Doug Berman wrote:
The following package was automatically installed and is no longer required:
libfreeradius2
Use 'apt-get autoremove' to remove it.
Hmm. The above adds to my theory that it's to do with having bits of old packages around.
@Doug: https://launchpad.net/~freeradius/+archive/ubuntu/stable-3.0 specifically says " ... Freeradius 3.x configuration files are incompatible with 2.x. If you have old 2.x packages installed, remove them first (e.g. BACKUP /etc/freeradius somewhere safe, THEN run "apt-get purge libfreeradius2 freeradius-common; rm -rf /etc/freeradius") ... " Note "purge". That would ensure all config files from previous versions are removed. Your best bet right now would probably be to purge all freeradius-related packages (both v2 and v3), remove /etc/freeradius (just to be safe. You DO have backup of the previous config?), and then reinstall FR-3 packages. Also, how are you using the ppa? If you use "add-apt-repository ppa:freeradius/stable-3.0" and "apt-get update", there should be no "WARNING: The following packages cannot be authenticated" message. -- Fajar
I edited statoverride and removed the freerad entry I ran apt-get purge freeradius as well as apt-get purge libfreeradius2 I removed the directory /etc/freeradius I ran add-apt-repository ppa:freeradius/stable-3.0 I ran apt-get update Now, I'm getting the below error messages. any ideas? many thanks for helping me. Do you want to continue? [Y/n] y Selecting previously unselected package freeradius. (Reading database ... 210437 files and directories currently installed.) Preparing to unpack .../freeradius_3.0.10-ppa2~trusty_amd64.deb ... Unpacking freeradius (3.0.10-ppa2~trusty) ... Processing triggers for ureadahead (0.100.0-16) ... Setting up freeradius (3.0.10-ppa2~trusty) ... 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 ln: failed to create symbolic link ‘/etc/freeradius/sites-enabled/default’: No such file or directory dpkg: error processing package freeradius (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: freeradius E: Sub-process /usr/bin/dpkg returned an error code (1) doug@db-dell:/var/lib/dpkg$ On Thu, Feb 25, 2016 at 9:44 PM, Fajar A. Nugraha <list@fajar.net> wrote:
On Fri, Feb 26, 2016 at 9:38 AM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
On Thu, Feb 25, 2016 at 05:28:12PM -0500, Doug Berman wrote:
The following package was automatically installed and is no longer required:
libfreeradius2
Use 'apt-get autoremove' to remove it.
Hmm. The above adds to my theory that it's to do with having bits of old packages around.
@Doug: https://launchpad.net/~freeradius/+archive/ubuntu/stable-3.0 specifically says
" ... Freeradius 3.x configuration files are incompatible with 2.x. If you have old 2.x packages installed, remove them first (e.g. BACKUP /etc/freeradius somewhere safe, THEN run "apt-get purge libfreeradius2 freeradius-common; rm -rf /etc/freeradius") ... "
Note "purge". That would ensure all config files from previous versions are removed. Your best bet right now would probably be to purge all freeradius-related packages (both v2 and v3), remove /etc/freeradius (just to be safe. You DO have backup of the previous config?), and then reinstall FR-3 packages.
Also, how are you using the ppa? If you use "add-apt-repository ppa:freeradius/stable-3.0" and "apt-get update", there should be no "WARNING: The following packages cannot be authenticated" message.
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Fri, Feb 26, 2016 at 09:38:48AM -0500, Doug Berman wrote:
I edited statoverride and removed the freerad entry
I ran apt-get purge freeradius as well as apt-get purge libfreeradius2
Did you purge all of the freeradius packages? # dpkg --get-selections | grep freerad for each of those # apt-get --purge remove ... then you should be OK. Removing /etc/freeradius shouldn't cause problems like that, and I've done it plenty of times. Otherwise there may be something wrong with the packages you are using; I don't where they're from (I just build packages from the freeradius source). Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Thanks, Matt I removed all instances of freerad in dpkg except for one. freeradius-config. Please can you have a look at the error and advise? Once I get rid of it, I'll build 3.0.11 from source per your advice and will follow the instructions on the wjkie: http://wiki.freeradius.org/building/Build many thanks again. doug@db-dell:~$ dpkg --get-selections | grep freerad *freerad*ius-config purge doug@db-dell:~$ doug@db-dell:~$ doug@db-dell:~$ sudo apt-get --purge remove freeradius-config Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: freeradius-config* 0 upgraded, 0 newly installed, 1 to remove and 115 not upgraded. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 209902 files and directories currently installed.) Removing freeradius-config (3.0.10-ppa2~trusty) ... Purging configuration files for freeradius-config (3.0.10-ppa2~trusty) ... rmdir: failed to remove ‘/etc/freeradius’: No such file or directory dpkg: error processing package freeradius-config (--purge): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: freeradius-config E: Sub-process /usr/bin/dpkg returned an error code (1) doug@db-dell:~$ On Fri, Feb 26, 2016 at 10:08 AM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
On Fri, Feb 26, 2016 at 09:38:48AM -0500, Doug Berman wrote:
I edited statoverride and removed the freerad entry
I ran apt-get purge freeradius as well as apt-get purge libfreeradius2
Did you purge all of the freeradius packages?
# dpkg --get-selections | grep freerad
for each of those
# apt-get --purge remove ...
then you should be OK. Removing /etc/freeradius shouldn't cause problems like that, and I've done it plenty of times. Otherwise there may be something wrong with the packages you are using; I don't where they're from (I just build packages from the freeradius source).
Matthew
-- Matthew Newton, Ph.D. <mcn4@le.ac.uk>
Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Feb 26, 2016, at 10:52 AM, Doug Berman <dougberman@gmail.com> wrote:
Thanks, Matt
I removed all instances of freerad in dpkg except for one. freeradius-config. Please can you have a look at the error and advise?
Just stop trying to fix a broken system. If you're not a Debian package expert, there's no point in trying. It's 2016, and systems are cheap. Toss the existing system, and install a new one from scratch. It's less work and less time than trying to figure out what's wrong with the existing one. Alan DeKok.
Thanks, Alan. This was working on freeradius 2.x. It was even working on freeradius 3.x. I've been mucking with it and somehow it's now broken. I'd rather reinstall ubuntu to resolve, but would rather try and fix if at all possible. On Fri, Feb 26, 2016 at 10:54 AM, Alan DeKok <aland@deployingradius.com> wrote:
On Feb 26, 2016, at 10:52 AM, Doug Berman <dougberman@gmail.com> wrote:
Thanks, Matt
I removed all instances of freerad in dpkg except for one. freeradius-config. Please can you have a look at the error and advise?
Just stop trying to fix a broken system. If you're not a Debian package expert, there's no point in trying.
It's 2016, and systems are cheap. Toss the existing system, and install a new one from scratch. It's less work and less time than trying to figure out what's wrong with the existing one.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Feb 26, 2016, at 10:57 AM, Doug Berman <dougberman@gmail.com> wrote:
Thanks, Alan. This was working on freeradius 2.x. It was even working on freeradius 3.x. I've been mucking with it and somehow it's now broken. I'd rather reinstall ubuntu to resolve, but would rather try and fix if at all possible.
This list isn't really the place to post multiple messages about broken Debian systems. The problems you're seeing aren't related to FreeRADIUS, and can't be fixed by FreeRADIUS. You've tried 3-4 different things, and still aren't clear on what's broken or why. It's time to move on and re-install from scratch. It's less work for you, less work for us, and less noise on the list. Alan DeKok.
On Fri, Feb 26, 2016 at 10:52:25AM -0500, Doug Berman wrote:
I removed all instances of freerad in dpkg except for one. freeradius-config. Please can you have a look at the error and advise?
Purging configuration files for freeradius-config (3.0.10-ppa2~trusty) ...
rmdir: failed to remove ‘/etc/freeradius’: No such file or directory
Well, yeah, because you removed it manually... When the packaging system complains about something like this, your one line of thought has to be "how do I make the packaging system happy". So logically here with this error you would probably "mkdir /etc/freeradius" and then try removing the package again. Fix each error, rinse and repeat. But Alan's probably right. If you're not sure how to fix dpkg when it's got a bit screwed up it's probably time to just whack your autobuilder again and spin up a new VM. Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
On Fri, Feb 26, 2016 at 10:52 PM, Doug Berman <dougberman@gmail.com> wrote:
Thanks, Matt
I removed all instances of freerad in dpkg except for one. freeradius-config. Please can you have a look at the error and advise?
And that is EXACTLY what cause your problems. You did not purge the package, but you removed /etc/freeradius manualy. I don't see how you can get into that state though. running "apt-get purge freeradius-common" should've purged freeradius-config as well. Did you use previously use "apt-get remove" instead of "apt-get purge"? In any case, try Matthew's suggestion first. If THAT doesn't work, then it's probably better to create a new VM and start from scratch, or ask help from someone more knowledgable with debian packaging. -- Fajar
participants (4)
-
Alan DeKok -
Doug Berman -
Fajar A. Nugraha -
Matthew Newton