Error when installing from ppa ubuntu 18

Command “sudo add-apt-repository ppa:fenics-packages/fenics” gives the following error.

E: The repository ‘Index of /bumblebee/stable/ubuntu bionic Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.

Cannot reproduce with:

docker run -ti --rm --shm-size=512m ubuntu:18.04

and

apt-get update
apt-get install software-properties-common
add-apt-repository ppa:fenics-packages/fenics
apt-get install -y fenics

but please note that ubuntu 18.04 has reached its end of life (EOL): https://ubuntu.com/blog/ubuntu-18-04-eol-for-devices
and you are adviced to update your system, as it no longer receives updates, and we do not aim for support for EOL distributions.

Thanks, I am now very confused about what the steps needed to import dolfin in python. If I succeeded executing ```
apt-get install -y fenics
What else I need to do?

You import dolfin as a normal python module, i.e. create a python file, say test.py
with the code

import dolfin
print(dolfin.__version__)
mesh = dolfin.UnitSquareMesh(10, 10)

and run the code with

python3 test.py

Should I install the ppa way and then install the conda way for python module?

No, you need to chose.
Either you install dolfin with apt-get (as described above). Then you get the dolfin python packages tied to the system python.

If you use conda to install dolfin, the installlation is isolated to the python in the conda environment.

thanks I will check further