无法安装 firerake 缺少的软件包

问题描述 投票:0回答:1

我正在尝试在 Ubuntu 20.04.6 LTS 上使用命令

python3 firedrake-install
安装firedrake(一个 Python 包)。

python3 firedrake-install
Running firedrake-install
Checking for presence of package build-essential...
missing.
[...]
Checking for presence of package libopenblas-dev...
missing.
Installing missing packages: build-essential, autoconf, automake, bison, flex, cmake, gfortran, git, libcurl4-openssl-dev, pkgconf, libtool, libxml2-dev, python3-dev, python3-pip, python3-tk, python3-venv, zlib1g-dev, libboost-dev, libopenblas-dev.
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
Alguns pacotes não puderam ser instalados. Isto pode significar que
você solicitou uma situação impossível ou, se você está usando a
distribuição instável, que alguns pacotes requeridos não foram
criados ainda ou foram retirados da "Incoming".
A informação a seguir pode ajudar a resolver a situação:
Os pacotes a seguir têm dependências desencontradas:
build-essential : Depende: libc6-dev mas não será instalado ou
libc-dev
Depende: g++ (>= 4:9.2) mas não será instalado
gfortran : Depende: gfortran-9 (>= 9.3.0-3~) mas não será instalado
libboost-dev : Depende: libboost1.71-dev mas não será instalado
libtool : Depende: libc6-dev mas não será instalado ou
libc-dev
libxml2-dev : Depende: libicu-dev mas não será instalado
python3-dev : Depende: libpython3-dev (= 3.8.2-0ubuntu2) mas não será instalado
Depende: python3.8-dev (>= 3.8.2-1~) mas não será instalado
zlib1g-dev : Depende: libc6-dev mas não será instalado ou
libc-dev
E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.
apt-get not found or disabled. Proceeding on the rash assumption that your compiled dependencies are in place.
Please use the --show-dependencies for more information.
Creating firedrake venv in '/home/users/.../firedrake'.
Traceback (most recent call last):
File "firedrake-install", line 1724, in <module>
check_call([python, "get-pip.py"])
File "firedrake-install", line 666, in check_call
log.debug(subprocess.check_output(arguments, stderr=subprocess.STDOUT, env=os.environ).decode())
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/users/.../firedrake/bin/python', 'get-pip.py']' returned non-zero exit status 1.
Install log saved in /home/users/.../firedrake-install.log

它检查是否存在多个软件包,继续安装它们,读取依赖关系树,读取“状态信息”并告诉我某些软件包无法安装。

尝试按照我在网上找到的内容来解决这个问题,我尝试了很多方法:安装build-essential,但它依赖于libc6-dev。尝试安装libc6-dev,但它依赖于libc6。尝试安装 libc6,但它已经安装在旧版本中。我不知道如何降级,实际上我很担心这种降级的后果。每次试用都会附带一条消息,例如“无法解决问题,你拿着破损的包裹”(翻译自葡萄牙语)。

我对此真的一无所知。在我成功安装到我的个人笔记本中几周后,我就把它安装到我的工作站中,我真的不知道为什么会这样。

我也尝试过使用 aptitude,但还是小心翼翼地不要降级任何东西。我不知道该怎么办 petsc。在Firedrake下载教程中,它说您可能尝试做的一件事是在尝试安装firedrake之前手动安装依赖项。但我不知道如何安装其中每一个,例如 Fortran 编译器,因为系统已经有一个。

python terminal ubuntu-20.04 apt
1个回答
0
投票

您是否更新过包裹清单并升级过?我会尝试这个,但不要运行任何你从互联网上不理解的代码:o)

# Make sure your apt package list is up to date, and your packages are upgraded based on that up-to-date list.
sudo apt update && sudo apt upgrade

# Attempt resolving these broken packages that cannot be resolved
sudo apt --fix-broken install

# Now try reinstalling the dependencies. Check deps for your self:
sudo apt install build-essential autoconf automake bison flex cmake gfortran git libcurl4-openssl-dev pkgconf libtool libxml2-dev python3-dev python3-pip python3-tk python3-venv zlib1g-dev libboost-dev libopenblas-dev

# Up to you to run this correctly...
python3 firedrake-install 
© www.soinside.com 2019 - 2024. All rights reserved.