'urlopen error' using add-apt-repository

Bug #502698 reported by Kurt Kraut
80
This bug affects 9 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Low
Robert Roth

Bug Description

I'm trying to follow the instructions for installing FreeNX (https://help.ubuntu.com/community/FreeNX) and I'm getting an error if I use add-apt-repository command:

root@desktopserver:/etc/gdm# time add-apt-repository ppa:freenx-team
<urlopen error [Errno -2] Nome ou serviço desconhecido>

real 0m40.586s
user 0m0.568s
sys 0m0.060s

But it seems that the repository was added:

root@desktopserver:~# ls /etc/apt/sources.list.d
freenx-team-ppa-karmic.list freenx-team-ppa-karmic.list.save

Related branches

CVE References

Revision history for this message
Leonardo Silva Amaral (leleobhz) wrote :

leleobhz@tarsila:~$ sudo add-apt-repository ppa:freenx-team
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv F3A662B57D580D3A2E98E5152A8E3034D018A4CE
gpg: requisitando chave D018A4CE de servidor hkp - keyserver.ubuntu.com
gpg: chave D018A4CE: chave pública "Launchpad PPA for FreeNX Team" importada
gpg: Número total processado: 1
gpg: importados: 1 (RSA: 1)
leleobhz@tarsila:~$

Invalid bug?

Revision history for this message
bitinerant (bitinerant) wrote :

It seems that the "<urlopen error [Errno -2] Name or service not known>" is given when the Internet connection is down. In my opinion the message is very unclear. In addition, I feel it would be better for add-apt-repository to not add the repository in the event that the corresponding key cannot be retrieved.

Robert Roth (evfool)
Changed in software-properties (Ubuntu):
status: New → In Progress
assignee: nobody → Robert Roth (evfool)
importance: Undecided → Low
Robert Roth (evfool)
Changed in software-properties (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.82.3

---------------
software-properties (0.82.3) precise; urgency=low

  [ Brian Murray ]
  * when adding new repositories use sourceslist.add instead of append thereby
    preventing duplicate entires. Thanks to Nick Russo for the patch.
    LP: #854841

  [ Robert Roth ]
  * Updated expand properties to properly expand the bottom component to avoid
    putting empty space between components. LP: #912557
  * Added symbolic link for add-apt-repository manpage under the
    apt-add-repository name, LP: #620098
  * Changed Revert button mnemonic to avoid collision with Remove, LP: #652523
  * Handle URLError from ppa pages, instruct the user to check the internet
    connection (LP: #502698)

  [ Marc Deslauriers ]
  * SECURITY UPDATE: incorrect ssl certificate validation (LP: #915210)
    - softwareproperties/ppa.py: use pycurl to download the signing key
      fingerprint.
    - tests/test_lp.py: add test.
    - debian/control: add python-pycurl dependency.
    - CVE-2011-4407
  * Wait for PPA GPG key to get imported before ending thread (LP: #888417)
 -- Marc Deslauriers <email address hidden> Fri, 03 Feb 2012 08:16:22 -0500

Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
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.