chrisspeck.com

Chris' random ramblings

Archive for September, 2011

Resolving Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)

The quick and easy solution is to kill any/all processes which may have a lock, so…

sudo bash
killall aptitude; killall apt-get
killall dpkg; killall frontend
sudo dpkg --configure -a
posted by specky in IT and have No Comments

Setting up a Brother HL-2140 printer on Ubuntu 11.04 64bit

This took a bit of detective work and piecing of various posts together, but basically:

sudo apt-get install ia32-libs
sudo mkdir /usr/share/cups/model/
mkdir ~/scratch
mkdir ~/scratch/brother
cd ~/scratch/brother
wget http://www.brother.com/pub/bsc/linux/dlf/brhl2140lpr-2.0.2-1.i386.deb
wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2140-2.0.2-1.i386.deb
dpkg -x brhl2140lpr-2.0.2-1.i386.deb common
dpkg --control brhl2140lpr-2.0.2-1.i386.deb
vim DEBIAN/control #(remove the "Dependency: libc ..." line)
cp -a DEBIAN/ common/
dpkg -b common brhl2140lpr-2.0.2-1.i386.deb
sudo dpkg --force-all -i brhl2140lpr-2.0.2-1.i386.deb
rm -rf common/ DEBIAN/
dpkg -x cupswrapperHL2140-2.0.2-1.i386.deb common
dpkg --control cupswrapperHL2140-2.0.2-1.i386.deb
vim DEBIAN/control #(remove the "Dependency: libc ..." line)
cp -a DEBIAN/ common/
dpkg -b common/ cupswrapperHL2140-2.0.2-1.i386.deb
sudo dpkg --force-all -i cupswrapperHL2140-2.0.2-1.i386.deb
posted by specky in IT and have Comment (1)