0
Not a bug

Hi. Trying to install this onto CentOS 5 i386 produces a "BAD, key ID 53029759" for python-CentOS 5 python-psutil-0.6.1-1.i386.rpm failure

micoots 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 11

Hi. I just tried installing Ajenti 1.0.3 and the "python-psutil" module reports:


error: rpmts_HdrFromFdno: Header V4 RSA/SHA1 signature: BAD, key ID 53029759
Problem opening package python-psutil-0.6.1-1.i386.rpm


Manually downloading the python-psutil RPM from ajenti yum repo and performing a manual install:


error: /var/cache/yum/ajenti/packages/python-psutil-0.6.1-1.i386.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 53029759
error: /var/cache/yum/ajenti/packages/python-psutil-0.6.1-1.i386.rpm cannot be installed

I don't know of a way to install an RPM. My guess is if the package was correctly signed, it would install and we could test Ajenti.


Any help?

I have just resigned all the packages and regenerated the repo files. Please run `yum clean all; yum install ajenti`

What can I say, I don't think I've ever received such a quick response :)


Unfortunately still no go, performed a yum clean all then install and still got:


error: rpmts_HdrFromFdno: Header V4 RSA/SHA1 signature: BAD, key ID 53029759
Problem opening package python-psutil-0.6.1-1.i386.rpm

Downloaded the file only and tried manual:

# rpm -ivh /var/cache/yum/ajenti/packages/python-psutil-0.6.1-1.i386.rpm
error: /var/cache/yum/ajenti/packages/python-psutil-0.6.1-1.i386.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 53029759
error: /var/cache/yum/ajenti/packages/python-psutil-0.6.1-1.i386.rpm cannot be installed


I also tried looking for a way to install via RPM ignoring a bad key, can't find a way to do that.


Your assistance is appreciated. Thanks.

Better (as it asked to install the key this time) but still no go:


================================================================================================================================================
 Package  Arch  Version  Repository  Size
================================================================================================================================================
Installing:
 ajenti  noarch  1.0.3-1  ajenti  1.1 M
Installing for dependencies:
 python-beaker  noarch  1.5.4-1.el5  epel5-centos5-i386  86 k
 python-catcher  noarch  0.1.2-1  ajenti  12 k
 python-crypto  i386  2.0.1-5.el5  epel5-centos5-i386  188 k
 python-daemon  noarch  1.5.2-3.el5  epel5-centos5-i386  29 k
 python-exconsole  noarch  0.1.2-1  ajenti  7.3 k
 python-gevent  i386  0.13.6-1  ajenti  316 k
 python-gevent-socketio  noarch  0.3.5_rc2-1  ajenti  44 k
 python-gevent-websocket  noarch  0.3.6-1  ajenti  23 k
 python-greenlet  i386  0.4.0-1  ajenti  33 k
 python-imaging  i386  1.1.5-7.el5  centos5-i386  406 k
 python-lockfile  noarch  0.8-3.el5  epel5-centos5-i386  18 k
 python-lxml  i386  2.0.11-1.el5  epel5-centos5-i386  1.7 M
 python-mako  noarch  0.3.4-1.el5  epel5-centos5-i386  219 k
 python-markupsafe  i386  0.9.2-3.el5  epel5-centos5-i386  23 k
 python-passlib  noarch  1.5.3-1.el6  ajenti  289 k
 python-paste  noarch  1.7.4-1.el5  epel5-centos5-i386  937 k
 python-psutil  i386  0.6.1-1  ajenti  123 k
 python-requests  noarch  1.1.0-1  ajenti  785 k
 reconfigure  noarch  0.1.24-1  ajenti  96 k
 tix  i386  1:8.4.0-11.fc6  centos5-i386  329 k
 tkinter  i386  2.4.3-56.el5  centos5-i386  280 k

Transaction Summary
================================================================================================================================================
Install  22 Package(s)
Upgrade  0 Package(s)

Total download size: 7.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/22): python-exconsole-0.1.2-1.noarch.rpm  | 7.3 kB  00:00
(2/22): python-catcher-0.1.2-1.noarch.rpm  |  12 kB  00:00
(3/22): python-lockfile-0.8-3.el5.noarch.rpm  |  18 kB  00:00
(4/22): python-gevent-websocket-0.3.6-1.noarch.rpm  |  23 kB  00:00
(5/22): python-markupsafe-0.9.2-3.el5.i386.rpm  |  23 kB  00:00
(6/22): python-daemon-1.5.2-3.el5.noarch.rpm  |  29 kB  00:00
(7/22): python-greenlet-0.4.0-1.i386.rpm  |  33 kB  00:00
(8/22): python-gevent-socketio-0.3.5_rc2-1.noarch.rpm  |  44 kB  00:00
(9/22): python-beaker-1.5.4-1.el5.noarch.rpm  |  86 kB  00:00
(10/22): reconfigure-0.1.24-1.noarch.rpm  |  96 kB  00:00
(11/22): python-psutil-0.6.1-1.i386.rpm  | 123 kB  00:00
(12/22): python-crypto-2.0.1-5.el5.i386.rpm  | 188 kB  00:00
(13/22): python-mako-0.3.4-1.el5.noarch.rpm  | 219 kB  00:00
(14/22): tkinter-2.4.3-56.el5.i386.rpm  | 280 kB  00:00
(15/22): python-passlib-1.5.3-1.el6.noarch.rpm  | 289 kB  00:00
(16/22): python-gevent-0.13.6-1.i386.rpm  | 316 kB  00:00
(17/22): tix-8.4.0-11.fc6.i386.rpm  | 329 kB  00:00
(18/22): python-imaging-1.1.5-7.el5.i386.rpm  | 406 kB  00:00
(19/22): python-requests-1.1.0-1.noarch.rpm  | 785 kB  00:01
(20/22): python-paste-1.7.4-1.el5.noarch.rpm  | 937 kB  00:00
(21/22): ajenti-1.0.3-1.noarch.rpm  | 1.1 MB  00:02
(22/22): python-lxml-2.0.11-1.el5.i386.rpm  | 1.7 MB  00:00
------------------------------------------------------------------------------------------------------------------------------------------------
Total  482 kB/s | 7.0 MB  00:14
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 signature: NOKEY, key ID 53029759
ajenti/gpgkey  | 1.7 kB  00:00
Importing GPG key 0x53029759 "Ajenti Packagers <e@ajenti.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-ajenti-packagers
Is this ok [y/N]: y
error: rpmts_HdrFromFdno: Header V3 RSA/SHA1 signature: BAD, key ID 53029759


Problem opening package python-psutil-0.6.1-1.i386.rpm



Checking gpgkeys installed and it's definately there:

gpg-pubkey-53029759-4df50e96 --> gpg(Ajenti Packagers <e@ajenti.org>)

Please continue, would love to try this software out.

-3

It turns out that yum from CentOS 5 cannot check 2048 bit key signatures. As you understand, I can't change repo keys just because of CentOS 5 (unsupported anyway). So please use --nogpgcheck with yum to ignore the signature for now.

Yeah I understand, unfortunately even with --nogpgcheck yum bombs out when attempted:


Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
rpmlib(FileDigests) is needed by python-passlib-1.5.3-1.el6.noarch
rpmlib(PayloadIsXz) is needed by python-passlib-1.5.3-1.el6.noarch
Complete!
(1, [u'Please report this error in http://bugs.centos.org/yum5bug'])


Why don't you support CentOS 5 by the way? CentOS 5 is still has vendor support, both RH and CentOS, for some time (from Wikipedia):

CentOS Release Full Updates Maintenance Updates
3 2006-07-20 2010-10-31
4 2009-03-31 2012-02-29
5 Q1 2014 2017-03-31
6 Q2 2017 2020-11-30
and from our end there's plenty more EL5 machines than there are EL6 machines (internally and for clients), so it would make sense to still support CentOS 5 IMHO.


Nevertheless, with --nogpgcheck it just means "we don't care about the sig" which frankly I don't right at this time :) so why can't you make available that package via a direct download link without it being signed?


This is the only way to install this package as it stands now. Thanks.

Because there's no easy way to get Python 2.6 (a very outdated 2.5 is default) and required dependencies on EL5.

This looks like a dependency problem to me, please try pre-installing EL5 passlib:

http://download.logilab.org/RPMs/EL5/x86_64/python26-passlib-1.6.1-logilab.noarch.rpm

Hi Eugeny, Yeah I agree it's a shame older packages still exist in CentOS 5, 2.4.3 is what I see on 5.9:


# rpm -q python
python-2.4.3-56.el5
# cat /etc/redhat-release
CentOS release 5.9 (Final)


It seems python can be updated to 2.5 (python25 Atomic), 2.6 (python26 EPEL), 2.7/3.1 (python27/python31 IUS) using other repo's but must say have never tried such a thing. Would installing python26* packages from EPEL do the trick?


I downloaded and installed python26-passlib, ran yum clean all, then install:


Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
rpmlib(FileDigests) is needed by python-passlib-1.5.3-1.el6.noarch
rpmlib(PayloadIsXz) is needed by python-passlib-1.5.3-1.el6.noarch
Complete!
(1, [u'Please report this error in http://bugs.centos.org/yum5bug'])


# rpm -q python26-passlib
python26-passlib-1.6.1-logilab


Unfortunately seems to be the same problem.


I just installed Ajenti on a CentOS 6 server in about 1.5 minutes fully operational, but as mentioned before there's plenty of CentOS 5 still out there so would be nice to get this running on CentOS 5 if we can.


Am happy to continue to test options :) thanks.

See, that's exactly what I mean - there's no passlib package in existence for EL5. Maybe you could try an alternative way? Install python-pip and run 'python-pip install ajenti'

Installed:


Installing:
 python-pip  noarch  0.8-1.el5  epel5-centos5-i386  218 k
Installing for dependencies:
 python-setuptools  noarch  0.6c5-2.el5  centos5-i386  479 k


then:


# /usr/bin/pip-python install ajenti
Downloading/unpacking ajenti
  Downloading ajenti-1.0.3.tar.gz (1.1Mb): 1.1Mb downloaded
  Running setup.py egg_info for package ajenti
  warning: no previously-included files matching '*~' found under directory 'ajenti'
  warning: no previously-included files matching '*' found under directory 'packaging'
  warning: no previously-included files matching '*.*' found under directory 'packaging'
  warning: no files found matching 'COPYRIGHT'
  warning: no files found matching 'LICENSE'
  no previously-included directories found matching 'ajenti/plugins/elements'
  no previously-included directories found matching 'ajenti/plugins/ltfs'
  no previously-included directories found matching 'ajenti/plugins/vh'
  no previously-included directories found matching 'ajenti/plugins/test'
  no previously-included directories found matching 'ajenti/plugins/test*'
Downloading/unpacking gevent (from ajenti)
  Downloading gevent-0.13.8.tar.gz (300Kb): 300Kb downloaded
  Running setup.py egg_info for package gevent
Downloading/unpacking gevent-socketio (from ajenti)
  Downloading gevent-socketio-0.3.5-rc2.tar.gz
  Running setup.py egg_info for package gevent-socketio

  Installed /root/build/gevent-socketio/versiontools-1.9.1-py2.4.egg
  /usr/lib/python2.4/site-packages/setuptools/dist.py:245: UserWarning: Module versiontools was already imported from /tmp/easy_install-wbWS2d/versiontools-1.9.1/versiontools/__init__.py, but /root/build/gevent-socketio/versiontools-1.9.1-py2.4.egg is being added to sys.path
  working_set.add(dist)
  warning: no previously-included files found matching 'socketio/.ropeproject/*'
  warning: no previously-included files found matching 'socketio/sample_protocol_for_doc.py'
Downloading/unpacking lxml>=2.2.4 (from ajenti)
  Downloading lxml-3.2.3.tar.gz (3.3Mb): 3.3Mb downloaded
  Running setup.py egg_info for package lxml
  /usr/lib/python2.4/distutils/dist.py:236: UserWarning: Unknown distribution option: 'bugtrack_url'
  warnings.warn(msg)
  Building lxml version 3.2.3.
  Building without Cython.
  Using build configuration of libxslt 1.1.17
  Building against libxml2/libxslt in the following directory: /usr/lib
  warning: no previously-included files found matching '*.py'
  warning: no files found matching '*.txt' under directory 'src/lxml/tests'
Downloading/unpacking passlib (from ajenti)
  Downloading passlib-1.6.1.tar.gz (395Kb): 395Kb downloaded
  Running setup.py egg_info for package passlib
  Traceback (most recent call last):
  File "<string>", line 14, in ?
  File "/root/build/passlib/setup.py", line 162
  if is_release else None,
  ^
  SyntaxError: invalid syntax
  Complete output from command python setup.py egg_info:
  Traceback (most recent call last):

  File "<string>", line 14, in ?

  File "/root/build/passlib/setup.py", line 162

  if is_release else None,

  ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /root/.pip/pip.log


I also tried some of the items here: http://pythonhosted.org/passlib/install.html like "easy_install ajenti" which also failed.


so the problem isn't that python-passlib in your repo:


python-passlib.noarch  1.5.3-1.el6  ajenti


is a signature problem, but that passlib doesn't compile for python < 2.5 ?


-1

Right, almost nothing today compiles for python < 2.5. You need to use python26-pip (though I don't know where you can get this exact package).