Skip to content

Commit

Permalink
update apt config
Browse files Browse the repository at this point in the history
  • Loading branch information
7Ji committed Apr 16, 2024
1 parent dc450bb commit c593bbf
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ jobs:
sudo dpkg --add-architecture arm64
CODENAME=$(lsb_release -c -s)
sudo bash -c "echo -e '\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME main restricted \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME-updates main restricted \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME universe \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME-updates universe \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME multiverse \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME-updates multiverse \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME-backports main restricted universe multiverse \n' > /etc/apt/sources.list.d/arm64-cross.list"
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME main multiverse restricted universe \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME-updates main multiverse restricted universe \n\
deb [arch=arm64] http://ports.ubuntu.com/ $CODENAME-backports main multiverse restricted universe \n' > /etc/apt/sources.list.d/arm64-cross.list"
sudo sed -i 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install \
Expand Down

0 comments on commit c593bbf

Please sign in to comment.