[GH-ISSUE #93] APT not connecting? #60

Closed
opened 2026-03-01 21:39:33 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Feb 22, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/93

With pipeline file such as:

name: Foo
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Install MySQL Client
      run: |
        apt update
        apt install mysql-client-5.7 libmysqlclient-dev

act is hanging on apt install for a very long time. Can't it access network?

❯ act
[Foo/build] ⭐  Run actions/checkout@v2
[Foo/build]   ✅  Success - actions/checkout@v2
[Foo/build] ⭐  Run Install MySQL Client
[Foo/build]   🐳  docker pull ubuntu:18.04
[Foo/build]   🐳  docker run image=ubuntu:18.04 entrypoint=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-903806110"] cmd=[]
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [835 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [7348 B]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [823 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [31.0 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [44.7 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1127 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [11.4 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1350 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4252 B]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2496 B]
Fetched 17.6 MB in 3s (6137 kB/s)
Reading package lists... Done
Building dependency tree       !
Reading state information... Done
| All packages are up to date.
Reading package lists... Done
Building dependency tree       !
Reading state information... Done
| The following additional packages will be installed:
|   libaio1 libc-dev-bin libc6-dev libedit2 libmysqlclient20 libnuma1 libssl-dev
|   libssl1.1 linux-libc-dev manpages manpages-dev mysql-client-core-5.7
|   mysql-common zlib1g-dev
| Suggested packages:
|   glibc-doc libssl-doc man-browser
| The following NEW packages will be installed:
|   libaio1 libc-dev-bin libc6-dev libedit2 libmysqlclient-dev libmysqlclient20
|   libnuma1 libssl-dev libssl1.1 linux-libc-dev manpages manpages-dev
|   mysql-client-5.7 mysql-client-core-5.7 mysql-common zlib1g-dev
| 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
| Need to get 20.5 MB of archives.
| After this operation, 115 MB of additional disk space will be used.
Originally created by @ghost on GitHub (Feb 22, 2020). Original GitHub issue: https://github.com/nektos/act/issues/93 With pipeline file such as: ``` name: Foo jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install MySQL Client run: | apt update apt install mysql-client-5.7 libmysqlclient-dev ``` act is hanging on `apt install` for a very long time. Can't it access network? ``` ❯ act [Foo/build] ⭐ Run actions/checkout@v2 [Foo/build] ✅ Success - actions/checkout@v2 [Foo/build] ⭐ Run Install MySQL Client [Foo/build] 🐳 docker pull ubuntu:18.04 [Foo/build] 🐳 docker run image=ubuntu:18.04 entrypoint=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-903806110"] cmd=[] Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [835 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB] Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [7348 B] Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [823 kB] Get:9 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB] Get:11 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [31.0 kB] Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB] Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [44.7 kB] Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1127 kB] Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [11.4 kB] Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1350 kB] Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4252 B] Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2496 B] Fetched 17.6 MB in 3s (6137 kB/s) Reading package lists... Done Building dependency tree ! Reading state information... Done | All packages are up to date. Reading package lists... Done Building dependency tree ! Reading state information... Done | The following additional packages will be installed: | libaio1 libc-dev-bin libc6-dev libedit2 libmysqlclient20 libnuma1 libssl-dev | libssl1.1 linux-libc-dev manpages manpages-dev mysql-client-core-5.7 | mysql-common zlib1g-dev | Suggested packages: | glibc-doc libssl-doc man-browser | The following NEW packages will be installed: | libaio1 libc-dev-bin libc6-dev libedit2 libmysqlclient-dev libmysqlclient20 | libnuma1 libssl-dev libssl1.1 linux-libc-dev manpages manpages-dev | mysql-client-5.7 mysql-client-core-5.7 mysql-common zlib1g-dev | 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded. | Need to get 20.5 MB of archives. | After this operation, 115 MB of additional disk space will be used. ```
kerem closed this issue 2026-03-01 21:39:33 +03:00
Author
Owner

@cplee commented on GitHub (Feb 25, 2020):

Closing as this works in newest 0.2.2 release

<!-- gh-comment-id:590710283 --> @cplee commented on GitHub (Feb 25, 2020): Closing as this works in newest `0.2.2` release
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#60
No description provided.