PDA

View Full Version : Apt Get Problem



qa1433
04-29-2003, 04:29 AM
Did an Apt-Get update.
Then apt-get install j2re1.4 to install java.
All was well until my machine stopped responding. I was forced to do an ungraceful shutdown.
Below is the problem. HELP!
~~~~snip~~~~~~~~~~~~snip~~~~~~~~~~~~snip~~~~~~~~~~
qa1433@Juarez:~$ su
Password:
root@Juarez:/home/qa1433# apt-get install j2re1.4
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
root@Juarez:/home/qa1433# apt-get install j2re1.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: The package j2re1.4 needs to be reinstalled, but I can't find an archive for it.
root@Juarez:/home/qa1433# apt-get install synaptic
Reading Package Lists... Done
Building Dependency Tree... Done
E: The package j2re1.4 needs to be reinstalled, but I can't find an archive for it.
root@Juarez:/home/qa1433# apt-get install j2re1.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: The package j2re1.4 needs to be reinstalled, but I can't find an archive for it.
root@Juarez:/home/qa1433# apt-get update
Hit http://ftp.de.debian.org stable/main Sources
Hit http://ftp.de.debian.org stable/main Release
Hit http://ftp.de.debian.org stable/contrib Sources
Hit http://ftp.de.debian.org stable/contrib Release
Hit http://ftp.de.debian.org stable/non-free Sources
Hit http://ftp.de.debian.org stable/non-free Release
Hit http://ftp.de.debian.org stable/non-US/main Sources
Hit http://ftp.de.debian.org stable/non-US/main Release
Hit http://ftp.de.debian.org stable/non-US/contrib Sources
Hit http://ftp.de.debian.org stable/non-US/contrib Release
Hit http://ftp.de.debian.org stable/non-US/non-free Sources
Hit http://ftp.de.debian.org stable/non-US/non-free Release
Hit http://ftp.de.debian.org testing/main Packages
Hit http://ftp.de.debian.org testing/main Release
Hit http://ftp.de.debian.org testing/contrib Packages
Hit http://ftp.de.debian.org testing/contrib Release
Hit http://ftp.de.debian.org testing/non-free Packages
Hit http://ftp.de.debian.org testing/non-free Release
Hit http://ftp.de.debian.org testing/non-US/main Packages
Hit http://ftp.de.debian.org testing/non-US/main Release
Hit http://ftp.de.debian.org testing/non-US/contrib Packages
Hit http://ftp.de.debian.org testing/non-US/contrib Release
Hit http://ftp.de.debian.org testing/non-US/non-free Packages
Hit http://ftp.de.debian.org testing/non-US/non-free Release
Hit http://ftp.de.debian.org testing/main Sources
Hit http://ftp.de.debian.org testing/main Release
Hit http://ftp.de.debian.org testing/contrib Sources
Hit http://ftp.de.debian.org testing/contrib Release
Hit http://ftp.de.debian.org testing/non-free Sources
Hit http://ftp.de.debian.org testing/non-free Release
Hit http://ftp.de.debian.org testing/non-US/main Sources
Hit http://ftp.de.debian.org testing/non-US/main Release
Hit http://ftp.de.debian.org testing/non-US/contrib Sources
Hit http://ftp.de.debian.org testing/non-US/contrib Release
Hit http://ftp.de.debian.org testing/non-US/non-free Sources
Hit http://ftp.de.debian.org testing/non-US/non-free Release
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/main Release
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/contrib Release
Hit http://security.debian.org testing/updates/non-free Packages
Hit http://security.debian.org testing/updates/non-free Release
Hit ftp://ftp.gwdg.de woody/main Packages
Get:1 ftp://ftp.gwdg.de woody/main Release
Ign ftp://ftp.gwdg.de woody/main Release
Hit ftp://ftp.gwdg.de woody/non-free Packages
Get:2 ftp://ftp.gwdg.de woody/non-free Release
Ign ftp://ftp.gwdg.de woody/non-free Release
Hit ftp://ftp.gwdg.de woody/main Sources
Get:3 ftp://ftp.gwdg.de woody/main Release
Ign ftp://ftp.gwdg.de woody/main Release
Hit ftp://ftp.gwdg.de woody/non-free Sources
Get:4 ftp://ftp.gwdg.de woody/non-free Release
Ign ftp://ftp.gwdg.de woody/non-free Release
Reading Package Lists... Done
Building Dependency Tree... Done
root@Juarez:/home/qa1433# apt-get install j2re1.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: The package j2re1.4 needs to be reinstalled, but I can't find an archive for it.
root@Juarez:/home/qa1433#
~~~~snip~~~~~~~~~~~~snip~~~~~~~~~~~~snip~~~~~~~~~
Thanks in advance for your help,
paul 8)

Stephen
04-29-2003, 06:20 AM
You need to add a line to your /etc/apt/sources.list:



[02:17 AM Tue Apr 29: root @ /home/stephen]
># apt-cache policy j2re1.4
j2re1.4:
Installed: (none)
Candidate: 1.4.0.99beta-1
Version Table:
1.4.0.99beta-1 0
500 ftp://ftp.gwdg.de unstable/non-free Packages

qa1433
04-29-2003, 11:58 AM
Thanks Steve!
I tried what you said, but I proceeded into the valley of death.

Man I must have really broke my install. I ended up haveing to re-install.

I hate that :evil:

Oh well, try try again!

Again thnaks for your help!
paul 8)

Stephen
04-29-2003, 05:58 PM
That's not good, anytime in the future before you install any software put the -s option in the line to simulate the install (apt-get -s install < package >) that way you can test what will happen during install and not install if it will cause problems.

You should not have had to re-install you could have just commented out the line in the sources.list and changed the j2re line in the package database to purge then update and upgrade or dist-upgrade with apt to get back where you were.