Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

when doing sudo apt-get install python-scipy on an Ubuntu 12.10 machine, I get this:

Reading package lists... Done

Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-scipy : Depends: python-numpy (>= 1:1.6.1) but it is not going to be installed
                Depends: python-numpy-abi9
                Depends: libgfortran3 (>= 4.6) but it is not going to be installed
                Depends: liblapack3 but it is not going to be installed or
                         liblapack.so.3 or
                         libatlas3-base but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Do you have any idea on how to solve this?

Thanks

share|improve this question

well I got scipy installed so it's definitely possible. ;-)

I think you have some hiccup in your package system - any problems lately such as crashed or aborted installations? alternatively, it's some dependency problem.

anyway, whenever I encounter this, first I try to install the "unmet dependencies" manually, one after the other, so you can try to install python-numpy, then libgfortran3, then liblapack3, and then try again. a sudo apt-get update before all that can't be wrong, either.

share|improve this answer

I have faced this type of problem in Ubuntu 14.04LTS. But I have solved this in an alternative way.

Here's what I did to get things working:

apt-get download libgfortran3
apt-get download liblapack3
apt-get download python-numpy

Then goto your download directory and install:

sudo dpkg --force-depends -i libgfortran3_4.8.1-10ubuntu8_amd64.deb
sudo dpkg -i liblapack3_3.5.0-2ubuntu1_amd64.deb
sudo dpkg -i python-numpy_1:1.8.2-0ubuntu0.1_amd64.deb
share|improve this answer
    
The correct command to use to download a package without installing it is: sudo apt-get install -d package-name – karel Dec 25 '15 at 10:53

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.