While I am executing command
**VERS=$(lsb_release -cs)
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt**/sources.list.d/openfoam.list"*][1]*
I have a file openfoam.list
But output of sudo apt-get install openfoam221
is
N: Ignoring file 'openfoam221_0-1_i386.deb' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'openfoamlist' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'openfoam221_0-1_i386.deb' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'openfoamlist' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'openfoam221_0-1_i386.deb' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'openfoamlist' in directory '/etc/apt/sources.list.d/' as it has no filename extension
E: Unable to locate package openfoam221