LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2005, 10:47 AM   #1
ApellA
LQ Newbie
 
Registered: Aug 2005
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
apt-get stuck after bad package


my apt-get is kinda stuck, i can't install any more packages. if i try something, it allways gives this as answer:

error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Bewerking niet toegestaan (1)
error: cannot open Packages database in /var/lib/rpm
E: could not open RPM database

(sorry, not completely shure how to translate the "Bewerking niet toegestaan", will be something like "access denied" in the English versions i guess)

anyone knows how i can make clear to the program that i don't want it to install anymore? (i did a search on my pc, and it is nowhere to be found on it, tought that might help as well)
 
Old 12-08-2005, 11:20 AM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Quote:
Originally Posted by ApellA
my apt-get is kinda stuck, i can't install any more packages. if i try something, it allways gives this as answer:

error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Bewerking niet toegestaan (1)
error: cannot open Packages database in /var/lib/rpm
E: could not open RPM database

(sorry, not completely shure how to translate the "Bewerking niet toegestaan", will be something like "access denied" in the English versions i guess)

anyone knows how i can make clear to the program that i don't want it to install anymore? (i did a search on my pc, and it is nowhere to be found on it, tought that might help as well)
Try 'apt-get clean' and the 'apt-get update'
 
Old 12-08-2005, 11:22 AM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
It has been a while since I used a RPM based distro, but I would get those errors when I tried to use apt-get when yum or up2date were in use. The error you listed looks like one of those programs have a lock on the /var/lib/rpm/Packages directory. Try closing all instances of yum, up2date, or any other package updater that you have in use, then try again.

peace,
JimBass
 
Old 12-08-2005, 12:38 PM   #4
ApellA
LQ Newbie
 
Registered: Aug 2005
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
have done both the things, still sais that it isn't good. Problem is, if i do what is asks me to do, it still doesn't work.
Code:
 You might want to run `apt-get --fix-broken install' to correct these. The following packages have unmet dependencies:
 flex-old#2.5.4a-alt1: 
PreDepends: /usr/sbin/install_info but it is not installable
PreDepends: /usr/sbin/uninstall_info but it is not installable 
E: Unmet dependencies. Try using --fix-broken.

Last edited by ApellA; 12-08-2005 at 12:39 PM.
 
Old 12-08-2005, 03:41 PM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
You could try removing the offending package:
Code:
apt-get remove flex-old#2.5.4a-alt1
then
Code:
apt-get -f install
If that doesn't work, you could force the removal:
Code:
dpkg -r --force-all flex-old#2.5.4a-alt1
Then try to fix the install:
Code:
apt-get -f install
I'm assuming the commands are the same as apt in Debian.
 
  


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
latex2e package unavailable in package manager or apt-get cesine Debian 2 07-11-2006 02:31 PM
Troubles with dpkg and apt-get - bad package TTL_2 Linux - Software 1 08-13-2005 11:49 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
apt-get is stuck on 'scrollkeeper' package jon_k Debian 2 04-03-2005 06:51 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM


All times are GMT -5. The time now is 02:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration