QuoteSo I closed the terminal and opened it again and put in what it told me and then I got this message:
By closing the terminal, you left the process dangling, so blocking debconf.
You should have completed the install in the same terminal.
Try again (after a reboot) and see if that removed the lock
If not then try:
sudo fuser -vik /var/cache/debconf/config.dat
Will display the process and ask if you want to terminate it.
sudo dpkg-reconfigure libdvd-pkg