Installing postgresql on ubuntu [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I get the below error when I'm trying to install Postgres Data Base by running that command on Ubuntu OS sudo apt-get install postgresql-9.4
dpkg: error processing package postgresql-9.4 (--configure):
subprocess installed post-installation script returned error exit
status 2 dpkg: dependency problems prevent configuration of
postgresql-contrib-9.4: postgresql-contrib-9.4 depends on
postgresql-9.4 (= 9.4.11-1.pgdg16.04+1); however: Package
postgresql-9.4 is not configured yet. dpkg: error processing package
postgresql-contrib-9.4 (--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-9.4 postgresql-contrib-9.4 E:
Sub-process /usr/bin/dpkg returned an error code (1)

If you tried several solutions, you probably have some leftovers from that tries.
To start from 'scratch' you have to uninstall everything and cleanup your system before trying anything:
sudo apt-get purge 'postgresql.*'
This will uninstall all packages and remove all config files.
Note: this will also remove all database files from your system.
After that you have to check what repositories you have added to the system.
Check /etc/apt/sources.list file and every other files in /etc/apt/sources.list.d/ directory.
Remove everything related to postgresql and 'pgdg'.
And finally, you can follow official postgresql manual here:
https://wiki.postgresql.org/wiki/Apt

Related

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) linux Mint [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 days ago.
Improve this question
I am trying to install two packages in my linux Mint:
1. sudo apt install linux-tools-common, 2. sudo apt install linux-nvidia-tools-common
because I was following this tutorial:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/tuning-cpu-frequency-to-optimize-energy-consumption_monitoring-and-managing-system-status-and-performance
and for additional clarity my system and packages was upgraded recently and properly and the reason why I am installing those two packages is because when I ran: cpupower idle-info,
the terminal advice me to install three packages, the first one is successfully installed while these two are not. here's the output:
Command 'cpupower' not found, but can be installed with:
sudo apt install linux-intel-iotg-tools-common # version 5.15.0-1023.28, or
sudo apt install linux-nvidia-tools-common # version 5.15.0-1015.15
sudo apt install linux-tools-common # version 5.15.0-60.66
when I try to install those two packages, I get this type of output:
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-tools-common_5.15.0-60.66_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

dependency problems - leaving unconfigured [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
The community reviewed whether to reopen this question 12 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
This is what I get when I tried to install git in Ubuntu 18.04. I may have asked a repeated question but I am not getting any solution.
kcn#kcn-UBUNTU:~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.17.1-1ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/7,732 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package libavahi-glib1:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of geoclue-2.0:
geoclue-2.0 depends on libavahi-glib1 (>= 0.6.16); however:
Package libavahi-glib1:amd64 is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing package geoclue-2.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgeoclue-2-0:amd64:
libgeoclue-2-0:amd64 depends on geoclue-2.0 (= 2.4.7-1ubuntu1); however:
Package geoclue-2.0 is not configured yet.
dpkg: error processing package libgeoclue-2-0:amd64 (--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:
libavahi-glib1:amd64
geoclue-2.0
libgeoclue-2-0:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to do the following:
kcn#kcn-UBUNTU:~$ sudo apt-get install git
[sudo] password for kcn:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
So I typed
kcn#kcn-UBUNTU:~$ sudo dpkg --configure -a
................
................
dpkg: error processing package libavahi-glib1:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Try this out:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt install libavahi-glib1 --reinstall
sudo dpkg --configure -a
Instruct dpkg to "fix" itself
sudo apt-get -f install
This will instruct apt-get to correct dependencies and continue to configure your packages.
sudo apt install libavahi-glib1 --reinstall
reinstall the "probelatic package"
First try reinstalling broken package like prompt says with e.g.
sudo apt-get install --reinstall libavahi-glib1

Ubuntu - Unable to correct problems, you have held broken packages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've searched the solution but so far I did not get the right one I can apply.
Host: Ubuntu 14.04
when I typed the following command,
sudo apt-get install libxtst-dev:i386
I got the following error message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libxtst-dev:i386 : Depends: libxext-dev:i386 but it is not going to be installed
Depends: libxi-dev:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And some other packages the same error.
Please let me know how to resolve these conflicts, theanks.
You can correct the error by requesting apt to install the required packages:
sudo apt-get install libxtst-dev:i386 libxext-dev:i386 libxi-dev:i386
I prefer to use aptitude's curses-based "GUI" to navigate through the dependencies to resolve any issues.

How to remove an incomplete package by using apt-get? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've tried to install android-studio via apt-get in Ubuntu and find that a dependency package with a size of 233 M is required to download from Google. Since I'm in China the network condition is so bad that I cannot download the package completely, and finally I have to give up.
However here comes a problem: now every time I execute apt-get I will get a hint of Incomplete dependency and be asked to download the package above. If I execute sudo apt-get remove android-studio an error will occur:
dpkg: error processing package android-studio (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
An error occurred when processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)
My apt-get was stuck. So how can I remove an incomplete package entirely?
Try running following commands on the terminal:
sudo apt-get autoremove
sudo apt-get --purge remove
sudo dpkg --remove --force-remove-reinstreq tspc
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get -f install
These may clear or fix broken packages and try to install again.
Open synaptic Install synaptic. Then go to status and choose Broken. Then remove completely the broken packages.

Yum command is not working in fedora, when i removed the libacl package? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
During updating fedora, due to error: multilib protected version found, i tried to remove and install libacl package, but when i remove libacl package using rpm --erase --nodeps libacl, yum commands stops working and i am unable to install libacl again , running yum gives this error:-
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libacl.so.1: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov 12 2013, 16:18:42)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Not only yum but when i fire any command in the terminal it gives this error:-
error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory
Due to this I am not able to install any package manually using rpm command, Someone please give me some ideas?
Manually download libacl RPM and do rpm2cpio packagefile.rpm | cpio -div and then manually copy libacl.so.1 to where it should be. Then install the RPM properly. After that, don't use --nodeps again, unless you're sure you know what you're doing! ;)

Resources