Skip to content

add-apt-repository pre-requisites #4054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 7, 2025

Conversation

Max13
Copy link
Contributor

@Max13 Max13 commented Apr 6, 2025

On a fresh VM, VPS or LXC, Ubuntu 24 doesn't have gpg, add-apt-repository and curl.

Shouldn't introduce any breaking change.

// PHP
run('apt-add-repository ppa:ondrej/php -y', env: ['DEBIAN_FRONTEND' => 'noninteractive']);
run('LC_ALL=C.UTF-8 apt-add-repository ppa:ondrej/php -y', env: ['DEBIAN_FRONTEND' => 'noninteractive']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move it to env.

Also why this was added? Usually it is default.

Copy link
Contributor Author

@Max13 Max13 Apr 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a fresh install on Ubuntu 24.04, on LXC on Proxmox, default is C.

deployer@test:~/parcourbot$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Specifying it would not cause anything in case C.UTF-8 is the default, and fix things if it's not.

@antonmedv antonmedv merged commit ac26154 into deployphp:master Apr 7, 2025
5 of 6 checks passed
@Max13 Max13 mentioned this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants