LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 11: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, 12:02 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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 12:04 PM.
 
  


Reply


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


All times are GMT -5. The time now is 12:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration