+2

New to Linux and Ajenti - Python version mismatch during installation

Bassam Assoum 8 years ago updated by sharaf 5 years ago 5

Hi guys


I am new to Linux so I decided to use Ajenti to come at my help. My purpose is to create a simple, light-weight webserver that I can easily manage through this beautiful Ajenti web admin interfac with Ajenti-V plugin.

I am running a stock CentOS 7 with nothing more than wget package installed and openssh.

I have also set proxy for the environment and yum in /etc/environment and /etc/yum.conf


I updated and upgraded Centos, then

I used the following command to try to install Ajenti

curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel7.sh | sh

But I get the errors at the bottom of the page, related to the python version.

I have searched ways to install python 2.6 but I cannot find any, even though I am not sure that is the fix.






[root@localhost ~]# curl https://raw.githubusercontent.com/ajenti/ajenti/1.x/scripts/install-rhel7.sh | sh

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 432 100 432 0 0 1664 0 --:--:-- --:--:-- --:--:-- 1667
:: Adding EPEL repo
curl: (22) The requested URL returned error: 404 Not Found
:: Adding Ajenti repo
Preparing... ################################# [100%]
package ajenti-repo-1.0-1.noarch is already installed
:: Installing package
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos-mirror.cyberhost.ro
* epel: epel.besthosting.ua
* extras: centos-mirror.cyberhost.ro
* updates: centos-mirror.cyberhost.ro
Resolving Dependencies
--> Running transaction check
---> Package ajenti.noarch 0:1.2.22.13-1 will be installed
--> Processing Dependency: python-psutil >= 0.6.0 for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: reconfigure >= 0.1.46 for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-exconsole >= 0.1.5 for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-daemon for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-gevent-websocket for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-passlib for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-gevent for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-requests for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-ldap for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-lxml for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-gevent-socketio for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-imaging for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-greenlet for package: ajenti-1.2.22.13-1.noarch
--> Processing Dependency: python-catcher for package: ajenti-1.2.22.13-1.noarch
--> Running transaction check
---> Package python-catcher.noarch 0:0.1.7-1 will be installed
--> Processing Dependency: python-mako for package: python-catcher-0.1.7-1.noarch
---> Package python-daemon.noarch 0:1.5.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-daemon-1.5.2-1.el6.noarch
--> Processing Dependency: python-lockfile for package: python-daemon-1.5.2-1.el6.noarch
---> Package python-exconsole.noarch 0:0.1.5-1 will be installed
---> Package python-gevent.x86_64 0:1.0-2.el7 will be installed
--> Processing Dependency: libev.so.4()(64bit) for package: python-gevent-1.0-2.el7.x86_64
--> Processing Dependency: libcares.so.2()(64bit) for package: python-gevent-1.0-2.el7.x86_64
---> Package python-gevent-socketio.x86_64 0:0.3.6-1 will be installed
---> Package python-gevent-websocket.x86_64 0:0.9.3-1 will be installed
---> Package python-greenlet.x86_64 0:0.4.2-3.el7 will be installed
---> Package python-ldap.x86_64 0:2.4.15-2.el7 will be installed
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.1.9)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.1.26)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.1.2)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: python-lxml-3.2.1-4.el7.x86_64
---> Package python-passlib.noarch 0:1.5.3-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-passlib-1.5.3-1.el6.noarch
---> Package python-pillow.x86_64 0:2.0.0-19.gitd1c6db8.el7 will be installed
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
--> Processing Dependency: libwebp.so.4()(64bit) for package: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
--> Processing Dependency: libtiff.so.5()(64bit) for package: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
---> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-psutil-0.6.1-1.el6.x86_64
--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: python-psutil-0.6.1-1.el6.x86_64
---> Package python-requests.noarch 0:2.6.0-1.el7_1 will be installed
--> Processing Dependency: python-urllib3 >= 1.10.2-1 for package: python-requests-2.6.0-1.el7_1.noarch
--> Processing Dependency: python-chardet >= 2.2.1-1 for package: python-requests-2.6.0-1.el7_1.noarch
---> Package reconfigure.noarch 0:0.1.62-1 will be installed
--> Running transaction check
---> Package c-ares.x86_64 0:1.10.0-3.el7 will be installed
---> Package libev.x86_64 0:4.15-6.el7 will be installed
---> Package libjpeg-turbo.x86_64 0:1.2.90-5.el7 will be installed
---> Package libtiff.x86_64 0:4.0.3-14.el7 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-14.el7.x86_64
---> Package libwebp.x86_64 0:0.3.0-3.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
---> Package python-daemon.noarch 0:1.5.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-daemon-1.5.2-1.el6.noarch
---> Package python-lockfile.noarch 1:0.9.1-4.el7.centos will be installed
---> Package python-mako.noarch 0:0.8.1-2.el7 will be installed
--> Processing Dependency: python-markupsafe for package: python-mako-0.8.1-2.el7.noarch
--> Processing Dependency: python-beaker for package: python-mako-0.8.1-2.el7.noarch
---> Package python-passlib.noarch 0:1.5.3-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-passlib-1.5.3-1.el6.noarch
---> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-psutil-0.6.1-1.el6.x86_64
--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: python-psutil-0.6.1-1.el6.x86_64
---> Package python-urllib3.noarch 0:1.10.2-2.el7_1 will be installed
--> Processing Dependency: python-six for package: python-urllib3-1.10.2-2.el7_1.noarch
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-urllib3-1.10.2-2.el7_1.noarch
--> Running transaction check
---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
---> Package python-beaker.noarch 0:1.5.4-10.el7 will be installed
--> Processing Dependency: python-paste for package: python-beaker-1.5.4-10.el7.noarch
---> Package python-daemon.noarch 0:1.5.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-daemon-1.5.2-1.el6.noarch
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
---> Package python-passlib.noarch 0:1.5.3-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-passlib-1.5.3-1.el6.noarch
---> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-psutil-0.6.1-1.el6.x86_64
--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: python-psutil-0.6.1-1.el6.x86_64
---> Package python-six.noarch 0:1.9.0-2.el7 will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-daemon.noarch 0:1.5.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-daemon-1.5.2-1.el6.noarch
---> Package python-passlib.noarch 0:1.5.3-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-passlib-1.5.3-1.el6.noarch
---> Package python-paste.noarch 0:1.7.5.1-9.20111221hg1498.el7 will be installed
--> Processing Dependency: python-tempita for package: python-paste-1.7.5.1-9.20111221hg1498.el7.noarch
--> Processing Dependency: python-setuptools for package: python-paste-1.7.5.1-9.20111221hg1498.el7.noarch
--> Processing Dependency: pyOpenSSL for package: python-paste-1.7.5.1-9.20111221hg1498.el7.noarch
---> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-psutil-0.6.1-1.el6.x86_64
--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: python-psutil-0.6.1-1.el6.x86_64
--> Running transaction check
---> Package pyOpenSSL.x86_64 0:0.13.1-3.el7 will be installed
---> Package python-daemon.noarch 0:1.5.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-daemon-1.5.2-1.el6.noarch
---> Package python-passlib.noarch 0:1.5.3-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-passlib-1.5.3-1.el6.noarch
---> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-psutil-0.6.1-1.el6.x86_64
--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: python-psutil-0.6.1-1.el6.x86_64
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
---> Package python-tempita.noarch 0:0.5.1-6.el7 will be installed
--> Finished Dependency Resolution
Error: Package: python-passlib-1.5.3-1.el6.noarch (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-34.el7.x86_64 (@anaconda)
python(abi) = 2.7
python(abi) = 2.7
Error: Package: python-psutil-0.6.1-1.el6.x86_64 (epel)
Requires: libpython2.6.so.1.0()(64bit)
Error: Package: python-daemon-1.5.2-1.el6.noarch (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-34.el7.x86_64 (@anaconda)
python(abi) = 2.7
python(abi) = 2.7
Error: Package: python-psutil-0.6.1-1.el6.x86_64 (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-34.el7.x86_64 (@anaconda)
python(abi) = 2.7
python(abi) = 2.7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
:: Done! Open https://<address>:8000 in browser


i recommend to you, use debian 8, because there many help for this os and is easier to use.


but you can check it: https://www.centos.org/forums/viewtopic.php?t=5243

install yum priorities plugin and then follow the guide. it will be okay

+1

Install epel using the following command: yum -y install epel-release
Refresh repo by typing the following commad: yum repolist