LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum on Debian 4 (https://www.linuxquestions.org/questions/linux-newbie-8/yum-on-debian-4-a-692251/)

sealgair 12-22-2008 10:33 AM

Yum on Debian 4
 
I had another admin take my place while I was on vacation for 4 weeks. When I got back apt-get had been removed and it appears he tried to install YUM.

Now Yum doesnt work and I can get apt-get back. HELP! Below is the message I am getting when trying to use yum.

yum update
Warning, could not load sqlite, falling back to pickle
rpmdb: unable to initialize mutex: Function not implemented
rpmdb: /var/lib/rpm/__db.001: unable to initialize environment lock: Function not implemented
error: db4 error(38) from dbenv->open: Function not implemented
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - Function not implemented (38)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 27, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 75, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 170, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "/var/lib/python-support/python2.4/yum/__init__.py", line 82, in doConfigSetup
self.conf = config.yumconf(configfile=fn, root=root)
File "/var/lib/python-support/python2.4/yum/config.py", line 271, in __init__
self.yumvar['releasever'] = self._getsysver()
File "/var/lib/python-support/python2.4/yum/config.py", line 383, in _getsysver
idx = ts.dbMatch('provides', self.getConfigOption('distroverpkg'))
TypeError: rpmdb open failed

farslayer 12-22-2008 11:02 AM

Is this an etch system ? if you are positive it's etch you could try the following.

wget http://http.us.debian.org/debian/pool/main/a/apt/apt_0.6.46.4-0.1_i386.deb
dpkg -i apt_0.6.46.4-0.1_i386.deb


I'm rather surprised they would remove apt and install yum, are you sure he didn't reload the entire server with Centos or something while you were out?

And NEVER EVER allow that guy to touch your systems again. Yikes.



funny thing yum IS in the Debian repositories.. not sure what for..
http://packages.debian.org/etch/yum


All times are GMT -5. The time now is 10:55 PM.