Ubuntu Tricks

Here is a collection of tricks :) Notice that it’ll grow grow grow!

#1
Problem
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Solution
If apt or synaptic or any other program that uses dpkg is killed or if it’s in an unclean fashion, and whenever you try to run it again it gives you this error, you can simply do:

sudo mv /var/lib/dpkg/lock /var/lib/dpkg/lock.bak
sudo dpkg –configure -a

And that should fix any problems.

#2
Problem
You want to convert RPMs to DEBs.

Solution
sudo apt-get install alien
sudo alien -d -k thepackage.rpm

0 Responses to “Ubuntu Tricks”


  1. No Comments

Leave a Reply