View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002469 | OpenFOAM | Bug | public | 2017-02-21 10:06 | 2017-03-09 17:07 |
Reporter | stefanoborini | Assigned To | chris | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 14.04 |
Summary | 0002469: Unable to retrieve oepnfoam using apt-get. Protocol http not supported or disabled in libcurl | ||||
Description | I am unable to download openfoam using apt. The following error occurs ----------- Ign http://www.openfoam.org trusty InRelease Ign http://www.openfoam.org trusty Release.gpg Ign http://www.openfoam.org trusty Release Err http://www.openfoam.org trusty/main amd64 Packages Err http://www.openfoam.org trusty/main amd64 Packages Err http://www.openfoam.org trusty/main amd64 Packages Err http://www.openfoam.org trusty/main amd64 Packages Err http://www.openfoam.org trusty/main amd64 Packages Protocol http not supported or disabled in libcurl W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/trusty/main/binary-amd64/Packages Protocol http not supported or disabled in libcurl E: Some index files failed to download. They have been ignored, or old ones used instead. -------- This problem has already been reported by someone else here https://www.cfd-online.com/Forums/openfoam-installation/183988-failed-fetch-http-www-openfoam-org.html The file at http://www.openfoam.org/download/ubuntu/dists/trusty/main/binary-amd64/Packages can be correctly downloaded with wget and contains what seems to be appropriate information. | ||||
Steps To Reproduce | add-apt-repository http://www.openfoam.org/download/ubuntu apt-get update -qq | ||||
Tags | No tags attached. | ||||
|
Additional information. It seems (but I am not 100% sure) that the key needs to be added as from docs. I had success a couple of times doing so, but it must be done _after_ the addition with add-apt-repository and before the apt-get update. _however_, this is not always consistent, and I had errors anyway in some occasions. I can instead confirm that by using echo "deb http://dl.openfoam.org/ubuntu trusty main" > /etc/apt/sources.list.d/openfoam.list Instead of add-apt-repository as in the documentation, it seems to work consistently. I would suspect an apt-get problem, but I found this problem only with openfoam, so I suspect something is wrong between the two. |
|
Please can you direct me to the web page that says the installation instructions begin with: add-apt-repository http://www.openfoam.org/download/ubuntu That is no longer correct. It should be (note: "dl.") add-apt-repository http://dl.openfoam.org/download/ubuntu Instructions from recent versions on Ubuntu are here: https://openfoam.org/version/ubuntu/ All versions can be found here: https://openfoam.org/download/archive/ |
|
Yes, I indeed verified I was using an incorrect URL, and the documentation indeed says dl. I focused too much on the error message and got distracted by a no-longer valid comment in my code. I am now using dl. and it works. Thanks and apologies. |
|
Thanks for confirming all is OK. No problem about missing the difference in URLs, it is useful to know that this issue can arise. |
|
I am sorry to have to reopen this, but after the change, we still get a similar problem, although only once in a while E: Failed to fetch http://dl.openfoam.org/ubuntu/dists/trusty/main/binary-amd64/openfoam231_0-1_amd64.deb Protocol http not supported or disabled in libcurl They might be related, maybe? |
|
Specifically, the setup of the apt-get repo is done as follows echo "deb http://dl.openfoam.org/ubuntu trusty main" > /etc/apt/sources.list.d/openfoam.list wget -O - http://dl.openfoam.org/gpg.key | apt-key add - |
|
I suspect part of the problem is related to the change SF.net has done to have HTTPS the standard connection for all connections, including the mirrors: https://sourceforge.net/blog/small-but-significant-changes-to-project-pages/ I was testing that old way of sending the path to the "openfoam.list" on a VM with an updated Ubuntu 14.04 x86_64 and instead had gotten some issues with GnuTLS, when trying to install the package "openfoam4". Nonetheless, when I removed the "openfoam.list" file and instead used the instructions from https://openfoam.org/download/4-1-ubuntu/ - namely: sudo add-apt-repository http://dl.openfoam.org/ubuntu sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -" It was able to download and install the package without any problems, so either Chris fixed a few issues while I was testing this a few minutes ago, or using "add-apt-repository" simply works better. |
|
On a clean Ubuntu 14.04 installation, the following installed OpenFOAM 2.3.1 successfully: sudo add-apt-repository http://dl.openfoam.org/ubuntu sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -" sudo apt-get update sudo apt-get install openfoam231 Even for OpenFOAM 2.3.1, the instructions use add-apt-repository, see: https://openfoam.org/download/2-3-1-ubuntu Without more information, or some means to reproduce the problem, I do not see how to proceed here. |
|
Cannot reproduce |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-02-21 10:06 | stefanoborini | New Issue | |
2017-02-21 14:59 | wyldckat | Assigned To | => chris |
2017-02-21 14:59 | wyldckat | Status | new => assigned |
2017-02-21 15:18 | stefanoborini | Note Added: 0007788 | |
2017-02-21 18:38 | chris | Note Added: 0007793 | |
2017-02-21 19:27 | stefanoborini | Note Added: 0007794 | |
2017-02-22 15:18 | chris | Status | assigned => closed |
2017-02-22 15:18 | chris | Resolution | open => fixed |
2017-02-22 15:18 | chris | Note Added: 0007803 | |
2017-03-02 15:41 | stefanoborini | Status | closed => feedback |
2017-03-02 15:41 | stefanoborini | Resolution | fixed => reopened |
2017-03-02 15:41 | stefanoborini | Note Added: 0007846 | |
2017-03-02 15:44 | stefanoborini | Note Added: 0007847 | |
2017-03-02 15:44 | stefanoborini | Status | feedback => assigned |
2017-03-03 00:46 | wyldckat | Note Added: 0007850 | |
2017-03-09 17:01 | chris | Note Added: 0007878 | |
2017-03-09 17:07 | chris | Status | assigned => closed |
2017-03-09 17:07 | chris | Resolution | reopened => fixed |
2017-03-09 17:07 | chris | Note Added: 0007879 |