Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do
- echo "Waiting for lists to finish..."
- sleep 0.5
- done
- while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
- echo "Waiting for dpkg to finish..."
- sleep 0.5
- done
- /usr/bin/apt-get "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement