Results 1 to 2 of 2
I'm pretty new to Linux so please excuse me for this probably simple question.
I was installing a bunch of packages on a debian lenny box over an SSH connection ...
- 05-05-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 1
SSH Connection Disconnected While Running Apt-get
I'm pretty new to Linux so please excuse me for this probably simple question.
I was installing a bunch of packages on a debian lenny box over an SSH connection when my connection died. The command I was running was:
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp
I reconnected over ssh and tried running the command again but now I get:
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?
Any ideas? Thanks for the help.
- 05-05-2009 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Check to see if you still have your earlier session running and locking the database
If you find it you can kill it. Either way you will likely have to remove the lock manually...as root remove the file [b]/var/lib/dpkg/lock[/code] and you should be able to restart. Don't forget to run an update firstCode:ps aux |grep apt-get


Reply With Quote
