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.

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

3 Answers 3

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

share|improve this answer

Try

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

 
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.