Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-22-2008, 11:33 AM   #1
LQ Newbie
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
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 ?
File "/usr/share/yum-cli/", line 75, in main
File "/usr/share/yum-cli/", line 170, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "/var/lib/python-support/python2.4/yum/", line 82, in doConfigSetup
self.conf = config.yumconf(configfile=fn, root=root)
File "/var/lib/python-support/python2.4/yum/", line 271, in __init__
self.yumvar['releasever'] = self._getsysver()
File "/var/lib/python-support/python2.4/yum/", line 383, in _getsysver
idx = ts.dbMatch('provides', self.getConfigOption('distroverpkg'))
TypeError: rpmdb open failed
Old 12-22-2008, 12:02 PM   #2
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

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

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..

Last edited by farslayer; 12-22-2008 at 12:04 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 06:48 AM
program like yum for debian true_atlantis Debian 7 12-22-2005 08:08 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 02:08 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 03:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration