Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever i try to install software from software centre, it says package dependencies cannot be resolved. I have tried restarting, sudo apt-get update/upgrade/clean. I am very new to ubuntu, and I need to install java. I also tried restarting my computer. Should i just reinstall ubuntu?

share|improve this question
How did you get into this state? – poolie Feb 20 '12 at 21:20
It sounds to me that you have broken your links to the repositories. Have you checked "Software Sources"? You can use that tool to find servers for Ubuntu repositories (packages). – Odin Feb 20 '12 at 21:25

Try to execute sudo apt-get -f upgrade. With the 'f' option it will try to fix broken dependencies.

share|improve this answer


sudo apt-get update
sudo dpkg --configure -a
sudo apt-get -f install
share|improve this answer

If you've made lots of experimental changes and you don't especially care about keeping the configuration of the machine, it may be easiest to reinstall. You should be able to reinstall keeping your /home directory - but make a backup anyhow.

share|improve this answer

Your Answer


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.