Я попытался установить pam-face-authentication на Ubuntu 16.04 и получил ошибку на этапе настройки

Я попытался установить pam-face-authentication на Ubuntu 16.04 и получил ошибку на этапе настройки
sudo pam-auth-update --package face_authentication 

Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 691, <PROFILE> line 1.  
Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 692, <PROFILE> line 1.  
Use of uninitialized value in numeric comparison (<=>) at /usr/sbin/pam-auth-update line 103, <STDIN> line 3.   
Use of uninitialized value in numeric comparison (<=>) at /usr/sbin/pam-auth-update line 103, <STDIN> line 3.  
Use of uninitialized value in numeric comparison (<=>) at /usr/sbin/pam-auth-update line 103, <STDIN> line 3.  
Use of uninitialized value in numeric comparison (<=>) at /usr/sbin/pam-auth-update line 103, <STDIN> line 3.  
Use of uninitialized value in join or string at /usr/sbin/pam-auth-update line 111, <STDIN> line 4.  
Use of uninitialized value in string eq at /usr/sbin/pam-auth-update line 143.

и вот эти строки в этом файле:

 Line 101-130:

# always sort by priority, so we have consistency and don't have to
# shuffle later
@sorted = sort { $profiles{$b}->{'Priority'} <=> $profiles{$a}->{'Priority'}
             || $b cmp $a }
           keys(%profiles);
# If we're being called for package removal, filter out those options here
@sorted = grep { !$removals{$_} } @sorted;

subst($template, 'profile_names', join(', ',@sorted));
subst($template, 'profiles',
join(', ', map { $profiles{$_}->{'Name'} } @sorted));

my $diff = diff_profiles($confdir,$savedir);

if ($diff) {
 @enabled = grep { !$removals{$_} } @{$diff->{'mods'}};
} else {
 @enabled = split(/, /,get($template));
}

# find out what we've seen, so we can ignore those defaults  

my %seen;
if (-e $savedir . '/seen') {
open(SEEN,$savedir . '/seen');
while (<SEEN>) {
    chomp;
    $seen{$_} = 1;
}
close(SEEN);
}

Line 140-147:
# add any previously-unseen configs
push(@enabled,
 grep { $profiles{$_}->{'Default'} eq 'yes' && !$seen{$_} } @sorted);
@enabled = sort { $profiles{$b}->{'Priority'} <=> $profiles{$a {'Priority'}
              || $b cmp $a }
            @enabled;
my $prev = '';
@enabled = grep { $_ ne $prev && (($prev) = $_) } @enabled;


and line 675-695:
while (<PROFILE>) {
    if (/^(\S+):\s+(.*)$/) {
        $fieldname = $1;
        # compatibility with the first implementation round;
        # "Auth-Final" is now just called "Auth"
        $fieldname =~ s/-Final$//;
        if ($fieldname eq 'Conflicts') {
            foreach my $elem (split(/, /, $2)) {
                $profile{'Conflicts'}->{$elem} = 1;
            }
        } else {
            $profile{$fieldname} = $2;
        }
    } else {
        chomp;
        s/^\s+//;
        $profile{$fieldname} .= "\n$_" if ($_);
        $profile{$fieldname} =~ s/^[\n\s]+//;
    }
}

решение1

Проект PAM-face-authentication мертв уже несколько лет, пытаться его настроить бесполезно, извините.

Связанный контент