The install-xrandr-kernel is VERY crude and has no error checking. Stop the application manager and rerun the script. The errors mean that you can't user apt-get because Applicatin manager has locked /var/lib/dpkg/lock to prevent multiple instances of apt installing stuff. I will create a better script when I have the time for it.