Erro ao adicionar repositório Ubuntu 12.04

1. Erro ao adicionar repositório Ubuntu 12.04

Natanael Lima
naellimatorres

(usa Ubuntu)

Enviado em 04/10/2012 - 10:40h

OLa pessoal,

ja pesquisei em vários locais sobre este problema que esta acontecendo comigo,
mas em nenhum dos locais onde pesquisei consegui obter êxito,

bem fiz uma nova instalação do ubuntu 12.04 64b em minha máquina,
e quando tento adicionar qualquer repositório via linha aparece o seguinte erro:

root@STR01TIN01:/home/natanael# add-apt-repository ppa:tualatrix/next
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")

tentei adicionar manualmente pelo canal de software e tambem não aparece.

se alguem souber da uma help ai...


  


2. Re: Erro ao adicionar repositório Ubuntu 12.04

Perfil removido
removido

(usa Nenhuma)

Enviado em 04/10/2012 - 11:24h

Aparentemente seu DNS não resolveu o endereço do site....

teste seu DNS com:

# dig launchpad.net/

Essa inclusão de repositório é feita somente pelo root com
sudo ou su.

Se quiser fazer na mão mesmo edite /etc/apt/sources.list

deb http://ppa.launchpad.net/tualatrix/next/ubuntu precise main
deb-src http://ppa.launchpad.net/tualatrix/next/ubuntu precise main

A chave publica está aqui

http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x6AF0E1940624A220





3. Re: Erro ao adicionar repositório Ubuntu 12.04

Natanael Lima
naellimatorres

(usa Ubuntu)

Enviado em 04/10/2012 - 11:54h

kyetoy fiz o que você indicou:

root@STR01TIN01:/etc/apt# dig launchpad.net/

; <<>> DiG 9.8.1-P1 <<>> launchpad.net/
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 22126
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;launchpad.net/. IN A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 4 11:50:34 2012
;; MSG SIZE rcvd: 32


e tambem adicionei no /etc/apt/sources.list

deb http://ppa.launchpad.net/tualatrix/next/ubuntu precise main
deb-src http://ppa.launchpad.net/tualatrix/next/ubuntu precise main

inseri as chaves :

# gpg --keyserver hkp://subkeys.pgp.net --recv-keys 6AF0E1940624A220
gpg: requisitando chave 0624A220 de servidor hkp - subkeys.pgp.net
gpg: chave 0624A220: "Launchpad PPA for TualatriX"
gpg: Número total processado: 1
gpg: não modificados: 1

depois:

# sudo gpg --export --armor D530E028F59EAE4D | sudo apt-key add -
gpg: AVISO: nada exportado
gpg: nenhum dado OpenPGP válido encontrado.


nao sei se fiz da forma correta mas continuou da mesma forma:

# add-apt-repository ppa:tualatrix/next
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")

será que fiz errado?


4. Re: Erro ao adicionar repositório Ubuntu 12.04

Perfil removido
removido

(usa Nenhuma)

Enviado em 04/10/2012 - 14:13h

Velho teu DNS tá apontando para 127.0.0.1

dá uma olhada no teu /etc/resolv.conf

olha como seria uma saida certa

root@positivo:~# dig launchpad.net/

; <<>> DiG 9.7.3 <<>> launchpad.net/
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 3066
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;launchpad.net/. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2012100400 1800 900 604800 86400

;; Query time: 175 msec
;; SERVER: 192.168.100.2#53(192.168.100.2)
;; WHEN: Thu Oct 4 14:12:20 2012
;; MSG SIZE rcvd: 107

root@positivo:~#



5. Re: Erro ao adicionar repositório Ubuntu 12.04

Natanael Lima
naellimatorres

(usa Ubuntu)

Enviado em 04/10/2012 - 16:55h

rapaz o negócio esta sério, rsrs,
fiz como você falou, mudei o dns no arquivo /etc/resolv.conf

realmente estava apontado para o local host

arrumei e ficou assim:

# dig launchpad.net

; <<>> DiG 9.8.1-P1 <<>> launchpad.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14532
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;launchpad.net. IN A

;; ANSWER SECTION:
launchpad.net. 22 IN A 91.189.89.222
launchpad.net. 22 IN A 91.189.89.223

;; AUTHORITY SECTION:
launchpad.net. 134535 IN NS ns2.canonical.com.
launchpad.net. 134535 IN NS ns1.canonical.com.
launchpad.net. 134535 IN NS ns3.canonical.com.

;; ADDITIONAL SECTION:
ns1.canonical.com. 172749 IN A 91.189.94.173
ns2.canonical.com. 172749 IN A 91.189.95.3
ns3.canonical.com. 172749 IN A 209.6.3.210

;; Query time: 0 msec
;; SERVER: 192.168.0.254#53(192.168.0.254)
;; WHEN: Thu Oct 4 16:50:10 2012
;; MSG SIZE rcvd: 178




# add-apt-repository ppa:webupd8team/java
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (7, "couldn't connect to host")



porem ao fazer um novo teste me apresentou o mesmo erro, olhei em meu servidor de firewall (NETTION)
e liberei meu mac por via das dúvidas, mas tambem não resolvel, notei que a última linha do
erro mudou talvez porque o repositório seja outro, não sei ao certo.





6. Adicionar repositorio do ubuntu no linux mint [resolvido]

TWA
vathi

(usa Outra)

Enviado em 20/10/2013 - 15:10h

Abra a sources.list como root em : /etc/apt/sources.list . e adicione as seguintes linhas :


#deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)]/ saucy main restricted

#deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)]/.Trashes/501/ saucy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ saucy universe
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy universe
deb http://br.archive.ubuntu.com/ubuntu/ saucy-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ saucy multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy multiverse
deb http://br.archive.ubuntu.com/ubuntu/ saucy-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu saucy-security main restricted
deb-src http://security.ubuntu.com/ubuntu saucy-security main restricted
deb http://security.ubuntu.com/ubuntu saucy-security universe
deb-src http://security.ubuntu.com/ubuntu saucy-security universe
deb http://security.ubuntu.com/ubuntu saucy-security multiverse
deb-src http://security.ubuntu.com/ubuntu saucy-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu saucy partner
# deb-src http://archive.canonical.com/ubuntu saucy partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu saucy main
deb-src http://extras.ubuntu.com/ubuntu saucy main


Salve o arquivo é execute :

apt-get update


E você terá erros de chaves PGP parecidos como este :

W: Erro GPG: http://security.ubuntu.security.com sid InRelease: As seguintes assinaturas não puderam ser verificadas porque a chave pública não está disponível: NO_PUBKEY AED4B06F473041FA

, bom agora é o seguinte digite o siguinte comando :

sudo apt-get install debian-archive-keyring

Logo apos isso , digite o o comando :

sudo apt-key adv --keyserver subkeys.pgp.net --recv-keys (aqui voce ira por o valor da chave que esta dando problema exemplo )

sudo apt-key adv --keyserver subkeys.pgp.net --recv-keys AED4B06F473041FA

é pronto basta da um update é depois um upgrade , gracias papa :) kkkk







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts