如何在 Azure 应用服务中使用启动命令安装包?

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

我正在尝试通过启动命令安装两个软件包,如屏幕截图所示。

enter image description here

enter image description here

但是,我在控制台中收到以下错误消息。

当我自己在 SSH 中运行命令时,它工作正常。

2024-06-23T21:13:54.129973640Z Note: Any data outside '/home' is not persisted
2024-06-23T21:13:54.449210327Z Starting OpenBSD Secure Shell server: sshd.
2024-06-23T21:13:54.449244227Z Running oryx create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -bindPort 8080 -startupCommand '/home/start.sh; apache2-foreground;'
2024-06-23T21:13:54.558009274Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-06-23T21:13:54.559142283Z Could not find operation ID in manifest. Generating an operation id...
2024-06-23T21:13:54.559917389Z Build Operation ID: 4d038af9-0ec6-4199-8974-471088a62879
2024-06-23T21:13:55.055261448Z Writing output script to '/opt/startup/startup.sh'
2024-06-23T21:13:55.238603476Z E: The update command takes no arguments
2024-06-23T21:14:15.474124654Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/d/dbus/libdbus-1-3_1.12.24-0+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.478284583Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/d/dbus/dbus_1.12.24-0+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.478300083Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/d/dbus/dbus-user-session_1.12.24-0+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.478305483Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/f/ffmpeg/libavutil56_4.1.10-0+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.478309783Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/f/ffmpeg/libswresample3_4.1.10-0+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.478313883Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/f/ffmpeg/libavcodec58_4.1.10-0+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.481242303Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/c/curl/libcurl3-gnutls_7.64.0-4+deb10u3_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.481260603Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/p/poppler/libpoppler82_0.71.0-5+deb10u1_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.481284403Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/p/python3.7/libpython3.7_3.7.3-2+deb10u4_amd64.deb 404 Not Found [IP: 151.101.190.132 80]
2024-06-23T21:14:15.481289003Z E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
2024-06-23T21:14:17.427880704Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/d/dbus/libdbus-1-3_1.12.24-0+deb10u1_amd64.deb 404 Not Found [IP: 146.75.74.132 80]
2024-06-23T21:14:17.428726110Z E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/d/dbus/dbus_1.12.24-0+deb10u1_amd64.deb 404 Not Found [IP: 146.75.74.132 80]
2024-06-23T21:14:17.429575816Z E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
azure-web-app-service
1个回答
0
投票

2024-06-23T21:14:15.474124654Z E:无法获取http://deb.debian.org/debian-security/pool/updates/main/d/dbus/libdbus-1-3_1.12.24-0+ deb10u1_amd64.deb 404 未找到 [IP: 151.101.190.132 80]

错误清除表明无法在给定链接中找到 debian。

  • 要使用

    .sh
    脚本而不是
    apt-get
    命令安装任何软件包,请使用
    wget
    下载链接安装它们。

  • 您需要使用

    wget
    并链接到 tar 文件来下载特定版本。

  • 我从下面的链接获取了libreoffice的tar文件 / 索引 (documentfoundation.org)

https://download.documentfoundation.org/libreoffice/stable/24.2.4/deb/x86_64/
  • 从上面的列表中选择所需的版本。

感谢@Ravi Raive的命令。

startup.sh
文件:

wget https://download.documentfoundation.org/libreoffice/stable/24.2.4/deb/x86_64/LibreOffice_24.2.4_Linux_x86-64_deb.tar.gz

tar xvf LibreOffice_24.2.4_Linux_x86-64_deb.tar.gz

cd LibreOffice_24.2.4_Linux_x86-64_deb
  • 在newui中查看已部署的包。

enter image description here

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