LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-12-2011, 08:52 AM   #1
carlosinfl
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:

Code:
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, 08:29 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,625

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

If that doesn't work, again as root;
Code:
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.
 
  


Reply


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 10:59 PM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
dpkg: dpkg - error: PATH is not set basis1980 Linux - Software 1 12-07-2007 04:53 PM
Dpkg database required ashmita04 Debian 3 10-10-2007 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:52 AM.

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