Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to add PPA Key #56
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
SmallRoomLabs
Apr 16, 2015
Running on Ubuntu I do like this to get his PPA's working:
apt-get update &&
apt-get install -y language-pack-en-base &&
export LC_ALL=en_US.UTF-8 &&
export LANG=en_US.UTF-8 &&
apt-get install -y software-properties-common &&
add-apt-repository -y ppa:ondrej/php5-5.6 &&
add-apt-repository -y ppa:ondrej/mariadb-10.0 &&
apt-get update &&
apt-get -y upgrade
SmallRoomLabs
commented
Apr 16, 2015
|
Running on Ubuntu I do like this to get his PPA's working:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
aranw
Apr 16, 2015
I found the fix was for me to set the language to UTF-8.
locale-gen en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
Edit:
As pointed out by @SmallRoomLabs some Ubuntu installs don't have local-gen installed by default.
To add it run sudo apt-get install -y language-pack-en-base then use the commands listed above.
aranw
commented
Apr 16, 2015
|
I found the fix was for me to set the language to UTF-8.
Edit: As pointed out by @SmallRoomLabs some Ubuntu installs don't have To add it run |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
SmallRoomLabs
Apr 16, 2015
The AMI that I use on AWS doesn't have the language pack installed by default so I had to install language-pack-en-base. Just doing the locale-gen didn't cut it for me.
But even after 22 years of screwing around with Linux (0.99pl3 was the kernel on my first dist) I'm still more than just a bit confused when it comes to character- & language encodings. ;-)
SmallRoomLabs
commented
Apr 16, 2015
|
The AMI that I use on AWS doesn't have the language pack installed by default so I had to install language-pack-en-base. Just doing the locale-gen didn't cut it for me. But even after 22 years of screwing around with Linux (0.99pl3 was the kernel on my first dist) I'm still more than just a bit confused when it comes to character- & language encodings. ;-) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
oerdnj
Apr 16, 2015
Owner
Unfortunately that's something broken by Ubuntu and has to be fixed by Ubuntu. I will leave this open for others to find. Thanks for the workaround...
|
Unfortunately that's something broken by Ubuntu and has to be fixed by Ubuntu. I will leave this open for others to find. Thanks for the workaround... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
oerdnj
Sep 7, 2015
Owner
JFTR this is shortened version that should work (run as root):
# apt-get install -y language-pack-en-base
# LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/<repository>
|
JFTR this is shortened version that should work (run as root):
|
oerdnj
referenced this issue
Dec 7, 2015
Closed
add-repository instructions fail on ubunutu 15.10 in Dec 2015 #147
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Seldaek
Dec 19, 2015
@oerdnj has this been reported to ubuntu? And alternatively while I fully understand that it's not your fault, would it be an option for you to use a transliterated version of your name instead of the full unicode one? That would be a good workaround I guess.
Seldaek
commented
Dec 19, 2015
|
@oerdnj has this been reported to ubuntu? And alternatively while I fully understand that it's not your fault, would it be an option for you to use a transliterated version of your name instead of the full unicode one? That would be a good workaround I guess. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
oerdnj
Dec 20, 2015
Owner
Should I also change my official name so your copy & paste buffer doesn't get cluttered with few more characters?
No, I am definitely not going to use transliterated name because it's 2015 and I like my name as it is.
|
Should I also change my official name so your copy & paste buffer doesn't get cluttered with few more characters? No, I am definitely not going to use transliterated name because it's 2015 and I like my name as it is. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Seldaek
Dec 20, 2015
Seldaek
commented
Dec 20, 2015
|
Eh I meant no offense. I just meant it would be a pragmatic way to reduce
the load of duplicate support issues about this problem. I agree with you
though that in this day and age Unicode usage shouldn't cause such breakage.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
oerdnj
Jan 8, 2016
Owner
I have added instructions to every major PPA description how to circumvent this issue. Hope this fixes most problems.
|
I have added instructions to every major PPA description how to circumvent this issue. Hope this fixes most problems. |
oerdnj
closed this
Jan 8, 2016
sc250024
referenced this issue
Jan 21, 2016
Closed
pkgrepo.managed fails with UTF8 characters in PPA repository name #30490
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
JFTR: |
DiegoPino
referenced this issue
May 25, 2016
Merged
Update 'vagrant' to work with new submodule structure after #257 #264
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rvadym
Jun 11, 2016
Dockerfile part for official Ubuntu 14 docker image which worked for me
# required by PHP 5.6
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get install -y language-pack-en-base &&\
export LC_ALL=en_US.UTF-8 && \
export LANG=en_US.UTF-8
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y software-properties-common
RUN DEBIAN_FRONTEND=noninteractive LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
RUN DEBIAN_FRONTEND=noninteractive LC_ALL=en_US.UTF-8 \
apt-get update && apt-get install -y \
php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
rvadym
commented
Jun 11, 2016
|
Dockerfile part for official Ubuntu 14 docker image which worked for me
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ktamas77
Jul 4, 2016
@rvadym your solution is excellent, there is only a small issue, you missed a -y to avoid interactions this line; the noninteractive flag is not enough (docker / ubuntu xenial). With the -y parameter it works:
RUN DEBIAN_FRONTEND=noninteractive LC_ALL=en_US.UTF-8 add-apt-repository -y ppa:ondrej/php
ktamas77
commented
Jul 4, 2016
|
@rvadym your solution is excellent, there is only a small issue, you missed a |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rvadym
Jul 4, 2016
@ktamas77 I think you're right. It is just part of much bigger config, so I might miss some small details accidentally. Thanks for pointing this out.
rvadym
commented
Jul 4, 2016
|
@ktamas77 I think you're right. It is just part of much bigger config, so I might miss some small details accidentally. Thanks for pointing this out. |
drm2
referenced this issue
Aug 15, 2016
Closed
dpkg was interrupted you must manually run sudo dpkg configure a to correct the problem #29
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hypotheses
Nov 6, 2016
With the current locale setting
ubuntu1604# locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
I still got the warning below. Is this something I can ignore?
add-apt-repository ppa:ondrej/php
Co-installable PHP versions: PHP 5.5, 5.6, PHP 7.0 and batteries included.
You can get more information about the packages at https://deb.sury.org
For PHP 5.4 on Ubuntu 12.04 use: ppa:ondrej/php5-oldstable
BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it
hypotheses
commented
Nov 6, 2016
|
With the current locale setting
I still got the warning below. Is this something I can ignore?
|
added a commit
to maikoe/www-lamp
that referenced
this issue
Feb 27, 2017
dstensnes
referenced this issue
Jun 6, 2017
Open
Salt pkgrepo.managed for PPA Does not Import Keys #32294
added a commit
to joomla-projects/docker-php71
that referenced
this issue
Jun 17, 2017
oerdnj
referenced this issue
Sep 21, 2017
Closed
apt-add-repository ppa:ondrej/php returns error #704
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mstnorris
Sep 29, 2017
I have done what is suggested above and added the following two lines to the top of my install.sh script.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
Yet I still get the following message:
WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround
Am I missing something?
mstnorris
commented
Sep 29, 2017
|
I have done what is suggested above and added the following two lines to the top of my install.sh script.
Yet I still get the following message:
Am I missing something? |
josipjelic
referenced this issue
Oct 1, 2017
Closed
Can't install PHP7.1 on Ubuntu 16.10 (Yakkety Yak) #713
multi-io
referenced this issue
Jan 2, 2018
Closed
"WARNING: add-apt-repository is broken with non-UTF-8 locales" #773
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
aadityamundhalia
Feb 22, 2018
I am not able to run it every time i get below erroe can some one please help
gpg: keybox '/tmp/tmpi_5eo952/pubring.gpg' created
gpg: keyserver receive failed: No data
Failed to add key.
aadityamundhalia
commented
Feb 22, 2018
|
I am not able to run it every time i get below erroe can some one please help |
VirtuBox
referenced this issue
Apr 13, 2018
Closed
encoding with 'idna' codec failed (UnicodeError: label too long) #967
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shadowhand
May 25, 2018
No matter what I do, this is still an issue for me on 16.04. I have tried the this fix multiple times in different ways (using Ansible) and none of them work. The end result is always:
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu xenial Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Edit: See below, seems to have been something screwy with the state of SSL on my OS.
shadowhand
commented
May 25, 2018
•
|
No matter what I do, this is still an issue for me on 16.04. I have tried the this fix multiple times in different ways (using Ansible) and none of them work. The end result is always:
Edit: See below, seems to have been something screwy with the state of SSL on my OS. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
todeveni
May 25, 2018
- name: Add PHP repository
apt_repository:
repo: deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
state: present
- name: Add PHP repository signing key
apt_key:
keyserver: keyserver.ubuntu.com
id: 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
todeveni
commented
May 25, 2018
•
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shadowhand
commented
May 25, 2018
|
@todeveni did not work, same error. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
todeveni
commented
May 25, 2018
|
@shadowhand Works for me Here's the full vagrant setup I tested it on. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shadowhand
May 27, 2018
Well, I was having some other SSL issues with composer so I decided to reinstall my OS completely and now everything appears to be working. 🧐
shadowhand
commented
May 27, 2018
•
|
Well, I was having some other SSL issues with composer so I decided to reinstall my OS completely and now everything appears to be working. 🧐 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shadowhand
May 28, 2018
I spoke too soon. Every time there is an ansible package install it will fail ~50% of the time. I can even SSH into the vagrant machine and manually run sudo apt-get update and sometimes it will error and sometimes not. At a loss as to what to do.
shadowhand
commented
May 28, 2018
|
I spoke too soon. Every time there is an ansible package install it will fail ~50% of the time. I can even SSH into the vagrant machine and manually run |
aranw commentedApr 9, 2015
Hey,
Trying to add the PPA key but it seems to always fail due to the your name in the PPA Key.