Problem installing software in 8.04

Asked by robkil

I have attempted to add a couple of programs using the "Add/Install" method. However after I have selected a program and then selected "Apply Changes" the screen just becomes inactive and hangs. There is no indication of any activity and no obvious way to kill off whatever is happening in the background. Both times I have resorted to a reboot after waiting for 15 minutes or so to see whether the install would complete. Am I missing something in my setup? My internet connection is working perfectly OK.

Robert

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Markus Thielmann
Solved:
Last query:
Last reply:
Revision history for this message
Markus Thielmann (thielmann) said :
#1

Thanks for your question.

Please open a terminal (Applications->Accessories->Terminal), copy and paste the following commands:

1) sudo apt-get update [press ENTER]
2) sudo apt-get upgrade [press ENTER]

Please copy and paste any error messages you might get to this question. The commands will ask for your user password. Please notice, that you won't get any visual feedback while typing the password.

Revision history for this message
robkil (robert-robkil) said :
#2

When I typed in the first command I get the message
"Unable to resolve host Darius"

This is the root of the problem I think. My router connection has a host name Darius which I did not create myself. I bought the laptop with Ubuntu already installed, and I think it was probably installed over a network with a host and domain that I no longer have access to. What is the best way to proceed?

Regards
Robert

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

I added a FAQ about this https://answers.launchpad.net/ubuntu/+faq/93

hope this helps

Revision history for this message
robkil (robert-robkil) said :
#4

Hi,

I have tried following the advice in faq 93, without success.

I do have 2 lines in my /etc/hosts file as per the example. However, I did follow the instructions editing the line starting "kernel" and adding "rw init=bin/bash". I did boot up to a root shell, then went to edit the hosts file. I was not sure what I was supposed to be doing editing this file, but tried deleting the entry starting with the IP address "127.0.1.1". However after making the change and trying to save it, I received the message that this is a read-only file, so the changes could not be saved. So, I am back to square 1.

I guess the permissions need changing on the hosts file, but am not clear what I should be doing with the 2 lines in this file starting with the IP addresses.

Thanks

Revision history for this message
Best Markus Thielmann (thielmann) said :
#5

1) Restart Ubuntu
2) Select the line with your normal kernel plus "recovery" in it
3) when on terminal, run nano /etc/hosts
4) add your hostname at the end of line starting with 127.0.0.1 [...]
5) Should look similar to: 127.0.0.1 localhost localhost.localdomain yourhostnamewedontknow
6) Save
7) Restart
8) Should work now

Revision history for this message
robkil (robert-robkil) said :
#6

Thanks Markus Thielmann, that solved my question.