Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-12-2011, 09:52 AM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Exclamation Dpkg Error After Upgrading Database

I ran a system upgrade on Wheezy over the weekend and noticed PostgreSQL was due to be updated so I accepted considering it was a minor update / patch and then I noticed I was getting some strange error when I used 'psql' utility after the update:

cmennens@slave:~$ psql -l
Can't exec "dpkg-architecture": No such file or directory at /usr/bin/psql line 103.
Use of uninitialized value $multiarch in scalar chomp at /usr/bin/psql line 104.
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges
Anyone know if there's a fix / patch or something I'm missing here? Beyond the annoying error, there's no impact from what I can see on PostgreSQL. I can still manage my database using the 'psql' utility but I just get this error above in 'red'.
Old 10-12-2011, 09:29 PM   #2
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
When ever I get a dpkg error the first thing I try is, as root;
dpkg --configure -a
dpkg will attempt to install the package again.

If that doesn't work, again as root;
apt-get -f install
no package name or anything that is the entire command.

If that doesn't work some more research on the problem commences.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error Mountain Man 77 Linux - Newbie 8 02-21-2015 11:59 PM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 03:50 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 11:28 AM
dpkg: dpkg - error: PATH is not set basis1980 Linux - Software 1 12-07-2007 05:53 PM
Dpkg database required ashmita04 Debian 3 10-10-2007 09:48 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration