mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 22:58:22 +00:00
[Ubuntu] Add archive.ubuntu.com to sources.list (#7616)
This commit is contained in:
12
images/linux/scripts/base/apt-ubuntu-archive.sh
Normal file
12
images/linux/scripts/base/apt-ubuntu-archive.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: apt-ubuntu-archive.sh
|
||||
## Desc: Script for adding additional apt repo to /etc/apt/sources.list
|
||||
################################################################################
|
||||
|
||||
echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted" | tee -a /etc/apt/sources.list
|
||||
echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-updates main restricted" | tee -a /etc/apt/sources.list
|
||||
|
||||
echo "deb http://security.ubuntu.com/ubuntu/ $(lsb_release -cs)-security main restricted" | tee -a /etc/apt/sources.list
|
||||
echo "deb http://security.ubuntu.com/ubuntu/ $(lsb_release -cs)-security universe" | tee -a /etc/apt/sources.list
|
||||
echo "deb http://security.ubuntu.com/ubuntu/ $(lsb_release -cs)-security multiverse" | tee -a /etc/apt/sources.list
|
||||
Reference in New Issue
Block a user