|
[Sponsors] |
October 14, 2012, 08:51 |
Openfoam Ubuntu 12.04 Unmet dependencies
|
#1 |
New Member
Didac
Join Date: Oct 2012
Location: Barcelona, Catalunya
Posts: 3
Rep Power: 14 |
Hi everyone,
I'm new to Ubuntu and I tried to install OpenFoam by following the steps on the website but I got this one error after the third step I can't fix about packages having unmet dependencies. I'll just go ahead and copy that part: The following packages have unmet dependencies: openfoam211 : Depends: csh but it is not installable Depends: libopenmpi1.3 but it is not installable Depends: libptscotch-5.1 but it is not installable Depends: libscotch-5.1 but it is not installable Depends: libscotch-dev but it is not installable Depends: libopenmpi-dev but it is not installable Depends: openmpi-bin but it is not installable Recommends: libptscotch-dev but it is not installable E: Unable to correct problems, you have held broken packages. Thanks in advance! |
|
October 14, 2012, 10:12 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Didac and welcome to the forum!
The error message is a bit vague... I'm guessing you manually downloaded the Deb packages? If not, did you run: Code:
sudo apt-get update sudo apt-get install openfoam211 Best regards, Bruno
__________________
|
|
October 14, 2012, 10:57 |
|
#3 |
New Member
Didac
Join Date: Oct 2012
Location: Barcelona, Catalunya
Posts: 3
Rep Power: 14 |
Bruno, sorry for not specifying more,
In order to install OpenFoam I followed the steps on the following website: http://www.openfoam.org/download/ubuntu.php After the first two steps i got the following message on the terminal window: ubuntu@ubuntu:~$ VERS=$(lsb_release -cs) ubuntu@ubuntu:~$ sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list" ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ sudo apt-get update Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ InRelease Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ InRelease Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise InRelease Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ Release.gpg Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ Release.gpg Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ Release Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ Release Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ Packages/DiffIndex Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ Packages/DiffIndex Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ Translation-ca_ES Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ Translation-ca Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/main/binary-i386/ Translation-en Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ Translation-ca_ES Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ Translation-ca Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) dists/precise/restricted/binary-i386/ Translation-en Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main TranslationIndex Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted TranslationIndex Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main Translation-ca_ES Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main Translation-ca Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main Translation-en Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted Translation-ca_ES Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted Translation-ca Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted Translation-en Ign http://www.openfoam.org precise InRelease Ign http://archive.ubuntu.com precise InRelease Ign http://archive.ubuntu.com precise-updates InRelease Ign http://www.openfoam.org precise Release.gpg Ign http://security.ubuntu.com precise-security InRelease Ign http://www.openfoam.org precise Release Hit http://archive.ubuntu.com precise Release.gpg Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B] Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B] Get:3 http://security.ubuntu.com precise-security Release [49,6 kB] Ign http://www.openfoam.org precise/main TranslationIndex Hit http://archive.ubuntu.com precise Release Get:4 http://archive.ubuntu.com precise-updates Release [49,6 kB] Get:5 http://security.ubuntu.com precise-security/main amd64 Packages [177 kB] Hit http://archive.ubuntu.com precise/main amd64 Packages Hit http://archive.ubuntu.com precise/restricted amd64 Packages Hit http://archive.ubuntu.com precise/main i386 Packages Hit http://archive.ubuntu.com precise/restricted i386 Packages Hit http://archive.ubuntu.com precise/main TranslationIndex Hit http://archive.ubuntu.com precise/restricted TranslationIndex Get:6 http://www.openfoam.org precise/main amd64 Packages [1251 B] Get:7 http://www.openfoam.org precise/main i386 Packages [1248 B] Get:8 http://archive.ubuntu.com precise-updates/main amd64 Packages [401 kB] Get:9 http://security.ubuntu.com precise-security/restricted amd64 Packages [3969 B] Get:10 http://security.ubuntu.com precise-security/main i386 Packages [183 kB] Ign http://www.openfoam.org precise/main Translation-ca_ES Ign http://www.openfoam.org precise/main Translation-ca Get:11 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [6755 B] Get:12 http://archive.ubuntu.com precise-updates/main i386 Packages [407 kB] Ign http://www.openfoam.org precise/main Translation-en Get:13 http://archive.ubuntu.com precise-updates/restricted i386 Packages [6732 B] Get:14 http://archive.ubuntu.com precise-updates/main TranslationIndex [3564 B] Get:15 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B] Get:16 http://archive.ubuntu.com precise/main Translation-ca [10,6 kB] Hit http://archive.ubuntu.com precise/main Translation-en Get:17 http://archive.ubuntu.com precise/restricted Translation-ca [1467 B] Hit http://archive.ubuntu.com precise/restricted Translation-en Get:18 http://archive.ubuntu.com precise-updates/main Translation-ca [10,6 kB] Get:19 http://security.ubuntu.com precise-security/restricted i386 Packages [3968 B] Get:20 http://security.ubuntu.com precise-security/main TranslationIndex [73 B] Get:21 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B] Get:22 http://archive.ubuntu.com precise-updates/main Translation-en [199 kB] Get:23 http://security.ubuntu.com precise-security/main Translation-en [86,3 kB] Get:24 http://archive.ubuntu.com precise-updates/restricted Translation-ca [1467 B] Get:25 http://archive.ubuntu.com precise-updates/restricted Translation-en [1484 B] Get:26 http://security.ubuntu.com precise-security/restricted Translation-en [978 B] Fetched 1610 kB in 4s (372 kB/s) Reading package lists... Done W: Duplicate sources.list entry cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.1%20LTS%20%5fPrecise%20Pangolin%5f% 20-%20Release%20amd64%20(20120823.1)_dists_precise_ma in_binary-i386_Packages) W: Duplicate sources.list entry cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.1%20LTS%20%5fPrecise%20Pangolin%5f% 20-%20Release%20amd64%20(20120823.1)_dists_precise_re stricted_binary-i386_Packages) W: You may want to run apt-get update to correct these problems ubuntu@ubuntu:~$ I think I fixed the problem by going to software up to date, settings, other software and unchecking CDrom with Ubuntu 12.04 'Precise Pangolin' Then I went ahead with the second step again and it worked fine: ubuntu@ubuntu:~$ sudo apt-get update Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise InRelease Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main TranslationIndex Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted TranslationIndex Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main Translation-ca_ES Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main Translation-ca Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/main Translation-en Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted Translation-ca_ES Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted Translation-ca Ign cdrom://Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1) precise/restricted Translation-en Ign http://www.openfoam.org precise InRelease Ign http://www.openfoam.org precise Release.gpg Ign http://archive.ubuntu.com precise InRelease Ign http://archive.ubuntu.com precise-updates InRelease Hit http://archive.ubuntu.com precise Release.gpg Ign http://www.openfoam.org precise Release Hit http://archive.ubuntu.com precise-updates Release.gpg Ign http://www.openfoam.org precise/main amd64 Packages/DiffIndex Ign http://www.openfoam.org precise/main i386 Packages/DiffIndex Hit http://archive.ubuntu.com precise Release Ign http://www.openfoam.org precise/main TranslationIndex Hit http://archive.ubuntu.com precise-updates Release Ign http://security.ubuntu.com precise-security InRelease Hit http://archive.ubuntu.com precise/main amd64 Packages Hit http://archive.ubuntu.com precise/restricted amd64 Packages Hit http://archive.ubuntu.com precise/main i386 Packages Hit http://archive.ubuntu.com precise/restricted i386 Packages Hit http://archive.ubuntu.com precise/main TranslationIndex Hit http://security.ubuntu.com precise-security Release.gpg Hit http://archive.ubuntu.com precise/restricted TranslationIndex Hit http://archive.ubuntu.com precise-updates/main amd64 Packages Hit http://archive.ubuntu.com precise-updates/restricted amd64 Packages Hit http://archive.ubuntu.com precise-updates/main i386 Packages Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages Hit http://archive.ubuntu.com precise-updates/main TranslationIndex Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex Hit http://security.ubuntu.com precise-security Release Hit http://archive.ubuntu.com precise/main Translation-ca Hit http://archive.ubuntu.com precise/main Translation-en Hit http://archive.ubuntu.com precise/restricted Translation-ca Hit http://archive.ubuntu.com precise/restricted Translation-en Hit http://security.ubuntu.com precise-security/main amd64 Packages Hit http://archive.ubuntu.com precise-updates/main Translation-ca Hit http://archive.ubuntu.com precise-updates/main Translation-en Hit http://security.ubuntu.com precise-security/restricted amd64 Packages Hit http://security.ubuntu.com precise-security/main i386 Packages Hit http://security.ubuntu.com precise-security/restricted i386 Packages Hit http://security.ubuntu.com precise-security/main TranslationIndex Hit http://security.ubuntu.com precise-security/restricted TranslationIndex Hit http://archive.ubuntu.com precise-updates/restricted Translation-ca Hit http://archive.ubuntu.com precise-updates/restricted Translation-en Hit http://security.ubuntu.com precise-security/main Translation-en Hit http://www.openfoam.org precise/main amd64 Packages Hit http://www.openfoam.org precise/main i386 Packages Hit http://security.ubuntu.com precise-security/restricted Translation-en Ign http://www.openfoam.org precise/main Translation-ca_ES Ign http://www.openfoam.org precise/main Translation-ca Ign http://www.openfoam.org precise/main Translation-en Reading package lists... Done Finally i tried with the third step and got the following message: ubuntu@ubuntu:~$ sudo apt-get install openfoam211 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: openfoam211 : Depends: csh but it is not installable Depends: libopenmpi1.3 but it is not installable Depends: libptscotch-5.1 but it is not installable Depends: libscotch-5.1 but it is not installable Depends: libscotch-dev but it is not installable Depends: libopenmpi-dev but it is not installable Depends: openmpi-bin but it is not installable Recommends: libptscotch-dev but it is not installable E: Unable to correct problems, you have held broken packages. ubuntu@ubuntu:~$ Thanks again Bruno. |
|
October 14, 2012, 14:22 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Didac,
Mmm... apparently you disabled the universe repositories, which are needed for scotch and other packages. E.g.: http://packages.ubuntu.com/precise/scotch Quote:
Bruno
__________________
|
||
April 1, 2013, 15:11 |
|
#5 | |
New Member
M.P.
Join Date: Apr 2013
Posts: 5
Rep Power: 13 |
Hello, I am experiencing a similar issue in installing OpenFoam where the following dependencies cannot be installed after a "sudo apt-get install openfoam220" (see below). I see from a number of posts that the universe repositories need to be enabled, which can be done by uncommenting lines in the /etc/apt/sources.list file. Not only is this file blank, but I am unable to modify the file (even if doing a w! in VI). Any ideas?
Thanks, M.P. Quote:
|
||
April 1, 2013, 15:26 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings M.P.,
If the file "/etc/apt/sources.list" is empty, then use the default one: https://help.ubuntu.com/12.04/server...iguration.html Best regards, Bruno
__________________
|
|
April 5, 2013, 15:33 |
|
#7 |
New Member
M.P.
Join Date: Apr 2013
Posts: 5
Rep Power: 13 |
Thank you for the response. I am unable to modify the file...VI returns "E505: "/etc/apt/sources.list" is read-only (add ! to override)" and if I were to force save (i.e., "w!"), VI returns "'/etc/apt/sources.list' E212: Can't open file for writing".
Any ideas? Thanks. |
|
April 6, 2013, 07:23 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi M.P.,
Try one of the following lines: Code:
sudo vi /etc/apt/sources.list sudo nano /etc/apt/sources.list
Best regards, Bruno
__________________
|
|
April 8, 2013, 10:45 |
|
#9 |
New Member
M.P.
Join Date: Apr 2013
Posts: 5
Rep Power: 13 |
Thank you Bruno for the response. I very much appreciate it.
Using the default sources.list file (that you suggested) and then doing a sudo apt-get update results in the following error: W: GPG error: http://extras.ubuntu.com precise InRelease: File /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_InRelease doesn't start with a clearsigned message W: Failed to fetch gzip:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_source _Sources Encountered a section with no Package: header W: Failed to fetch gzip:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages Encountered a section with no Package: header W: Failed to fetch gzip:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Encountered a section with no Package: header W: Failed to fetch http://extras.ubuntu.com/ubuntu/dist...ain/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_i18n_I ndex E: Some index files failed to download. They have been ignored, or old ones used instead. Looking at a number of posts online, the common recommended solution is to remove the source list file and update, but this results in the same error. Another solution suggested by some online posts is to remove the links causing the errors in the source.lists file and then update. Commenting out the following lines from the sources.list file that you recommended: ## deb http://extras.ubuntu.com/ubuntu precise main ## deb-src http://extras.ubuntu.com/ubuntu precise main Obviously, this does not result in an immediate error when updating apt. Then, sudo apt-get install openfoam220 results in the following error: Install these packages without verification [y/N]? y Get:1 http://www.openfoam.org/download/ubuntu/ precise/main openfoam220 amd64 0-1 [96.5 MB] Fetched 1,944 B in 0s (6,269 B/s) Failed to fetch http://www.openfoam.org/download/ubu..._0-1_amd64.deb Size mismatch E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Then, sudo apt-get install openfoam220 --fix-missing results in the following error: Failed to fetch http://www.openfoam.org/download/ubu..._0-1_amd64.deb Size mismatch Unable to correct missing packages. E: Aborting install. Any ideas/advice would be much appreciated! Thanks |
|
April 8, 2013, 11:05 |
|
#10 |
New Member
M.P.
Join Date: Apr 2013
Posts: 5
Rep Power: 13 |
...also, I noticed that the link for the binaries in the error message is for amd64, but I am using an intel64 machine. Maybe there is a mismatch there?
|
|
April 9, 2013, 05:16 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
uname -a As for the other problem, try the following command: Code:
ping ubuntu.com If it tells you that it takes "x.xxx ms" to reach the "ubuntu.com" server, then you have a working network access. If not, then your internet access is not properly configured.
__________________
|
||
Tags |
dependencies, openfoam, ubuntu 12.04, unmet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 1.6.x Installer for Ubuntu | Canesin | OpenFOAM Installation | 142 | March 30, 2015 05:58 |
Openfoam 2.1 installation in ubuntu 12.04 | jsm | OpenFOAM Installation | 11 | May 7, 2012 05:56 |
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox | Stubby | OpenFOAM Installation | 8 | March 5, 2012 16:12 |
OpenFoam 2.1.0 Ubuntu release 19/12/2011 | Ancioi | OpenFOAM Installation | 4 | December 24, 2011 09:40 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |