mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #588] Issue: APT install works on Github but fails in Act #391
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#391
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rafaelmotaalves on GitHub (Mar 29, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/588
Act version
Expected behaviour
When using the
apt installcommand to APT install packages, the packages should be installed correctly, as it happens on Github.Actual behaviour
When using the APT command to install APT packages the following error is returned:
Workflow and/or repository
https://github.com/rafaelmotaalves/voicemod-bot
workflow
Steps to reproduce
Execute
acton the root of the project.actoutputLog
@catthehacker commented on GitHub (Mar 29, 2021):
You need to run
apt updatebefore installing anything. You are relying on apt cache on GitHub runners which quite often becomes invalid.https://github.com/actions/virtual-environments/issues/2924
@catthehacker commented on GitHub (Apr 1, 2021):
Solution provided and using
apt updateorapt-get updatehas been mentioned very often in GitHub virtual environments.Keeping
aptcache in Docker image has no benefit since it will get outdated and takes space.@masroorhussainv commented on GitHub (Feb 23, 2022):
still does not work for me. I'm trying to install chromedriver and it says:
@catthehacker commented on GitHub (Feb 23, 2022):
there is no
google-chromepackage in Ubuntu@masroorhussainv commented on GitHub (Feb 23, 2022):
Here is the Github action that I tried to install chromedriver with
This action claims support for
@catthehacker commented on GitHub (Feb 23, 2022):
then that action is broken, in https://github.com/nanasess/setup-chromedriver/pull/16 there is added a check to install
google-chromeif it's not installed but our images don't include Google Chrome repos and GitHub removes them after installinggoogle-chrome, so it will break everywhere where repos are not included and chrome is missing@masroorhussainv commented on GitHub (Feb 23, 2022):
Alright, what are my other options to get it installed? The same thing works fine on Github CI, it's only failing on the local machine when running the workflow through act.
@catthehacker commented on GitHub (Feb 23, 2022):
this should work
@masroorhussainv commented on GitHub (Feb 23, 2022):
Ran this
and it failed with this error
It also didn't work with
Which threw these errors
@mohammedhammoud commented on GitHub (Mar 24, 2022):
@masroorhussainv this should work: