Update Manager hangs on 8.04 says could not resolve 192-168-1-254 which is my server

Asked by dmoney12

I have the same issue that I've seen in a lot of other posts but none of those posted solutions have worked for me. First, my problem:

I have 88 updates and when I go to "install updates" I see the "starting administrative application" but it never prompts me for my password.

What I've tried:

1
sudo-apt get update
sudo-apt get upgrade
sudo apt -get --purge --reinstall install synaptic

(I may not have those right but I copied it from the original posts when I did it)

When I run this in the terminal it looks like nothing is happening. I do not get any error messages

2
going to System>Administration>Software Sources

Again, the "starting administrative application" appears in the task bar, but never opens and I cannot input my password.

3
I've gone to System>Network>Hosts

Then for 127.0.1.1 line item, I input the Host Name that was in the General Tab. I deleted the line item ahead for 127.0.0.1

I have not seen any error messages throughout this process. I'm new to Ubuntu, but very computer (windows) literate and this is killing me. Any suggestions???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tony Mugan
Solved:
Last query:
Last reply:
Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#1

Hi Dmoney12,

To be frank your problem is not clear. Anyway I will take it like this, your synaptic package installer is not working after upgrading your pc from ubuntu 7.10 to 8.04 am i right ?

If that is the case,

If Ubuntu doesn't popup for root password, you might have added user with root privileges in /etc/sudoers. Did you edit this file before ?

From above point 1, why are you trying to reinstall synaptic "sudo apt -get --purge --reinstall install synaptic". I don't think its required.
From point 2, login as root and try accessing administrative application.
From point 3, no need to modify hosts ip-address. As per my knowledge if you are new to Ubuntu never edit any important files which will messup your work.

--Murali

Revision history for this message
dmoney12 (dheusel) said :
#2

Murali,

To re-iterate, the problem is that the update manager will not install updates. My guess is that its because I am not being prompted to enter my admin password as I have in the past

1. I'm trying this based on other post solutions I've read for the same problem
2. How would I login as root?
3. I did this because this was posted as a solution that worked for other users with the same problem. I don't see how changing network settings would affect files saved on my hard drive.

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#3

Hi dmoney,

Just now i observed something fishy in your first post first point.

sudo-apt get update
sudo-apt get upgrade
sudo apt -get --purge --reinstall install synaptic

why are you using sudo-apt ( - is not required here) its wrong!!!!!!!!!

actual syntax is

---------------------------------------------------------------------------------------------
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

Commands:
update - Retrieve new lists of packages = Reload
upgrade - Perform an upgrade = Default Upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8) = Smart Upgrade
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies

---------------------------------------------------------------------------------------------

Try out this and lemme know

$sudo apt-get update
$sudo apt-get upgrade
$sudo apt-get --purge --reinstall install synaptic

better copy and paste above commands in your terminal and check.

-Murali-

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#4

If again if you face problem

final go is to use $sudo apt-get -f install

Revision history for this message
Best Tony Mugan (tmugan) said :
#5

At the start of your /etc/hosts file you should have...

127.0.0.1 localhost
127.0.1.1 yourmachinename

Revision history for this message
Tony Mugan (tmugan) said :
#6

To add to my post above, if you have difficulty editing the /etc/hosts file due to sudo issues, try booting from the liveCD in order to get to the hosts file on disk.

Having a misconfigured hosts file is a known issue that affects the ability to update.

Revision history for this message
Paul Gregory (pegrego) said :
#7

I had the same problem as dmoney12

I added the line to /etc/hosts as Tony Mugan suggested (127.0.1.1 machine name), and the update worked!

It had worked fine until a few days ago - I have no idea how the host file got changed. But it works now.

Thanks.

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

Please read this faq: https://answers.edge.launchpad.net/ubuntu/+faq/93

Hope this helps

Revision history for this message
dmoney12 (dheusel) said :
#9

Thanks Tony Mugan, that solved my question.

Revision history for this message
zulu (zulucraig) said :
#10

i have tried to update my ubuntu 8.04 hardy server from the terminal with the command apt-get update but i get error could not resolve [10.0.0.1:800] vane looked at /etc/resolv.conf, /etc/hosts but stil its stuck at 0 % then failed to fetch packages ,could not resolve 10.0.0.1:800 what should i do.. cn someone pliz HELP ME!!!