amp_portal chown fails

When I run amportal chown this appears

SETTING FILE PERMISSIONS
chmod: cannot operate on dangling symlink /var/lib/asterisk/bin/ampbackup.php' chmod: cannot operate on dangling symlink/var/lib/asterisk/bin/ampbackup.pl’
chmod: cannot operate on dangling symlink /var/lib/asterisk/bin/audio-email.pl' chmod: cannot operate on dangling symlink/var/lib/asterisk/bin/callback’
chmod: cannot operate on dangling symlink /var/lib/asterisk/bin/dumpastdb.php' chmod: cannot operate on dangling symlink/var/lib/asterisk/bin/fax-process.pl’
chmod: cannot operate on dangling symlink `/var/lib/asterisk/bin/restoreastdb.php’
Permissions OK

in my freepbx I can’t install or desinstall any module, they are broken and I think the permissions file is the reason, I search in the web but I not found how to fix the problem