Zamknięty przez: Xed 2008-11-15, 21:39 |
Problem 'Temporary failure resolving' podczas instalacji |
Autor |
Wiadomość |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-14, 22:45 Problem 'Temporary failure resolving' podczas instalacji
|
|
|
Witam,
Chcę sobie na moim VPS'ie zainstalować mysql+php+apache.
Jednak wystąpił problem,podczas wpisania komendy:
'apt-get install mysql-server mysql-client''
Otrzymuję komunikat:
Err http://ftp.se.debian.org etch/main mysql-common 5.0.32-7etch1
Temporary failure resolving 'ftp.se.debian.org'
Jaka może być tego przyczyna i jak temu zaradzić?
Czekam na wasze odpowiedzi.
Pozdrawiam. |
Ostatnio zmieniony przez starsky 2008-11-14, 22:45, w całości zmieniany 1 raz |
|
|
|
 |
Maciek_Rutecki
Administrator
JID: [email protected]
Pomógł: 39 razy Dołączył: 07 Cze 2005 Posty: 2959
|
Wysłany: 2008-11-15, 09:13
|
|
|
A najlepiej zmienić mirror, nie najprościej z polskich korzystać?
Z Debiana Etch:
Kod: | deb http://ftp.pl.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ etch main contrib non-free
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib |
|
_________________ Maciek
http://www.maciek.unixy.pl |
|
|
|
 |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-15, 10:28
|
|
|
Dziękuję Ci bardzo za odpowiedź tylko że nie bardzo wiem co z tym zrobić.
Z góry dziękuję za pomoc. |
|
|
|
 |
Maciek_Rutecki
Administrator
JID: [email protected]
Pomógł: 39 razy Dołączył: 07 Cze 2005 Posty: 2959
|
Wysłany: 2008-11-15, 11:46
|
|
|
starsky napisał/a: | Dziękuję Ci bardzo za odpowiedź tylko że nie bardzo wiem co z tym zrobić. |
Chyba polecenia "ping" i "host" wyjaśniać nie muszę.
Co do polskich repozytoriów, to zajrzyj do /etc/apt/sources.list |
_________________ Maciek
http://www.maciek.unixy.pl |
|
|
|
 |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-15, 11:55
|
|
|
|
|
|
|
 |
Maciek_Rutecki
Administrator
JID: [email protected]
Pomógł: 39 razy Dołączył: 07 Cze 2005 Posty: 2959
|
Wysłany: 2008-11-15, 12:20
|
|
|
starsky napisał/a: | Kod:
starsky:~# host ftp.se.debian.org
-bash: host: command not found |
Potrzebujesz któregoś z tych dwóch pakietów: bind9-host, host. Dziwne, że go nie masz, to by oznaczało błędną instalacje (mało prawdopodobne), bądź usunięcie programu lub pakietu z tym programem (dostępny na stronie packages.debian.org). Brak "host" może powodować, że nie można zainstalować innych pakietów. |
_________________ Maciek
http://www.maciek.unixy.pl |
|
|
|
 |
olka
Pomogła: 3 razy Dołączyła: 28 Gru 2005 Posty: 238
|
Wysłany: 2008-11-15, 12:25
|
|
|
Maciek_Rutecki napisał/a: | Brak "host" może powodować, że nie można zainstalować innych pakietów. |
u mnie działa - tj.mozna wszystko instalować, a też mam brak. |
_________________ "(..)pod lodowatym pancerzem, za którym czasem kryją się ludzie, bije gorące serce" Paulo Coelho |
|
|
|
 |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-15, 12:29
|
|
|
Hm,nie mogę naleźć tych pakietów.. |
|
|
|
 |
Xed
Administrator
Pomógł: 18 razy Dołączył: 07 Cze 2005 Posty: 567
|
Wysłany: 2008-11-15, 12:33
|
|
|
tak z ciekawości pokaż resolv.conf:
Kod: |
cat /etc/resolv.conf
|
edytuj /etc/apt/sources.list i zamień każdy fragment:
na
i na koniec (bezposrednio z roota czy tam przez sudo):
btw: po edycji sources.list pokaż nam całą zawartość |
|
|
|
 |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-15, 12:40
|
|
|
resolv.conf:
Kod: | nameserver 192.168.0.4 |
/etc/apt/sources.list
Kod: |
deb http://ftp.pl.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ etch main contrib non-free
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib |
aptitude update
Kod: | Err http://ftp.pl.debian.org etch Release.gpg
Temporary failure resolving 'ftp.pl.debian.org'
Err http://security.debian.org etch/updates Release.gpg
Temporary failure resolving 'security.debian.org'
Reading package lists... Done
W: Couldn't stat source package list http://ftp.pl.debian.org etch/main Packages (/var/lib/apt/lists/ftp.pl.debian.org_debian_dists_etch_main_binary-i386_Packag es) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.pl.debian.org etch/contrib Packa ges (/var/lib/apt/lists/ftp.pl.debian.org_debian_dists_etch_contrib_binary-i386_ Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.pl.debian.org etch/non-free Pack ages (/var/lib/apt/lists/ftp.pl.debian.org_debian_dists_etch_non-free_binary-i38 6_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/mai n Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_binar y-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/con trib Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_contrib _binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.pl.debian.org etch/main Packages (/var/lib/apt/lists/ftp.pl.debian.org_debian_dists_etch_main_binary-i386_Packag es) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.pl.debian.org etch/contrib Packa ges (/var/lib/apt/lists/ftp.pl.debian.org_debian_dists_etch_contrib_binary-i386_ Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.pl.debian.org etch/non-free Pack ages (/var/lib/apt/lists/ftp.pl.debian.org_debian_dists_etch_non-free_binary-i38 6_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/mai n Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_binar y-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/con trib Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_contrib _binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
|
|
|
|
|
 |
Xed
Administrator
Pomógł: 18 razy Dołączył: 07 Cze 2005 Posty: 567
|
Wysłany: 2008-11-15, 12:42
|
|
|
dopisz na początek do resolv.conf:
Kod: |
nameserver 208.67.222.222
|
i jeszcze raz:
|
|
|
|
 |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-15, 12:45
|
|
|
Kod: |
starsky:~# aptitude update
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://security.debian.org etch/updates Release [37.6kB]
Get:3 http://security.debian.org etch/updates/main Packages [375kB]
Get:4 http://ftp.pl.debian.org etch Release.gpg [386B]
Get:5 http://security.debian.org etch/updates/contrib Packages [8934B]
Get:6 http://security.debian.org etch/updates/main Sources [56.7kB]
Get:7 http://ftp.pl.debian.org etch Release [58.2kB]
Get:8 http://security.debian.org etch/updates/contrib Sources [1283B]
Get:9 http://ftp.pl.debian.org etch/main Packages [5624kB]
Get:10 http://ftp.pl.debian.org etch/contrib Packages [71.2kB]
Get:11 http://ftp.pl.debian.org etch/non-free Packages [102kB]
Get:12 http://ftp.pl.debian.org etch/main Sources [1656kB]
Get:13 http://ftp.pl.debian.org etch/contrib Sources [21.0kB]
Get:14 http://ftp.pl.debian.org etch/non-free Sources [33.1kB]
Fetched 8047kB in 6s (1222kB/s)
Reading package lists... Done
|
|
|
|
|
 |
Xed
Administrator
Pomógł: 18 razy Dołączył: 07 Cze 2005 Posty: 567
|
Wysłany: 2008-11-15, 12:47
|
|
|
Czyli teraz ok - możesz instalować 'mysql-server mysql-client" i co tam jeszcze.
Teraz moje pytanie takie, co to za 'nameserver 192.168.0.4' w resolv.conf - jakiś twój prywatny dns ? W spadku po dhclient ten adres ? |
|
|
|
 |
starsky
Dołączył: 14 Lis 2008 Posty: 12
|
Wysłany: 2008-11-15, 12:49
|
|
|
Nie wiem wogoóle co to jest,domyślnie tam był.
VPS'a kupiłem w http://cheapvps.co.uk/
Bardzo dziękuję wszystkim za profesonalną pomoc :* |
|
|
|
 |
Xed
Administrator
Pomógł: 18 razy Dołączył: 07 Cze 2005 Posty: 567
|
Wysłany: 2008-11-15, 12:53
|
|
|
starsky napisał/a: | Nie wiem wogoóle co to jest,domyślnie tam był.
VPS'a kupiłem
|
aaa, no tak niedoczytałem w pierwszym twoim poście |
|
|
|
 |
|