mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[ubuntu] Limit apt sources to the actual architectures (#2021)
* limit apt sources to the actual architectures * Move the modification from its own file to base/apt.sh * Add comment
This commit is contained in:
@@ -23,7 +23,16 @@ apt-get remove unattended-upgrades
|
|||||||
# Install aria2 and jq
|
# Install aria2 and jq
|
||||||
apt-get install aria2
|
apt-get install aria2
|
||||||
apt-get install jq
|
apt-get install jq
|
||||||
|
|
||||||
# Use apt-fast for parallel downloads
|
# Use apt-fast for parallel downloads
|
||||||
add-apt-repository -y ppa:apt-fast/stable
|
add-apt-repository -y ppa:apt-fast/stable
|
||||||
|
|
||||||
|
# Need to limit arch for default apt repos due to
|
||||||
|
# https://github.com/actions/virtual-environments/issues/1961
|
||||||
|
sed -i'' -E 's/^deb http:\/\/(azure.archive|security).ubuntu.com/deb [arch=amd64,i386] http:\/\/\1.ubuntu.com/' /etc/apt/sources.list
|
||||||
|
|
||||||
|
echo 'APT sources limited to the actual architectures'
|
||||||
|
cat /etc/apt/sources.list
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install apt-fast
|
apt-get install apt-fast
|
||||||
|
|||||||
Reference in New Issue
Block a user