Skip to content

Instantly share code, notes, and snippets.

@kelw
Created February 11, 2014 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelw/8940961 to your computer and use it in GitHub Desktop.
Save kelw/8940961 to your computer and use it in GitHub Desktop.
postgres-install-problem
$ dpkg --audit
dpkg: error: unable to open lock file /var/lib/dpkg/lock for testing: Permission denied
kelw@kelw-X200:~$ sudo !!
sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
postgresql-client-9.3 front-end programs for PostgreSQL 9.3
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
google-chrome-stable The web browser from Google
libjson0:i386 JSON manipulation library (transitional package)
kelw@kelw-X200:~$ sudo dpkg --remove postgresql-client-9.3
(Reading database ... 195659 files and directories currently installed.)
Removing postgresql-client-9.3 (9.3.2-1ubuntu1) ...
Processing triggers for postgresql-common (153) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_au
en_gb
en_us
en_za
Removing obsolete dictionary files:
/usr/share/postgresql//9.3/tsearch_data/en_au.affix
/usr/share/postgresql//9.3/tsearch_data/en_gb.affix
/usr/share/postgresql//9.3/tsearch_data/en_us.affix
/usr/share/postgresql//9.3/tsearch_data/en_za.affix
/usr/share/postgresql//9.3/tsearch_data/en_au.dict
/usr/share/postgresql//9.3/tsearch_data/en_gb.dict
/usr/share/postgresql//9.3/tsearch_data/en_us.dict
/usr/share/postgresql//9.3/tsearch_data/en_za.dict
kelw@kelw-X200:~$ sudo dpkg --audit
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
google-chrome-stable The web browser from Google
libjson0:i386 JSON manipulation library (transitional package)
kelw@kelw-X200:~$ sudo apt-get install postgresql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postgresql-client-9.3
Suggested packages:
postgresql-9.3 postgresql-doc-9.3
The following NEW packages will be installed:
postgresql-client postgresql-client-9.3
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 5,106 B/767 kB of archives.
After this operation, 3,210 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main postgresql-client all 9.3+153 [5,106 B]
Fetched 5,106 B in 0s (19.4 kB/s)
Selecting previously unselected package postgresql-client-9.3.
(Reading database ... 195459 files and directories currently installed.)
Preparing to unpack .../postgresql-client-9.3_9.3.2-1ubuntu1_i386.deb ...
Unpacking postgresql-client-9.3 (9.3.2-1ubuntu1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../postgresql-client_9.3+153_all.deb ...
Unpacking postgresql-client (9.3+153) ...
Processing triggers for postgresql-common (153) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_au
en_gb
en_us
en_za
Removing obsolete dictionary files:
Setting up postgresql-client-9.3 (9.3.2-1ubuntu1) ...
update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz
dpkg: error processing package postgresql-client-9.3 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of postgresql-client:
postgresql-client depends on postgresql-client-9.3; however:
Package postgresql-client-9.3 is not configured yet.
dpkg: error processing package postgresql-client (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
postgresql-client-9.3
postgresql-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
kelw@kelw-X200:~$ sudo apt-get install postgresql-client > pg_out.txt
^Ckelw@kelw-X200:~$ sudo apt-get install postgresql-client -y > pg_out.txt
update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz
dpkg: error processing package postgresql-client-9.3 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of postgresql-client:
postgresql-client depends on postgresql-client-9.3; however:
Package postgresql-client-9.3 is not configured yet.
dpkg: error processing package postgresql-client (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
postgresql-client-9.3
postgresql-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment