如何从 bullseye docker 镜像安装 bookworm 包

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

我目前正在从

python:3.9-slim-bullseye
构建图像。 我还需要最新版本的 libleptonica-dev,它仅适用于
bookworm
sid

目前,如果我在 Dockerfile 中运行

apt-get install -y libleptonica-dev
,它会安装 1.79,但我需要 1.82。

即使

bullseye-backport
不存在,有没有办法从未来的 debian 版本安装软件包?

docker dockerfile debian debian-based bullseye
1个回答
1
投票

为了在 Debian bullseye 中从 bookworm 安装 libleptonica-dev 版本 1.82,打开终端并输入:

sudo apt update
wget -c http://ftp.us.debian.org/debian/pool/main/l/leptonlib/libleptonica-dev_1.82.0-3+b2_amd64.deb
sudo apt install ./libleptonica-dev_1.82.0-3+b2_amd64.deb

如果运行 wget 时链接损坏,您可以在此处查看实际版本链接。

© www.soinside.com 2019 - 2024. All rights reserved.