Problems with repositories

apt-get install zoneminder

error parser xml
solution move file to root/ or update the

then try to apt.get remove zoneminder and then try to install again
problem with perl.pm
the solution was create a user in the DB mysql
– connect to mysql like as root
GRANT ALL PRIVILEGES ON *.* TO ‘zmuser’@’localhost’ IDENTIFIED BY ‘zmpass’;
Type dpkg -P zoneminder and reinstalling zoneminder installed sucessfully.

http://www.zoneminder.com/forums/viewtopic.php?t=8054&postdays=0&postorder=asc&start=15&sid=7c5efc2361d6c43ad2e851a85adc4666

The device doesnt have the correct right to read
solution
chmod 666 /dev/video0
My /dev/video already has its permissions set to 777.

If I chmod 777 /dev/video, however, it brings the cameras on-line and stops all the errors.

http://www.zoneminder.com/forums/viewtopic.php?t=8054&postdays=0&postorder=asc&start=15&sid=7c5efc2361d6c43ad2e851a85adc4666

Obviously, this is a workaround that I can do each time I boot the server, which is not often, but it does seem weird.

cant locate /localhost/zm in the browser
copy all /var/bb to /var/www/zonemider
or make a symbolink link to
ln -s