Error with add-apt-repository -y ppa:ondrej/php

4,366 views
Skip to first unread message

German Acevedo

unread,
Jul 5, 2016, 9:51:55 PM7/5/16
to BigBlueButton-Setup
Hi,
I'm doing a fresh installation of BBB, following the instructions of http://docs.bigbluebutton.org/install/install.html, but when I get to "Step 2. Install PPA for LibreOffice 4.4 and libsslAnchor link for: install ppa for libreoffice 44 and libssl" and execute the "
sudo add-apt-repository -y ppa:ondrej/php

" command, it gives the following error:
root@conferencias:~# sudo add-apt-repository -y ppa:ondrej/php
gpg: keyring `/tmp/tmp0imvvdj7/secring.gpg' created
gpg: keyring `/tmp/tmp0imvvdj7/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp0imvvdj7/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ond\xc5\x99ej Sur▒" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 687, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 370, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 261, in add_ppa_signing_key
    tmp_export_keyring, signing_key_fingerprint, tmp_keyring_dir):
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 210, in _verify_fingerprint
    got_fingerprints = self._get_fingerprints(keyring, keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 202, in _get_fingerprints
    output = subprocess.check_output(cmd, universal_newlines=True)
  File "/usr/lib/python3.4/subprocess.py", line 609, in check_output
    output, unused_err = process.communicate(inputdata, timeout=timeout)
  File "/usr/lib/python3.4/subprocess.py", line 947, in communicate
    stdout = _eintr_retry_call(self.stdout.read)
  File "/usr/lib/python3.4/subprocess.py", line 491, in _eintr_retry_call
    return func(*args)
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 92: ordinal not in range(128)

If I continue the installation it finishes without any errors, but makes it impossible to connect WebRTC audio.

Before this command there is no other error.

I started with a fresh Ubuntu 14.04.2 64 bits that after dist-ugrade is now Ubuntu 14.04.4 LTS

Any suggestion about how to solve this?

Regards,

German

Fred Dixon

unread,
Jul 5, 2016, 10:59:36 PM7/5/16
to bigbluebu...@googlegroups.com
Hi German,

Interesting.  We googled the error

  add-apt-repository UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in

and got this explanation


which suggests your server has no enabled utf-8 locales. Can you check that your server mets the setup in


specifically, having the locale set to en_US.UTF-8.  (It might work for other locales, but this is what we test agains).


When we tried the command on a server that didn't have the locale setup, we received the same errors.  When we did have the locale setup, as per the docs, 

$ cat /etc/default/locale
LANG="en_US.UTF-8"

the adding of the repo worked

$ sudo add-apt-repository -y ppa:ondrej/php
gpg: keyring `/tmp/tmpmrtxugj2/secring.gpg' created
gpg: keyring `/tmp/tmpmrtxugj2/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpmrtxugj2/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
$


Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

German Acevedo

unread,
Jul 5, 2016, 11:49:51 PM7/5/16
to BigBlueButton-Setup
Hi Fred,
This is the result, as I can see my default is set to en_US.UTF-8, the only difference that I can see is that there are no " "
I have used these commands to setup the language in my server:
$ sudo apt-get install language-pack-en
$ sudo update-locale LANG=en_US.UTF-8

Fred Dixon

unread,
Jul 6, 2016, 3:43:49 PM7/6/16
to bigbluebu...@googlegroups.com
Hi German,

> If I continue the installation it finishes without any errors, but makes it impossible to connect WebRTC audio.

It looks like the addition of the PPA key actually works (so you could basically ignore the errors).

The setup of WebRTC is different.  Did you try it with FireFox (if you don't have SSL setup, Chrome will give you an error).

Regards,... Fred




--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages