LinuxQuestions.org
Review your favorite Linux distribution.
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 05-09-2010, 12:56 AM   #1
F33NY
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Need java help... URGENT


Alright so I'm guessing my java packages didn't install all the way.

Everytime i apt-get upgrade,

i can't and get told to apt-get -f install and then the java files are the only ones causing trouble.

This is basically what happens on apt-get -f install:
Quote:
:/var/cache/debconf# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
sun-java6-bin sun-java6-jre
Suggested packages:
binfmt-support sun-java6-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core
ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho
ttf-arphic-uming
The following NEW packages will be installed:
sun-java6-bin
The following packages will be upgraded:
sun-java6-jre
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/34.7MB of archives.
After this operation, 99.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ...
dpkg: serious warning: files list file for package `sun-java6-jre' missing, assuming package has no files currently installed.
71811 files and directories currently installed.)
Unpacking sun-java6-bin (from .../sun-java6-bin_6-12-1_i386.deb) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /var/cache/apt/archives/sun-java6-bin_6-12-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Preparing to replace sun-java6-jre 6-12-1 (using .../sun-java6-jre_6-12-1_all.deb) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /var/cache/apt/archives/sun-java6-jre_6-12-1_all.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Processing triggers for menu ...
Errors were encountered while processing:
/var/cache/apt/archives/sun-java6-bin_6-12-1_i386.deb
/var/cache/apt/archives/sun-java6-jre_6-12-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can anyone help? This is driving me crazy. Been on the same problem for more than a day!

Its a Debian 5.0 VPS if that makes a difference.
 
Old 05-09-2010, 01:02 AM   #2
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Quote:
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
...
E: Sub-process /usr/bin/dpkg returned an error code (1)
The first line suggests that there is a lock file; some other aptitude process is running. The second suggests there is a dpkg error; perhaps you got a corrupted download of the .deb file? I would suggest deleting the local copy and ensuring aptitude is not running in any other processes. Re-fetch the file and try again.
 
Old 05-09-2010, 01:06 AM   #3
F33NY
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sploot View Post
The first line suggests that there is a lock file; some other aptitude process is running. The second suggests there is a dpkg error; perhaps you got a corrupted download of the .deb file? I would suggest deleting the local copy and ensuring aptitude is not running in any other processes. Re-fetch the file and try again.

yeah, the .deb file like stopped in the middle of it yesterday and it's been like this ever since.

How would i go about deleting the local copy? the files on the desktop related to them? And aptitude isn't listed on the processes box that's currently running.
 
Old 05-09-2010, 11:20 AM   #4
F33NY
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Can anyone help?
 
Old 05-09-2010, 11:25 AM   #5
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Which distro are you running now? I'll see if I can figure out where the local storage is.

Check the directory:
/var/cache/apt/archives/

See if the .deb is there.

Last edited by sploot; 05-09-2010 at 11:29 AM. Reason: found the storage location for ubuntu
 
Old 05-09-2010, 12:58 PM   #6
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
To get rid of a corrupt deb file, run
Code:
sudo apt-get clean
 
  


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
Java - Encryption Problem - Urgent! MRMadhav Programming 7 05-19-2006 07:32 AM
needed urgent help in networking(java) djadhav Programming 8 10-23-2004 03:16 PM
urgent help need in networking(java) djadhav Linux - Networking 3 10-22-2004 09:17 AM
Hops counter in JAVA(urgent) nedian123 Programming 1 08-01-2004 04:30 PM
Urgent Help With Compiling Java Hewin Programming 4 04-11-2003 11:11 AM

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

All times are GMT -5. The time now is 01:07 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
Open Source Consulting | Domain Registration