update alternatives problem while installing lapack
I am trying to install lapack in my new system, HP pavilion g6-2313AX 64 bit using ubntu 12.04. I am using synaptic to install lapack.
sudo apt-get install liblapack-dev This is giving the following error : Setting up liblapack-dev (3.3.1-1) ... update-alternatives: error: alternative path /usr/lib/lapack/liblapack.so doesn't exist. dpkg: error processing liblapack-dev (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: liblapack-dev E: Sub-process /usr/bin/dpkg returned an error code (1) Can anyone please tell me why this error is occuring and wat could be the reason.? I am stuck here for 2 days and your help is much appreciated. |
Hi,
that file should be provided by the liblapack-dev package. Please try to reconfigure it using the following command. If it does not work please post the full output of the command inside [code] tags. Code:
sudo dpkg --configure --pending Code:
dpkg -l 'liblapack*' |
Thanks a lot for your reply. This is the output I got for the respective commands you suggested me to use.
Code:
sudo dpkg --configure --pending Code:
[sudo] password for itachi: Code:
dpkg -l 'liblapack*' |
Hi,
something seems to have gotten screwed up, since liblapack-dev should be unpacked, but the error reported is that /usr/lib/lapack/liblapack.so doesn't exist. Did you try deleting something by hand? Anyway an easy fix may be just to remove and reinstall the relevant packages. Eg Code:
sudo apt-get remove --purge liblapack-dev liblapack3gf Eg Code:
sudo apt-get install liblapack-dev liblapack3gf If there are any problems with the above please post the commands that you ran and the full output. Cheers, Evo2. |
Thanks a lot once again. You have been really patient in helping me. Yes, I ran couple of commands and I think I did delete something by hand. I was meddling with it and now am facing few issues. I did some linking and unlinking as well. But the problem is I did not keep track of all the commands. That is wat I mentioned in my first post. I will run the commands and post the output.
|
Everything seems to be connected with ROS-fuerte, so am planning to remove ROS completely and reinstall it. Is it advised? Please check the command below.
Code:
sudo apt-get remove --purge liblapack3gf |
Hi,
AFAIK those ros-fuerte packages are not official Debian packages, so if you need them and don't have explicit access to the corresponding .deb files you should not remove them. As I see it, I still think the easiest way to solve this (since I don't know exactly what was broken) is still to reinstall the liblapack-dev and liblapack3gf packages. But we don't want to remove all the ros-fuerte packages in the process. So, I think you should try to do this but telling dpkg to remove these packages but not those that depend on them. This leaves apt in a somewhat "broken" state since you will briefly have packages installed with missing dependencies - but only very briefly, since immediately after, you reinstall them. Remove: Code:
dpkg --purge --ignore-depends=liblapack-dev,liblapack3gf liblapack-dev liblapack3gf Code:
apt-get --fix-broken install Evo2. |
Thanks for your help. It worked just fine :).
|
All times are GMT -5. The time now is 01:12 AM. |