How to manually unlock the urpmi

I got this solution from a forum and it worked.
All you need do is to just save this as a script and call it in the bash terminal

#!/bin/bash
echo "";
echo "Only root can unlock the URPMI database.";
echo "Starting with the removal of URPMI locks:";

rm -f "/var/lib/urpmi/.LOCK";
echo " rm -f '/var/lib/urpmi/.LOCK'...";
rm -f "/var/lib/urpmi/.RPMLOCK";
echo " rm -f '/var/lib/urpmi/.RPMLOCK'..."

echo "URPMI DATABASE UNLOCKED!";
echo "Happy installing!"
echo ""


0 comments:

Post a Comment

 
Follow me on Twitter | About me | Terms of Service | Privacy Policy