Error during upgrade

Asked by Randymanme

Compaq Presario 543OUS series 5000
RAM 256Mb; Clock 1.8 Gb
Hard Drive 30 Gb
16X Max* DVD-ROM; CD-RW
NVIDIA accelerated graphics driver
Ubuntu 8.04; Ff 3.0

Every time I add or install something with Add/remove Applications or Synaptic Package Manager, the process is halted by the following:

Setting up sun-java6-doc (6-14-0ubuntu1.8.04) ...
This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
archives:

jdk-6u10-docs.zip jdk-6u10-docs-ja.zip

(choose the non-update version if this is the first installation).
Please visit

http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied
to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]

This problem is both elucidated and solved in the following:
http://ubuntuforums.org/showthread.php?t=485156&referrerid=874159

Well, all that is too complicated for me; I decided to upgrade to 8.10. In the middle of the upgrade, that same sun-java error popped up again, and now the installation is froze. The installation wizard says that aborting it now may leave the system broken -- do I want to do that? Of, course "no." But what to do now?

If someone can and will direct me on what to do and how to do it, I sure would appreciate it. And, please, correctly assume that I know almost nothing about commands and procedures. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Its basiclly given you the entire thing you need to do. If you read it its not hard at all, it told you wat file is needed, where to get it and where to store it. Thats all it is

You just said

"Downloading a file is too hard for me"

here is the command to do what it says:

cd /tmp; wget ftp://ftp.gwdg.de/pub/FreeBSD/ports/distfiles/RESTRICTED/jdk-6u10-docs.zip

thats it. Simple huh, you can now retry your steps and the file will be found and Synaptic will be happy.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

wget will need sudo too, the command is:

cd /tmp; sudo -i; wget ftp://ftp.gwdg.de/pub/FreeBSD/ports/distfiles/RESTRICTED/jdk-6u10-docs.zip; sudo chown root:root ./jdk-6u10-docs.zip; exit; quit

Revision history for this message
Randymanme (randall43215) said :
#3

freegeek@freekbox:~$ cd /tmp; sudo -i; wget ftp://ftp.gwdg.de/pub/FreeBSD/ports/distfiles/RESTRICTED/jdk-6u10-docs.zip; sudo chown root:root ./jdk-6u10-docs.zip; exit; quit

[sudo] password for freegeek:

root@freekbox:~#

root@freekbox:~# freegeek

-bash: freegeek: command not found

root@freekbox:~# root

The program 'root' is currently not installed. You can install it by typing:

apt-get install root-system-bin

-bash: root: command not found

root@freekbox:~# apt-get install root-system-bin

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@freekbox:~# y

-bash: y: command not found

root@freekbox:~#
 update manager
-bash: update: command not found
root@freekbox:~#

I put in my password for freegeek. Then I didn't (don't) know what "root@freekbox:~# " is asking for, so I put in my user password again. That didn't work, so I tried the word "root;" no luck there either. Following the prompt, I typed in "apt-get install root-system-bin." I still don't know what "root@freekbox:~#" is asking for, so I just typed in "y" for "yes." Finally, I typed in "update manager" in response to "root@freekbox:~#". What to do now?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Where are you getting all those commands from? None of that made any sense. If you have synaptic or other packe managers open then you will not be able to use aptitude or apt-get as synpaptic locks the packages whilst it is open.

The password you type does not appear on the screen so when you are asked for a password, do not just press enter. Technically you did not enter the password. You entered a blank password then tried to run a command that was the same as your password

Are you logged in as root or is this just a root shell?

Revision history for this message
Randymanme (randall43215) said :
#5

Sorry about that, I deleted the passwords before I posted. I'll post an unsensored copy from the terminal: freegeek@freekbox:~$ cd /tmp; sudo -i; wget ftp://ftp.gwdg.de/pub/FreeBSD/ports/distfiles/RESTRICTED/jdk-6u10-docs.zip; sudo chown root:root ./jdk-6u10-docs.zip; exit; quit
[sudo] password for freegeek:
root@freekbox:~#
root@freekbox:~# freegeek
-bash: freegeek: command not found
root@freekbox:~# root
The program 'root' is currently not installed. You can install it by typing:
apt-get install root-system-bin
-bash: root: command not found
root@freekbox:~# apt-get install root-system-bin
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@freekbox:~# y
-bash: y: command not found
root@freekbox:~# update manager
-bash: update: command not found
root@freekbox:~#

I've never closed Update Manager because the installation wizard said that aborting the installation now may leave the system broken. It's still on now. I didn't know that "root@freekbox:~#" is asking for a command.

"Are you logged in as root or is this just a root shell?" I have no idea -- I don't know the difference between the two. Please, correctly assume that I know nothing about commands and procedures. Thanks!

Revision history for this message
Randymanme (randall43215) said :
#6

It was yesterday when I began the upgrade and I haven't turned my computer off. Last night, the terminal wouldn't open; but this morning, it opened. I have both open now.

Revision history for this message
Torsten Franz (torsten.franz) said :
#7

Hi,

I think that you have misunderstand the quote that you have to put in the terminal. Please enter one line after the other line in the terminal. After those three lines and please enter return after each command.

cd /tmp

wget ftp://ftp.gwdg.de/pub/FreeBSD/ports/distfiles/RESTRICTED/jdk-6u10-docs.zip

sudo chown root:root ./jdk-6u10-docs.zip

Bye,
Torsten

Revision history for this message
Randymanme (randall43215) said :
#8

I rebooted this sucker; then the system was broken. I went to freegeek this evening (technically yesterday) and got a live CD for 8.04. It just quite won't work. After going to "Help," I noticed that it said that 384 Mbs of RAM is required to use this live CD -- well, I only have 256. I'm using it now. The CD-rom drive is spinning like mad.

What do I do? is there some way I can download a system off the internet straight to a CD or DVD using this live CD, that only needs 256 of RAM? And if so, precisely how do I do it? I don't have any blank DVDs, but I'm under the impression that a DVD will do CDs also (but not vice versa? I do have a DVD with something on it. Can I use that and record on top of what's on it?

Revision history for this message
Best Sam_ (and-sam) said :
#9

According to your first entry about system specs, I'd say too less space for a big distri.
For future case, please do not run more update apps at a time, e.g. Synaptic and CLI.
When computer runs fine after an update, clean the cache e.g. via Synaptic or CLI.
Please note, that kernel image updates don't remove automatically older kernel images, they can be removed manually by searching for the older images via Synaptic or CLI.
https://help.ubuntu.com/community/SynapticHowto
https://help.ubuntu.com/community/AptGet/Howto
https://help.ubuntu.com/community/UsingTheTerminal

Please note from here system requirements
https://help.ubuntu.com/community/Installation

and in case choose minimal installation
https://help.ubuntu.com/community/Installation#Minimal%20installations

from CD
https://help.ubuntu.com/community/Installation/MinimalCD

Revision history for this message
Randymanme (randall43215) said :
#10

Thanks Sam, that solved my question.