Can't add ppa

Bug #1509621 reported by Roger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Variety
Invalid
Undecided
Unassigned

Bug Description

sudo apt-add-repository fails. probably NOT a vriety bug, but could do with some help and clues as to what might be the problem.

Thanks

New upgrade of Lubuntu from 15.04 to 15.10

rhill@Lime2:/etc/apt/sources.list.d$ sudo apt-add-repository -m ppa:peterlevi/ppa
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 326, in get_ppa_info
    ret = get_ppa_info_from_lp(user, ppa)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 91, in get_ppa_info_from_lp
    return get_info_from_lp(lp_url)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in get_info_from_lp
    return _get_https_content_py3(lp_url)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in _get_https_content_py3
    lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
  File "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
    capath=capath)
  File "/usr/lib/python3.4/ssl.py", line 434, in create_default_context
    context.load_verify_locations(cafile, capath, cadata)
ssl.SSLError: unknown error (_ssl.c:2727)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 122, in <module>
    shortcut = shortcut_handler(line)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 841, in shortcut_handler
    ret = factory(shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 391, in shortcut_handler
    return PPAShortcutHandler(shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 355, in __init__
    info = get_ppa_info(self.shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 338, in get_ppa_info
    _get_suggested_ppa_message(user, ppa))
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 295, in _get_suggested_ppa_message
    lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in get_info_from_lp
    return _get_https_content_py3(lp_url)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in _get_https_content_py3
    lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
  File "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
    capath=capath)
  File "/usr/lib/python3.4/ssl.py", line 434, in create_default_context
    context.load_verify_locations(cafile, capath, cadata)
ssl.SSLError: unknown error (_ssl.c:2727)
rhill@Lime2:/etc/apt/sources.list.d$

Revision history for this message
Peter Levi (peterlevi) wrote :
Changed in variety:
status: New → Invalid
Revision history for this message
Roger (rhill-l) wrote : Re: [Bug 1509621] Re: Can't add ppa
Download full text (3.4 KiB)

Hi.

Computer date/time is ok.

Will review the solutions you suggested.

Thanks.
Roger
On Sat, October 24, 2015 09:16, Peter Levi wrote:
> Check your computer's time is correct. Try the solutions suggested at
> http://askubuntu.com/questions/156348/how-can-i-get-add-apt-repository-
> to-work and http://ubuntuforums.org/showthread.php?t=2113326
>
> ** Changed in: variety
> Status: New => Invalid
>
>
> --
> You received this bug notification because you are subscribed to the bug
> report. https://bugs.launchpad.net/bugs/1509621
>
>
> Title:
> Can't add ppa
>
>
> Status in Variety:
> Invalid
>
>
> Bug description:
> sudo apt-add-repository fails. probably NOT a vriety bug, but could do with
> some help and clues as to what might be the problem.
>
> Thanks
>
>
>
> New upgrade of Lubuntu from 15.04 to 15.10
>
>
> rhill@Lime2:/etc/apt/sources.list.d$ sudo apt-add-repository -m
> ppa:peterlevi/ppa
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 326, in
> get_ppa_info ret = get_ppa_info_from_lp(user, ppa) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 91, in
> get_ppa_info_from_lp return get_info_from_lp(lp_url) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in
> get_info_from_lp return _get_https_content_py3(lp_url) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in
> _get_https_content_py3
> lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT) File
> "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
> capath=capath) File "/usr/lib/python3.4/ssl.py", line 434, in
> create_default_context context.load_verify_locations(cafile, capath, cadata)
> ssl.SSLError: unknown error (_ssl.c:2727)
>
>
> During handling of the above exception, another exception occurred:
>
>
> Traceback (most recent call last):
> File "/usr/bin/apt-add-repository", line 122, in <module>
> shortcut = shortcut_handler(line) File
> "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py",
> line 841, in shortcut_handler ret = factory(shortcut) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 391, in
> shortcut_handler return PPAShortcutHandler(shortcut) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 355, in
> __init__
> info = get_ppa_info(self.shortcut) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 338, in
> get_ppa_info _get_suggested_ppa_message(user, ppa))
> File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 295, in
> _get_suggested_ppa_message
> lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in
> get_info_from_lp return _get_https_content_py3(lp_url) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in
> _get_https_content_py3
> lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT) File
> "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
> capath=capath) File "/usr/lib/python3.4/ssl.py", line 434, in
> create_default_context context.load_verify_locations(cafile, capath...

Read more...

Revision history for this message
Roger (rhill-l) wrote :
Download full text (3.5 KiB)

Peter:

The tip in that post worked just fine. Many many thanks.
Repository installed.

Now to do the rest.

Roger
On Sat, October 24, 2015 09:16, Peter Levi wrote:
> Check your computer's time is correct. Try the solutions suggested at
> http://askubuntu.com/questions/156348/how-can-i-get-add-apt-repository-
> to-work and http://ubuntuforums.org/showthread.php?t=2113326
>
> ** Changed in: variety
> Status: New => Invalid
>
>
> --
> You received this bug notification because you are subscribed to the bug
> report. https://bugs.launchpad.net/bugs/1509621
>
>
> Title:
> Can't add ppa
>
>
> Status in Variety:
> Invalid
>
>
> Bug description:
> sudo apt-add-repository fails. probably NOT a vriety bug, but could do with
> some help and clues as to what might be the problem.
>
> Thanks
>
>
>
> New upgrade of Lubuntu from 15.04 to 15.10
>
>
> rhill@Lime2:/etc/apt/sources.list.d$ sudo apt-add-repository -m
> ppa:peterlevi/ppa
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 326, in
> get_ppa_info ret = get_ppa_info_from_lp(user, ppa) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 91, in
> get_ppa_info_from_lp return get_info_from_lp(lp_url) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in
> get_info_from_lp return _get_https_content_py3(lp_url) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in
> _get_https_content_py3
> lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT) File
> "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
> capath=capath) File "/usr/lib/python3.4/ssl.py", line 434, in
> create_default_context context.load_verify_locations(cafile, capath, cadata)
> ssl.SSLError: unknown error (_ssl.c:2727)
>
>
> During handling of the above exception, another exception occurred:
>
>
> Traceback (most recent call last):
> File "/usr/bin/apt-add-repository", line 122, in <module>
> shortcut = shortcut_handler(line) File
> "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py",
> line 841, in shortcut_handler ret = factory(shortcut) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 391, in
> shortcut_handler return PPAShortcutHandler(shortcut) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 355, in
> __init__
> info = get_ppa_info(self.shortcut) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 338, in
> get_ppa_info _get_suggested_ppa_message(user, ppa))
> File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 295, in
> _get_suggested_ppa_message
> lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in
> get_info_from_lp return _get_https_content_py3(lp_url) File
> "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in
> _get_https_content_py3
> lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT) File
> "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
> capath=capath) File "/usr/lib/python3.4/ssl.py", line 434, in
> create_default_context context.load_veri...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.