LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get stuck after bad package (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-stuck-after-bad-package-390551/)

ApellA 12-08-2005 10:47 AM

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)
:newbie:

jakev383 12-08-2005 11:20 AM

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)
:newbie:

Try 'apt-get clean' and the 'apt-get update'

JimBass 12-08-2005 11:22 AM

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

ApellA 12-08-2005 12:38 PM

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.


m_yates 12-08-2005 03:41 PM

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.


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