LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need java help... URGENT (https://www.linuxquestions.org/questions/linux-newbie-8/need-java-help-urgent-806733/)

F33NY 05-09-2010 12:56 AM

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.

sploot 05-09-2010 01:02 AM

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.

F33NY 05-09-2010 01:06 AM

Quote:

Originally Posted by sploot (Post 3961866)
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.

F33NY 05-09-2010 11:20 AM

Can anyone help?

sploot 05-09-2010 11:25 AM

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.

Bratmon 05-09-2010 12:58 PM

To get rid of a corrupt deb file, run
Code:

sudo apt-get clean


All times are GMT -5. The time now is 05:03 AM.