LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-22-2008, 10:33 AM   #1
sealgair
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 ?
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
 
Old 12-22-2008, 11:02 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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

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


Reply



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 02:34 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
program like yum for debian true_atlantis Debian 7 12-22-2005 07:08 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 01:08 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 PM.

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