installing self hosted landscape, ppa:landscape/self-hosted-24.04 does not attach

Asked by Rod McCown

root@tntappp45024:~# add-apt-repository -y ppa:landscape/self-hosted-24.04
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 347, in main
    shortcut = handler(source, **shortcut_params)
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
    return handler(shortcut, **kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__
    if self.lpppa.publish_debug_symbols:
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
    self._lpteam = self.lp.people(self.teamname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
    self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
    return cls(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
    response, content = self._request_and_retry(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
    response, content = self._connection.request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1725, in request
    (response, content) = self._request(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
    response, content = super(LaunchpadOAuthAwareHttp, self)._request(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
    return super(RestfulHttp, self)._request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request
    conn.connect()
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1153, in connect
    sock.connect((self.host, self.port))
TimeoutError: [Errno 110] Connection timed out

Unable to install Landscape server.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

"Connection timed out" can be caused by a temporary network problem. Have you tried again and do you repeatedly receive the same error?

Revision history for this message
Rod McCown (rodmccown) said :
#2

I just tried what is in the install doc:
root@tntappp45024:/etc/apt/sources.list.d# add-apt-repository ppa:landscape/24.04
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 347, in main
    shortcut = handler(source, **shortcut_params)
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
    return handler(shortcut, **kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__
    if self.lpppa.publish_debug_symbols:
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
    self._lpteam = self.lp.people(self.teamname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
    self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
    return cls(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
    response, content = self._request_and_retry(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
    response, content = self._connection.request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1725, in request
    (response, content) = self._request(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
    response, content = super(LaunchpadOAuthAwareHttp, self)._request(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
    return super(RestfulHttp, self)._request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request
    conn.connect()
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1153, in connect
    sock.connect((self.host, self.port))
TimeoutError: [Errno 110] Connection timed out
root@tntappp45024:/etc/apt/sources.list.d#
I copied the /etc/apt/sources.list.d/landscape-ubuntu-self-hosted-24_04-jammy.list from the lab/dev/test that we successfully installed.......and then ran "apt update" and got this error:
root@tntappp45024:/etc/apt/sources.list.d# apt update
Hit:1 http://tntappp35991.dfwd1.aa.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:2 http://tntappp35991.dfwd1.aa.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://tntappp35991.dfwd1.aa.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://tntappp35991.dfwd1.aa.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy InRelease
Ign:5 https://packages.aa.com/artifactory/debian-thirdparty-ae jammy InRelease
Ign:6 https://packages.aa.com/artifactory/debian-thirdparty-ae debian InRelease
Hit:7 https://packages.aa.com/artifactory/debian-thirdparty-ae jammy Release
Hit:8 https://packages.aa.com/artifactory/debian-thirdparty-ae debian Release
Ign:9 https://packages.aa.com/artifactory/debian-thirdparty-ae jammy Release.gpg
Ign:10 https://packages.aa.com/artifactory/debian-thirdparty-ae debian Release.gpg
Get:11 https://ppa.launchpadcontent.net/landscape/self-hosted-24.04/ubuntu jammy InRelease [18.3 kB]
Err:11 https://ppa.launchpadcontent.net/landscape/self-hosted-24.04/ubuntu jammy InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7340EF02FE30EDD8 NO_PUBKEY 6E85A86E4652B4E6
Reading package lists... Done
W: GPG error: https://ppa.launchpadcontent.net/landscape/self-hosted-24.04/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7340EF02FE30EDD8 NO_PUBKEY 6E85A86E4652B4E6
E: The repository 'https://ppa.launchpadcontent.net/landscape/self-hosted-24.04/ubuntu jammy InRelease' is not 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.

Am I needing a step to get gpg-keys to that repo?

Then I had a thought:

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

In addition to the /etc/apt/sources.list.d/landscape-ubuntu-self-hosted-24_04-jammy.list file you also need to copy /etc/apt/trusted.gpg.d/landscape-ubuntu-self-hosted-24_04.gpg (and correctly set its protection settings)

Revision history for this message
Rod McCown (rodmccown) said :
#4

That seemed to work. It's now running the "DEBIAN_FRONTEND=noninteractive apt-get install -y landscape-server-quickstart"