我有一个在本地运行的python azure函数应用程序,以前已经通过以下命令将其发布到Azure:
(.env) PS C:\temp\python_function> func azure functionapp publish httpgengraph --build-native-deps --publish-local-settings -i
但是,我刚刚尝试过并且得到的错误对我来说意义不大(发布azure函数期间,我无法在线找到关于这些错误的任何信息)。
E: The repository 'https://packages.microsoft.com/debian/9/prod stretch Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://security.debian.org/debian-security jessie/updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://deb.debian.org/debian stretch Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://deb.debian.org/debian stretch-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
答案 0 :(得分:1)
--build-native-deps
使用docker容器构建您的Python Function App。如果您的docker的空间/内存不足,我已经看到了此错误。
您可以尝试运行任何debian Docker容器并运行`apt-get update。例如-
docker run -d mcr.microsoft.com/azure-functions/python
docker exec -it <image-id-from-last-command> /bin/bash`
apt-get update
我敢打赌这会给你类似的错误。
要解决此问题,请尝试删除未使用的停止的Docker容器。
您可以使用docker system prune -a
删除所有停止的容器。我建议仔细检查以确保未在其他地方使用。
如果清除某些分配的空间后仍然看到问题,请告诉我。