Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When i run Update manager and try to install something, when it starts, says: "Preparing packages" and nothing occurs.

Any idea?

This situation occurs with any package that I choose.

ubuntu version: 10.04

for example

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-2.6.32-37 linux-headers-2.6.32-37-generic linux-image-2.6.32-37-generic
The following packages will be upgraded:
  libarchive1 linux-generic linux-headers-generic linux-image-generic linux-libc-dev
5 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
521 not fully installed or removed.
Need to get 0B/43.5MB of archives.
After this operation, 185MB of additional disk space will be used.
Do you want to continue [Y/n]? y`

Then It hangs...

Try sudo apt-get install -f

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnb-platform10-java kdebase-runtime-data-common libnb-java2-java libwxgtk2.6-0 libswt-gtk-3.5-jni libknotificationitem1 liblogkit-java
  kde-icons-oxygen libexiv2-5 libkadm5clnt6 liblzma0 libmysqlclient15off libnb-ide11-java kdebase-runtime-bin-kde4 libwxbase2.6-0
  tzdata-java python-wxversion libqt4-phonon khelpcenter4 libqt3-mt python-wxgtk2.6 libswt-gtk-3.5-java stardict-plugin-gucharmap
  libreadline5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
520 not fully installed or removed.
After this operation, 0B of additional disk space will be used.

It hangs :(

share|improve this question
    
This could be a silly question, but are you hitting Enter after you type 'y'? –  Shawn Dec 19 '11 at 15:56
    
What do you mean nothing happens ? It hangs ? Also it appears you have a number of transactions pending. What happens when you urn sudo apt-get install -f –  bodhi.zazen Dec 19 '11 at 16:00
    
of course @Shawn –  Daniel Dec 19 '11 at 16:00
    
@bodhi.zazen yes it hangs. –  Daniel Dec 19 '11 at 16:03
    
It looks moderately broken with insufficient information to know what will fix it. Somewhere in those 500 or so packages, one is broken. Do you recall any previous or error message ? –  bodhi.zazen Dec 19 '11 at 16:36

1 Answer 1

Try this sequence of commands

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.