无法下载 libntlm 包

无法下载 libntlm 包

我通过 DevOps 管道执行这些脚本来构建 Ubuntu 22.04 映像。

sudo apt update --fix-missing

echo deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy main >> /etc/apt/sources.list

echo deb http://azure.archive.ubuntu.com/ubuntu jammy main universe multiverse restricted >> /etc/apt/sources.list

echo deb http://azure.archive.ubuntu.com/ubuntu jammy-updates main multiverse universe restricted >> /etc/apt/sources.list

sudo apt-get update

sudo apt clean && sudo apt autoclean

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4f4ea0aae5267a6c

sudo apt-get install libntlm0

但是当管道运行时我收到此错误并且失败了。

Get:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [23.9 kB]
azure-arm.ubuntu2204lts: Err:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
azure-arm.ubuntu2204lts:   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C


W: GPG error: https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C
==> azure-arm.ubuntu2204lts: E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease' is not signed.


Err:1 http://azure.archive.ubuntu.com/ubuntu jammy/universe amd64 libntlm0 amd64 1.6-4
    azure-arm.ubuntu2204lts:   404  Not Found [IP: 20.53.66.23 80]
==> azure-arm.ubuntu2204lts: E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/libn/libntlm/libntlm0_1.6-4_amd64.deb  404  Not Found [IP: 20.53.66.23 80]
==> azure-arm.ubuntu2204lts: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

好像https://azure.archive.ubuntu.com无法访问。作为解决方法,您可以下载 libntml 二进制文件并使用以下命令进行安装:

curl -O http://archive.ubuntu.com/ubuntu/pool/universe/libn/libntlm/libntlm0_1.6-4_amd64.deb
sudo dpkg -i libntlm0_1.6-4_amd64.deb

相关内容