psycopg2 package error while installing odoo12 enterprise version on ubuntu18 - psycopg2

I am trying to install odoo12 enterprise version on ubuntu18.
I have the deb file, and using gdebi to install the package.
But installation fails with the error
dpkg: dependency problems prevent configuration of odoo:
odoo depends on python3-psycopg2; however:
Package python3-psycopg2 is not installed.
I have tried installing psycopg2.8.5, 2.8.3, 2.7.7 and 2.7.3.1 manually using pip3 install. But with all these , I am getting the same error.

Run this cmd:
Step 1
Run update command to update package repositories and get the latest package information.
sudo apt-get update -y
Step 2
Run the install command with -y flag to quickly install the packages and dependencies.
sudo apt-get install -y python3-psycopg2
Execute - sudo apt-get install python3-dev

Related

Error in installing libssl-dev and libssl1.0-dev in Ubuntu

I am trying to install libssl-dev and libssl1.0-dev in Ubuntu 18.04 via the following command:
sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5
I am getting the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libssl1.0-dev' for regex 'libssl1.0'
Note, selecting 'libssl1.0.0' for regex 'libssl1.0'
Note, selecting 'libssl1.0.2' for regex 'libssl1.0'
build-essential is already the newest version (12.4ubuntu1).
libqt5x11extras5 is already the newest version (5.9.5-0ubuntu1).
libqt5x11extras5 set to manually installed.
libgl1-mesa-dev is already the newest version (20.0.8-0ubuntu1~18.04.1).
libgl1-mesa-dev set to manually installed.
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.20).
libssl1.0.0 is already the newest version (1.0.2n-1ubuntu5.10).
openssl is already the newest version (1.1.1-1ubuntu2.1~18.04.20).
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:
libssl-dev : Conflicts: libssl1.0-dev but 1.0.2n-1ubuntu5.10 is to be installed
libssl1.0-dev : Conflicts: libssl-dev but 1.1.1-1ubuntu2.1~18.04.20 is to be installed
E: Unable to correct problems, you have held broken packages.**
How do I solve these errors?
There are three ways to install libssl1.0-dev on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libssl1.0-dev Using apt-get
sudo apt-get update
sudo apt-get -y install libssl1.0-dev
Install libssl1.0-dev Using apt
sudo apt update
sudo apt -y install libssl1.0-dev
Install libssl1.0-dev Using aptitude
sudo aptitude update
sudo aptitude -y install libssl1.0-dev
The following sequence of commands should work to resolve dependencies.
# Fix broken dependencies on your system.
sudo apt-get install -f
# Reconfigure all unpacked packages.
sudo dpkg -–configure -a
# Fix broken dependencies in your system.
sudo apt-get install -f
# Install package on the system.
sudo apt-get install <package_name>

python-rocksdb installation -llz4 missing inside /usr/bin/ld

With the installation of python-rocksdb on ubuntu i had the following issue of missing packages:
Then i run:
apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
allmost all sorted, the only one that i can't find is -llz4. Anyone know what is the pacakge that i need to install?
At the moment whenever i run
pip install python-rocksdb
i always received the error
Sorted!
sudo apt-get install liblz4-dev

How to install specific version of libhwloc5

I'm using Ubuntu 16.04 with an already installed libhwloc5 package of version 1.11.2. I want to install it with version 1.11.5 or above. I've tried to remove it and run
sudo apt-get update
then I run
sudo apt-get install libhwloc5
but it installs the same old version, how can I specify the version of installation?
You could specify the version of your package like this:
sudo apt-get install libhwloc5=<version-number-here>
Example: apt-get install virtualbox=5.0.18-dfsg-2build1

Why react native hangs on 59%?

I am learning react-native.
When I run react-native run-android, I get following error:
Thread(png-cruncher_20) has a null payload
> Building 59% > :app:mergeDebugResources
I found a solution which asks me to run following commands:
sudo apt-get install lib32z1
sudo apt-get install zlib1g:i386
sudo apt-get update
sudo apt-get install lib32z1 lib32stdc++6
But running these commands says I have unmet or uninstalled dependencies. I tried to install them too, then they say same thing for different dependencies and it goes on and never stop. Thus, I cannot install any of the above packages.
Can't I install all these dependencies at once ? Or is there any other solution ?

mysql-server:Depends: mysql-server-5.5 but it is not going to be installed

I am using ubuntu 14.04 on VirtualBox. I try install mysql-server using command
sudo apt-get install mysql-server, i always got error like below:
Some packages could be installed .This may mean that you have
request 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 packages have unmet dependencies:
mysqsl-server : Depends: mysql-server-5.5 but it is not going to be installed
E:Unable to correct problems, you have held broken packages.
and then i try use some command like below :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get purge mysql-server*
sudo apt-get install mysql-server
but it still error. Please help me!
Have you tried using
sudo apt-get install -f
This can repair broken packages or purge the installation.
If mysql-server is not installed with -f , you can try to install with normal way
sudo apt-get install mysql-server -y

Resources