Closed
Description
openedon Nov 11, 2020
Issue Title
Failed to fetch https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size
General
This task started failing yesterday afternoon. It had worked every time before then.
Powershell command, running in ADO pipeline
Task : PowerShell
Description : Run a PowerShell script on Linux, macOS, or Windows
Version : 2.170.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
yml
- pwsh: |
Write-Host "Installing SQL Server Express..."
Write-Host "`nSetting SA password..."
Write-Host "##vso[task.setvariable variable=SqlSAPassword;]$sqlSAPassword"
Write-Host "`nAdding GPG keys..."
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Write-Host "`nAdding SQL server repository..."
$version = (cat /etc/lsb-release | Where-Object { $_ -like "*RELEASE*" }).Split("=")[1]
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/$version/mssql-server-2019.list)"
Write-Host "`nInstalling..."
sudo apt-get update
sudo apt-get install -y mssql-server
Write-Host "`nConfiguring..."
sudo MSSQL_PID=Express MSSQL_SA_PASSWORD=$sqlSAPassword /opt/mssql/bin/mssql-conf -n setup accept-eula
sudo systemctl restart mssql-server
condition: eq(variables['Agent.OS'], 'Linux')
displayName: Install SQL Server Express
Output:
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (13511 != 13352). Mirror sync in progress? [IP: 13.82.67.141 443]
Hashes of expected file:
- Filesize:13352 [weak]
- SHA512:efa35638712a6a5045f5468c8d6aca6b4ab9c5dff13439863e7fef91681ec0916076bb76dcf2e96dd72f3089984472a62b5a2cd0c98dd885c66bcb868e888b23
- SHA256:db00281d8aaa1f1b3d292c430a60093f8978519bd152b6bbd395371af7ceb922
- SHA1:68eaba4fa381374b1f719fb36f06464af2e9317e [weak]
- MD5Sum:279ba725c2e9338dd9bbacd65af6de2e [weak]
Release file created at: Mon, 02 Nov 2020 18:14:11 +0000
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/dists/bionic/main/binary-arm64/Packages.bz2
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/dists/bionic/main/binary-armhf/Packages.bz2
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package mssql-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels