yum seems to depend on python2.4, but agrees with python2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
yum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: yum
I am trying to write out an Linux training course for system administrators. I am aiming to be distribution neutral. For this matter, I intend to tackle both yum and apt-get. I am running Ubuntu 8.04 desktop and am intending to demonstrate usage of both yum and apt-get. Demonstration units will be running 8.04 server. I will be demonstrating the use of both yum and rpm. However, the yum coming from the apt repositories fails.
===sample command
markd@embalsama:~$ sudo yum install fluxbox
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named cElementTree
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.5.2 (r252:60911, Apr 21 2008, 11:17:30)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
If you cannot solve this problem yourself, please send this
message to <email address hidden>.
===
The package in question is python-
under python2.4.
===verifying existence of cElementTree
markd@embalsama:~$ ls /usr/lib/
/usr/lib/
/usr/lib/
dependency_
===
my celementtree version is also posted below.
What appears to happen is that yum tries to run under python2.5 and then fails to find its dependencies.
What should happen is one of the following:
1) that yum runs under python2.4 and finds it dependencies
2) that celementtree has a python2.5 version (possibly not possible/
Some possible solutions/
1) python alternatives system in debian has to be rethinked/developed to allow individual packages to select versions of python to run. (Does python have native working of this?) (possibly debian python bug)
2) python itself needs to allow individual packages to select versions of python to run. (see above) (possibly python feature request)
3) yum debian package needs to be smart enough to depend on and use the python version it works on.
4) edit #!/usr/bin/python -> #!/usr/
What should not happen is
1) user is told to change global python requirement to python2.5. This is a wrong solution. User may prefer python2.5 for most packages but need python2.4
I need further advise as to how to report this problem as it touches different packages, but yum seems to be the closest logical choice.
=== bug report requirements.
Ubuntu version:
markd@embalsama:~$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
Package versions:
yum:
Installed: 2.4.0-3.1
Candidate: 2.4.0-3.1
Version table:
*** 2.4.0-3.1 0
500 http://
100 /var/lib/
python-
Installed: 1.0.5-9
Candidate: 1.0.5-9
Version table:
*** 1.0.5-9 0
500 http://
100 /var/lib/
python:
Installed: 2.5.2-0ubuntu1
Candidate: 2.5.2-0ubuntu1
Version table:
*** 2.5.2-0ubuntu1 0
500 http://
100 /var/lib/
python2.4:
Installed: 2.4.5-1ubuntu4
Candidate: 2.4.5-1ubuntu4
Version table:
*** 2.4.5-1ubuntu4 0
500 http://
100 /var/lib/
Changed in yum (Ubuntu): | |
status: | New → Confirmed |
I have same trouble... bin/python2. 4 in /usr/bin/yum and yum-arch executables but it doesn't work because launching yum I get this: main(sys. argv[1: ]) yum-cli/ yummain. py", line 75, in main getOptionsConfi g(args) yum-cli/ cli.py" , line 170, in getOptionsConfig doConfigSetup( fn=opts. conffile, root=root) python- support/ python2. 4/yum/_ _init__ .py", line 82, in doConfigSetup yumconf( configfile= fn, root=root) python- support/ python2. 4/yum/config. py", line 271, in __init__ yumvar[ 'releasever' ] = self._getsysver() python- support/ python2. 4/yum/config. py", line 383, in _getsysver 'provides' , self.getConfigO ption(' distroverpkg' ))
I tried editing #!/usr/bin/python -> #!/usr/
~$ yum
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 27, in ?
yummain.
File "/usr/share/
base.
File "/usr/share/
self.
File "/var/lib/
self.conf = config.
File "/var/lib/
self.
File "/var/lib/
idx = ts.dbMatch(
TypeError: rpmdb open failed
what is this now?