Cannot install pgsql

When I issue the command:

"sudo apt-get install pgsql"

I get

"E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

Then I run:

"sudo dpkg --configure -a"

and I get this error"

"dpkg: parse error, in file '/var/lib/dpkg/updates/0004' near line 0: newline in field name `#padding'"

Status: 
Closed (fixed)

Comments

Hmm, that's an unusual one.

What is the contents of the file "/var/lib/dpkg/updates/0004"?

We might be able to use that to determine what's going on.

I opened with pico and got page after page of this...

padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding padding

Okay, here's what I would do -- I would recommend deleting that file.

Or actually, let's just move it somewhere else... you can do that by running this command:

sudo mv /var/lib/dpkg/updates/0004 /tmp

After that, what happens when you run this:

sudo dpkg --configure -a

No error or output when running

sudo dpkg --configure -a

I tried then

sudp apt-get install pgsql

and I get Package not found

Yes, got it. Thank you, it was php5-pgsql

I appreciate your help, we can close this issue.

Great, I'm glad you got it working!

Automatically closed -- issue fixed for 2 weeks with no activity.