staging.inyokaproject.org

Repository funktioniert nicht

Status: Ungelöst | Ubuntu-Version: Ubuntu 19.04 (Disco Dingo)
Antworten |

6ix9ine

Anmeldungsdatum:
3. November 2018

Beiträge: Zähle...

Nachdem ich Ubuntu auf 19.04 aktualisiert habe kann ich keine Paketquellen mehr hinzufügen.

Wenn ich im Terminal "sudo add-apt-repository ppa(...)" eingebe lädt es ewig. Mit Strg + C bekomme ich diese Ausgabe:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 136, in <module>
    shortcut = shortcut_handler(line)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 864, in shortcut_handler
    ret = factory(shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 469, in shortcut_handler
    return PPAShortcutHandler(shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 426, in __init__
    info = get_ppa_info(self.shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 380, in get_ppa_info
    ret = get_ppa_info_from_lp(user, ppa)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 110, in get_ppa_info_from_lp
    return get_info_from_lp(lp_url)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 104, in get_info_from_lp
    return get_info_from_https(lp_url, True)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 96, in get_info_from_https
    data = func(lp_url=url, accept_json=accept_json, retry_delays=retry_delays)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 139, in _get_https_content_py3
    cafile=LAUNCHPAD_PPA_CERT)
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 1360, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/usr/lib/python3.7/http/client.py", line 1384, in connect
    super().connect()
  File "/usr/lib/python3.7/http/client.py", line 928, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
KeyboardInterrupt

Gibt es da eine Lösung? Gruß

Moderiert von Taomon:

Dieses Thema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!

mhe

Anmeldungsdatum:
29. Dezember 2007

Beiträge: Zähle...

Sieht aus, als wenn er keine Verbindung aufbauen kann. Hast Du mal versucht (ppa:<LAUNCHPAD-USER>/<PPA-NAME>) http://ppa.launchpad.net/<LAUNCHPAD-USER>/<PPA-NAME>/ im Browser aufzurufen, wird da eine Seite geöffnet?

6ix9ine

(Themenstarter)

Anmeldungsdatum:
3. November 2018

Beiträge: 55

mhe schrieb:

Sieht aus, als wenn er keine Verbindung aufbauen kann. Hast Du mal versucht (ppa:<LAUNCHPAD-USER>/<PPA-NAME>) http://ppa.launchpad.net/<LAUNCHPAD-USER>/<PPA-NAME>/ im Browser aufzurufen, wird da eine Seite geöffnet?

Ja, hab schon mit mehreren ppa's versucht. Gleiche Meldung.

Taomon Team-Icon

Supporter
Avatar von Taomon

Anmeldungsdatum:
30. Januar 2011

Beiträge: 8463

Man sollte das auch zu Fuß machen können. Da gibt es ein Problem in irgendeinem Python Paket.

Du brauchst eine Datei unter /etc/apt/sources.list.d/ Ich hab das grad mit dem wine repo mal gemacht. Beispiel von mir

alex@beelzemon:~/Downloads$ cat /etc/apt/sources.list.d/wine-builds-bionic.list 
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
alex@beelzemon:~/Downloads$ 

wichtig ist die Endung list vom Dateinamen.

Desweiteren brauchst Du den Schlüssel mit dem das Repo signiert ist.

Den mußt Du mit

sudo apt-key add Schlüssel.key

zu den vertrauenswürdigen Schlüssel hinzufügen.

Hat bei mir zumindest so funktioniert.

alex@beelzemon:~/Downloads$ sudo apt update
Holen:1 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease [15,4 kB]
OK:2 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                             
Holen:3 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6.257 B]                                                        
Holen:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]                                                        

Gruß Taomon

Edit doppelt kopiertes gelöscht.

Antworten |