This bug is still unfixed in Hardy (8.04):
[EMAIL PROTECTED]:~$aptitude install yum
[...]
[EMAIL PROTECTED]:~$ yum
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, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
If you cannot solve this problem yourself, please send this
message to <[EMAIL PROTECTED]>.
but ATM I tested on Intrepid Ibex Alpha 5, and it seems to be ok... have
a look:
[EMAIL PROTECTED]:~$ sudo aptitude install yum
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
libbeecrypt6{a} librpm4.4{a} python-celementtree{a} python-elementtree{a}
python-pyme{a} python-rpm{a} python-sqlite{a} python-sqlitecachec{a}
python-urlgrabber{a} rpm{a} yum
0 packages upgraded, 11 newly installed, 0 to remove and 372 not upgraded.
Need to get 2919kB of archives. After unpacking 11.9MB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://archive.ubuntu.com intrepid/main libbeecrypt6 4.1.2-7 [103kB]
Get:2 http://archive.ubuntu.com intrepid/main librpm4.4 4.4.2.3-1ubuntu1 [977kB]
Get:3 http://archive.ubuntu.com intrepid/universe python-elementtree 1.2.6-12
[27.4kB]
Get:4 http://archive.ubuntu.com intrepid/universe python-celementtree 1.0.5-10
[21.9kB]
Get:5 http://archive.ubuntu.com intrepid/universe python-pyme 0.8.0-2 [225kB]
Get:6 http://archive.ubuntu.com intrepid/universe python-sqlite 1.0.1-7 [35.4kB]
Get:7 http://archive.ubuntu.com intrepid/main python-urlgrabber 3.1.0-4 [56.6kB]
Get:8 http://archive.ubuntu.com intrepid/main rpm 4.4.2.3-1ubuntu1 [638kB]
Get:9 http://archive.ubuntu.com intrepid/main python-rpm 4.4.2.3-1ubuntu1
[429kB]
Get:10 http://archive.ubuntu.com intrepid/universe python-sqlitecachec 1.1.2-1
[37.9kB]
Get:11 http://archive.ubuntu.com intrepid/universe yum 3.2.12-1.2 [367kB]
Fetched 2919kB in 1s (2486kB/s)
Selecting previously deselected package libbeecrypt6.
(Reading database ... 101177 files and directories currently installed.)
Unpacking libbeecrypt6 (from .../libbeecrypt6_4.1.2-7_i386.deb) ...
Selecting previously deselected package librpm4.4.
Unpacking librpm4.4 (from .../librpm4.4_4.4.2.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package python-elementtree.
Unpacking python-elementtree (from .../python-elementtree_1.2.6-12_all.deb) ...
Selecting previously deselected package python-celementtree.
Unpacking python-celementtree (from .../python-celementtree_1.0.5-10_i386.deb)
...
Selecting previously deselected package python-pyme.
Unpacking python-pyme (from .../python-pyme_0.8.0-2_i386.deb) ...
Selecting previously deselected package python-sqlite.
Unpacking python-sqlite (from .../python-sqlite_1.0.1-7_i386.deb) ...
Selecting previously deselected package python-urlgrabber.
Unpacking python-urlgrabber (from .../python-urlgrabber_3.1.0-4_all.deb) ...
Selecting previously deselected package rpm.
Unpacking rpm (from .../rpm_4.4.2.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package python-rpm.
Unpacking python-rpm (from .../python-rpm_4.4.2.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package python-sqlitecachec.
Unpacking python-sqlitecachec (from .../python-sqlitecachec_1.1.2-1_i386.deb)
...
Selecting previously deselected package yum.
Unpacking yum (from .../yum_3.2.12-1.2_all.deb) ...
Processing triggers for man-db ...
Setting up libbeecrypt6 (4.1.2-7) ...
Setting up librpm4.4 (4.4.2.3-1ubuntu1) ...
Setting up python-elementtree (1.2.6-12) ...
Setting up python-celementtree (1.0.5-10) ...
Setting up python-pyme (0.8.0-2) ...
Setting up python-sqlite (1.0.1-7) ...
Setting up python-urlgrabber (3.1.0-4) ...
Setting up rpm (4.4.2.3-1ubuntu1) ...
Setting up python-rpm (4.4.2.3-1ubuntu1) ...
Setting up python-sqlitecachec (1.1.2-1) ...
Setting up yum (3.2.12-1.2) ...
* Starting yum-updatesd yum-updatesd [ OK ]
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
[EMAIL PROTECTED]:~$ 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 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 91, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 180, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/var/lib/python-support/python2.5/yum/__init__.py", line 170, in
_getConfig
self._conf = config.readMainConfig(startupconf)
File "/var/lib/python-support/python2.5/yum/config.py", line 726, in
readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot,
startupconf.distroverpkg)
File "/var/lib/python-support/python2.5/yum/config.py", line 793, in
_getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
[EMAIL PROTECTED]:~$ sudo yum
You need to give some command
Usage: yum [options] COMMAND
List of Commands:
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
localinstall Install a local RPM
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account
Options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-q, --quiet quiet operation
-v, --verbose verbose operation
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin]
disable plugins by name
--skip-broken skip packages with depsolving problems
[EMAIL PROTECTED]:~$ sudo yum update
Setting up Update Process
No Packages marked
[EMAIL PROTECTED]:~$
Hecnce I assume this bug could be fixed for Intrepid...
--
Unable to run Yum in Edgy
https://bugs.launchpad.net/bugs/71773
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs