Add/remove programmes and updates wont work

Asked by Master Moose

Hi all. I am on Hardy 64 bit. A while ago I noticed a new problem. When selecting applications or updates to download - Once I click on "Apply changes" or "Install updates" it goes no further. Add/remove or Update manager (which ever I am using just freezes) It does not go far enough to ask me for my root password.

This is the only thing that stops. i am able to continue to use my computer without problem. .

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Master Moose
Solved:
Last query:
Last reply:
Revision history for this message
Elfy (elfy) said :
#1

Be better to try in terminal and then post the error message, run this and if there is an error post it, if not run second command

sudo apt-get update

sudo apt-get upgrade

Revision history for this message
Elfy (elfy) said :
#2

meant to make that inf request

Revision history for this message
Master Moose (themastermoose) said :
#3

After running update and upgrade system still freezes when using the tools.. any more ideas?

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

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove

Please give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
Master Moose (themastermoose) said :
#5

Grrr nope.. it still is not liking me. Cean all unable to resolve host

sudo: unable to resolve host moose-desktop

Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) said :
#6

It seems your problem is possibly caused by your system's local network setup. Would you please post the contents of /etc/hosts here? Ask if you don't know how.

Revision history for this message
Master Moose (themastermoose) said :
#7

I do not know how.. So your help would be appreciated

Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) said :
#8

Please try the following:
1. open a Terminal from the menu Applications->Accessories->Terminal
2. type: cat /etc/hosts
3. the contents of the file /etc/hosts is displayed. Select it using your mouse.
4. copy it to the clipboard by pressing Ctrl+Shift+c
5. return to this question
6. paste it by pressing Ctrl+v

There are also other ways to get the contents of a file here. If you don't succeed, it would be helpful to know whether you are using gnome (ubuntu) or kde (kubuntu).

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9
Revision history for this message
Master Moose (themastermoose) said :
#10

moose@moose-desktop:~$ cat /etc/hosts
127.0.0.1 moose
127.0.1.1 moose-desktop.woosh

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Revision history for this message
Michael Vogt (mvo) said :
#11

Could you please test if changing the line:

127.0.1.1 moose-desktop.woosh

to

127.0.0.1 moose-desktop.woosh

helps fixing the issue (note the change from 1->0).

Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) said :
#12

I see more people having the same problem. I'd like to help them, so I'm assembling information about this issue. Therefore I'd like to know: did the previous comment solve your problem? Do you still have the problem? Did you solve it in another way? Thanks.

Revision history for this message
Master Moose (themastermoose) said :
#13

Sorry for the delay in coming back.. . Michael, How would I change the127.0.1.1 to 127.0.0.1

N00b here

Revision history for this message
Master Moose (themastermoose) said :
#14

Hi Mouz.. Been away from the computer for a while so still where I left off..

Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) said :
#15

Hi Moose, thanks for coming back. It is no problem if you are away for a while, because I get an email as soon as a message is added here. Also Ubuntu should be easy to use for everyone, so this problem I want to get solved.

I will give you easiest way to edit the /etc/hosts file. Please try it. Don't be surprised if you get an error: in step 2 you might again get something like "sudo: unable to resolve host moose-desktop". See if you can continue anyway. If not: tell me what happened. Best is to copy and paste the message.

There are other ways to do edit /etc/hosts, but those are much more complex, so that is why I want you to try this first:

1) open a terminal window like you did before (Applications->Accessories->Terminal)
2) type: sudo nano /etc/hosts
3) give it your password if it askes for it.

Step 2 is where I expect you to get the message again. Please see if the lines from /etc/hosts appear anyway. If so, try to continue with the next steps. If not, tell me what it says.

3)
Look at the first two lines:
  127.0.0.1 moose
  127.0.1.1 moose-desktop.woosh
In the first line you change 'moose' to 'localhost'. In the second line you change 'moose-desktop.woosh' to 'moose-desktop'.
Check that the lines are now as follows:
  127.0.0.1 localhost
  127.0.1.1 moose-desktop
(This is different from what Michael said. I found that did not work on my system, so I let you change two lines, and in a different way. In my case this works.)
4) type Ctrl+x to exit
5) it will ask you to save: type 'y'
6) it will ask you whether it must overwrite /etc/hosts. Confirm by pressing Enter. Now you have changed /etc/hosts. If you like to, you can see what is in it now by typing 'cat /etc/hosts'.
7) restart your computer (do not skip this step)
8) login and see if you can now do in a terminal window what marcobra said:
  sudo apt-get clean all
  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get dist-upgrade
  sudo apt-get autoremove
If all went well, your computer will download and install a lot of updates. It will take a while. After that see if you can install a new program from 'Add/Remove...'. Take a small program for a quick test, for instance the 'sl' program. If it succeeds, I think your problem is solved. I'd like to hear. Thanks.

Revision history for this message
Master Moose (themastermoose) said :
#16

Thank you.. Add remove was working!

Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) said :
#17

Great news. Thank you for not giving up. Because it now works for you and you reported it, the problem is understood better. Other people having the same thing in future can read this and find their way much faster.

Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) said :
#18

p.s. did you get that sudo message in step 2?

Revision history for this message
Master Moose (themastermoose) said :
#19

Sorry.. Yes I did get that same message again... Once more.. thank you for your assistance