RabbieBurns Posted March 16, 2012 Posted March 16, 2012 root@ubuntu:/home/rex/public_html# apt-get install php5-gd E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. root@ubuntu:/home/rex/public_html# sudo dpkg --configure -a dpkg: parse error, in file '/var/lib/dpkg/updates/0000' near line 0: newline in field name `#!/bin/sh' last reboot f2sk fixed a loadf of file system errors and Im guessing something in the dpkg folder has become corrupt.. Im in the process of migrating everything to a new server but I need to get php5-gd installed and would like to try get apt fixed.. Is it a lost cause?
CyberNerd Posted March 16, 2012 Posted March 16, 2012 this looks promising: Can not run Update Manager; Synaptic broken 1
RabbieBurns Posted March 16, 2012 Author Posted March 16, 2012 why is it that i struggle for a solution all week, and within minutes of posting it on here i find the answer!? root@ubuntu:/home/rex/public_html# cd /var/lib/dpkg/updates/ root@ubuntu:/var/lib/dpkg/updates# rm * root@ubuntu:/var/lib/dpkg/updates# sudo dpkg --configure -a dpkg: parse error, in file '/var/lib/dpkg/available' near line 0: newline in field name `#!/bin/sh' root@ubuntu:/var/lib/dpkg/updates# dpkg --clear-avail root@ubuntu:/var/lib/dpkg/updates# sudo dpkg --configure -a now it works root@ubuntu:/var/lib/dpkg/updates# apt-get install php5-gd Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libt1-5 The following NEW packages will be installed: libt1-5 php5-gd 0 upgraded, 2 newly installed, 0 to remove and 15 not upgraded. Need to get 212kB of archives. After this operation, 598kB of additional disk space will be used. Do you want to continue [Y/n]? Thanks for you suggestion cybernerd but to copy all the files off the CD would probably take me longer than to build a new install ;p
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now