Installing packages on Azure App Service via the startup command doesn't work.

Ross Hambleton 20 Reputation points
2024-06-24T06:55:07.2766667+00:00

I'm trying to install two packages via the startup command, as shown in the screenshot.

Screenshot 2024-06-24 075153

However, I'm getting the following error messages in the console.

When I run the commands myself in the SSH it works fine.


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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,435 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Rafael Fernández Domínguez 0 Reputation points
    2024-06-24T09:37:53.2566667+00:00

    I think the best solution for your problem is to deploy your application as a container: https://learn.microsoft.com/en-us/azure/app-service/quickstart-custom-container?tabs=dotnet&pivots=container-linux- vscode

    This way you can customize the deployment and not try to modify the default installation of the App Service.

    0 comments No comments

  2. Ross Hambleton 20 Reputation points
    2024-06-27T11:49:16.5766667+00:00

    I fixed it by adding #!/bin/bash to to start of the start.sh file.


  3. Ross Hambleton 20 Reputation points
    2024-06-27T11:49:43.98+00:00

    I fixed it by adding #!/bin/bash to to start of the start.sh file.

    0 comments No comments