I just bought new VPS server installed CentOS7 and tried to install Odoo11 on my server.
So I researched some articles and tried following.
// Install requirement packages
[root#odoo ~]# yum update -y
[root#odoo ~]# yum install epel-release -y
[root#odoo ~]# yum install fontconfig libpng libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi wkhtmltopdf yum-utils -y
// Install PostgreSQL
[root#odoo ~]# yum install postgresql-server -y
[root#odoo ~]# postgresql-setup initdb
[root#odoo ~]# systemctl enable postgresql
[root#odoo ~]# systemctl start postgresql
// Install Odoo
[root#odoo ~]# yum-config-manager --add-repo=https://nightly.odoo.com/11.0/nightly/rpm/odoo.repo
[root#odoo ~]# yum install odoo -y
After run last command, I get error.
...
Error: Package: odoo-11.0.post20171110-1.noarch (odoo-nightly)
Requires: python3-psutil Error: Package: odoo-11.0.post20171110-1.noarch (odoo-nightly)
Requires: python3-requests Error: Package: odoo-11.0.post20171110-1.noarch (odoo-nightly)
Requires: python3-greenlet
...
How can I fix this?
This was due to python3 dependency missing problem though I installed python3 successfully on CentOS.
Finally, I restarted server and it solved the problem. I'm not sure exactly why restart was required.
Related
i have read some post; when i use sudo yum install -y gitlab-ce-12.10.14
Error: Package: gitlab-ce-12.10.14-ce.0.el8.x86_64 (gitlab-ce) Requires: /bin/sh
Error: Package: gitlab-ce-12.10.14-ce.0.el8.x86_64 (gitlab-ce)Requires: policycoreutils-python-utils
Error: Package: gitlab-ce-12.10.14-ce.0.el8.x86_64 (gitlab-ce)
when i used sudo apt-get upgrade gitlab-ce=12.10.14-ce.0
E: Version '12.10.14-ce.0' for 'gitlab-ce' was not found
I've tried following the instructions to install mongodb, as per the mongodb.com instructions.
When I run: sudo apt-get install -y mongodb-org, I get the following:
The following packages have unmet dependencies.
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
There's a suggestion to run apt --fix-broken install. So I run it with sudo. I get the following:
The following packages were automatically installed and are no longer required:
libboost-program-options1.65.1 libgoogle-perftools4 libpcrecpp0v5 libtcmalloc-minimal4 libyaml-cpp0.5v5 mongo-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mongodb-database-tools
Which then fails, with this error report:
Unpacking mongodb-database-tools (100.5.0) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-database-tools_100.5.0_amd64.deb (--unpack):
trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-database-tools_100.5.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My reading of this: trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1 suggests to me that there is something in mongo-tools that is stubbornly not letting itself be removed. So I tried running sudo apt autoremove to remove the mongo-tools. Unfortunately I get the following:
The following packages have unmet dependencies.
mongodb-org-tools : Depends: mongodb-database-tools but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
So I try apt --fix-broken install again, as recommended, but without any success. I need to find a way to get rid of that darned mongo-tools - but how? I tried following the "Uninstall MongoDB Community Edition" instructions on those on the same page I linked above.
When I enter sudo apt-get purge mongodb-org*, this forms part of the message:
The following packages were automatically installed and are no longer required:
libboost-program-options1.65.1 libgoogle-perftools4 libpcrecpp0v5 libtcmalloc-minimal4 libyaml-cpp0.5v5 mongo-tools mongodb-mongosh
Use 'sudo apt autoremove' to remove them.
So now I have mongo-tools and this new mongodb-mongosh? I've attempted to install again but I run into the same problems. What's the fix?
1.Stop the mongod process by issuing the following command:-
sudo service mongod stop
2.Remove any MongoDB packages that you had previously installed:-
sudo apt-get purge mongodb-org*
3.Remove MongoDB databases and log files:-
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
4.Then reinstall mangodb 4.4.8
5.Import the public key used by the package management system:-
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
6.The following instruction is for Ubuntu 18.04 (Bionic):-
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
7.Update Apt
sudo apt-get update
8.Install mongodb
sudo apt-get install mongodb-org=4.4.8 mongodb-org-server=4.4.8 mongodb-org-shell=4.4.8 mongodb-org-mongos=4.4.8 mongodb-org-tools=4.4.8
9.Use mongod --version to check its succesfully installed.
10.If u encounter any error while using mongod
sudo mkdir /data
cd /data
sudo mkdir db
sudo pkill -f mongod
11.Then use sudo mongod command to start server.
12.Use mongo to use mongodb shell
Finally got it working: I tried sudo apt-get purge mongo-tools* and sudo apt-get purge mongodb-mongosh*, and this seemed to fix things and permit an install.
For some reason, the uninstall directions in the documentation (command: sudo apt-get purge mongodb-org*) didn't remove mongo-tools. It may have been something I'd installed from another source previously.
I'm trying to install certbot on RHEL server.
Instructions to enable epel-release
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
then
# subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
epel-release-7-11 was installed.
# yum install certbot
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package certbot available.
Error: Nothing to do
I even downloaded rpm manually from
fedora project epel
removed and cleared all cache. But install package is not available.
For future reference, I could install executing the following lines:
sudo yum -y install yum-utils
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
sudo yum install certbot
https://certbot.eff.org/lets-encrypt/centosrhel7-other
It's success for me.
before install certbot, I execute the following lines:
yum remove epel-release
yum clean all
then execute the following lines:
sudo yum -y install yum-utils
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
sudo yum install certbot
For me with same error just using this command simply solved the problem:
yum install epel-release
seems other sugesstions are a little excessive or unrelated.
Go to /etc/yum.repo.d/epel.repo and delete # before the "baseurl" and save it.
after that:
yum install certbot
on this way my problem was solved
In EC2 Amazon Linux do
$ sudo amazon-linux-extras install epel
then do
$ sudo yum install certbot
I try to update PHP 5.5 to up using command:
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Retrieving
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
warning: /var/tmp/rpm-tmp.4xrPQL: Header V3 RSA/SHA256 Signature, key
ID 352c64e5: NOKEY error: Failed dependencies: epel-release = 6 is
needed by (installed) remi-release-6.8-1.el6.remi.noarch epel-release
= 6 is needed by (installed) ius-release-1.0-14.ius.centos6.noarch
How can I fix this?
You should epel for CentOS 6 not 7:
sudo yum install php-common
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum install php70w php70w-opcache
sudo yum install php70w-fpm php70w-opcache
sudo yum install yum-plugin-replace
sudo yum replace php-common --replace-with=php70w-common
sudo yum install php70w-opcache
# remove old php-cli
sudo yum remove php-cli
sudo rm -rf /usr/bin/php
sudo yum -y install php70w-cli
For more informations check this link
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