I'm trying to install Django on a machine that is primarily a network administration box; it has nagios and cacti installed on it. I went in today to install Django, and when I followed the following instruction I got weird results:
sudo apt-get install apache2 libapache2-mod-python
Told me it was freeing 77 MB worth of files. I should have taken more notice and stopped, but I assumed if apt-get wanted to do it, that it was probably OK. The next thing I see however is an ncurses based app explaining that we were now removing cacti. I hit ctrl-z, as I don't want to remove cacti. Now my system seems to be in a bit of a weird state (though cacti is still OK). For example:
me@mysystem:~$ sudo dpkg -l|grep -v "ii" Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-===============================-===============================-============================================ rF cacti 0.8.7e-2 Frontend to rrdtool for monitoring systems a rc cacti-spine 0.8.7e-2build1 Multi-Threading poller for cacti rc libgd2-noxpm 2.0.36~rc1~dfsg-3.1ubuntu1 GD Graphics Library version 2 (without XPM s
Also, I'm seeing lots of these errors now (as expected, I suppose):
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?
What's my best next step? I don't want to lose my cacti config for sure. What's the best way to go about cleaning up this system?