Portál AbcLinuxu, 12. května 2025 11:38

Dotaz: Apache nenačte mysql - nejde instanou modul

24.5.2011 00:31 lopikol
Apache nenačte mysql - nejde instanou modul
Přečteno: 483×
Odpovědět | Admin
Mysql už mám na serveru, ale ne ten modul (.so) pro php. do příkazové řádky jako root dám apt-get install php5-mysql, ale hodí to error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  php5-mysql
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 76.8 kB of archives.
After this operation, 299 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  php5-mysql
Install these packages without verification [y/N]? y
Err http://security.debian.org/ squeeze/updates/main php5-mysql amd64 5.3.3-7+squeeze1
  Could not resolve 'security.debiaFailReason: ResolveFailure
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mysql_5.3.3-7+squeeze1_amd64.deb  Could not resolve 'security.debiaFailReason: ResolveFailure
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

24.5.2011 07:07 Jirka
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Odpovědět | | Sbalit | Link | Blokovat | Admin
Zkusils prikazy co ti navrhuje provest (na posledni radce)?
24.5.2011 07:32 lopikol
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Když dám apt-get update
Err http://ftp.cz.debian.org squeeze Release.gpg
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org/debian/ squeeze/main Translation-en
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org squeeze-updates Release.gpg
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org/debian/ squeeze-updates/contrib Translation-en
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://security.debian.org squeeze/updates Release.gpg
  Could not resolve 'security.debiaFailReason: ResolveFailure
Err http://security.debian.org/ squeeze/updates/contrib Translation-en
  Could not resolve 'security.debiaFailReason: ResolveFailure
Err http://security.debian.org/ squeeze/updates/main Translation-en
  Could not resolve 'security.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org/debian/ squeeze-updates/main Translation-en
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 DVD Binary-1 20110322-16:05] squeeze Release.gpg
Ign http://security.debian.org squeeze/updates Release
Ign http://ftp.cz.debian.org squeeze Release
Ign http://ftp.cz.debian.org squeeze-updates Release
Ign http://security.debian.org squeeze/updates/main Sources/DiffIndex
Ign http://security.debian.org squeeze/updates/contrib Sources/DiffIndex
Ign http://security.debian.org squeeze/updates/main amd64 Packages/DiffIndex
Ign http://security.debian.org squeeze/updates/contrib amd64 Packages/DiffIndex
Ign http://ftp.cz.debian.org squeeze/main Sources/DiffIndex
Ign http://ftp.cz.debian.org squeeze/main amd64 Packages/DiffIndex
Err http://security.debian.org squeeze/updates/main Sources
  Could not resolve 'security.debiaFailReason: ResolveFailure
Err http://security.debian.org squeeze/updates/contrib Sources
  Could not resolve 'security.debiaFailReason: ResolveFailure
Err http://security.debian.org squeeze/updates/main amd64 Packages
  Could not resolve 'security.debiaFailReason: ResolveFailure
Ign http://ftp.cz.debian.org squeeze-updates/main Sources/DiffIndex
Ign http://ftp.cz.debian.org squeeze-updates/contrib Sources/DiffIndex
Ign http://ftp.cz.debian.org squeeze-updates/main amd64 Packages/DiffIndex
Ign http://ftp.cz.debian.org squeeze-updates/contrib amd64 Packages/DiffIndex
Err http://ftp.cz.debian.org squeeze/main Sources
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://security.debian.org squeeze/updates/contrib amd64 Packages
  Could not resolve 'security.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org squeeze/main amd64 Packages
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org squeeze-updates/main Sources
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org squeeze-updates/contrib Sources
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org squeeze-updates/main amd64 Packages
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Err http://ftp.cz.debian.org squeeze-updates/contrib amd64 Packages
  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 DVD Binary-1 20110322-16:05]/ squeeze/contrib Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 DVD Binary-1 20110322-16:05]/ squeeze/main Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 DVD Binary-1 20110322-16:05] squeeze Release
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 DVD Binary-1 20110322-16:05] squeeze/contrib amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 DVD Binary-1 20110322-16:05] squeeze/main amd64 Packages/DiffIndex
W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze/Release.gpg  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze/main/i18n/Translation-en.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release.gpg  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/contrib/i18n/Translation-en.gz  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en.gz  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/Release.gpg  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/contrib/i18n/Translation-en.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/source/Sources.gz  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/contrib/source/Sources.gz  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/binary-amd64/Packages.gz  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/contrib/binary-amd64/Packages.gz  Could not resolve 'security.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze/main/source/Sources.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze/main/binary-amd64/Packages.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/main/source/Sources.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/contrib/source/Sources.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/main/binary-amd64/Packages.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

W: Failed to fetch http://ftp.cz.debian.org/debian/dists/squeeze-updates/contrib/binary-amd64/Packages.gz  Could not resolve 'ftp.cz.debiaFailReason: ResolveFailure

E: Some index files failed to download, they have been ignored, or old ones used instead.
Pokud použiju apt-get install php-mysql --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-mysql
MMMMMMMMM avatar 24.5.2011 08:31 MMMMMMMMM | skóre: 44 | blog: unstable | Valašsko :-)
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Máte správně nastaven DNS server? Zdá se mi, že nedokáže přeložit hostname ftp.cz.debian.org na IP adresu. Co zkusit zadat třeba ping www.seznam.cz?
24.5.2011 09:41 lopikol
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Výsledek:
ping: unknown host www.seznam.cz
MMMMMMMMM avatar 24.5.2011 09:46 MMMMMMMMM | skóre: 44 | blog: unstable | Valašsko :-)
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Takže musíte nastavit DNS server. Nejsem Debianista, ale mohlo by pomoci hodit nějaký do /etc/resolv.conf, například veřejný Google DNS nebo prostě nějaký od ISP:

nameserver 8.8.8.8
24.5.2011 10:08 lopikol
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Mám tam toto:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        network 192.168.0.138
        nameserver 192.168.0.138
192.168.0.2 to je ip serveru 192.168.0.138 to je ip modemu

V pc kde mám windows používám taky jen tyto ip (samozřejmě ip pc je jiná), ale jde to jak má. Co se týče DNS serverů, tak ty mám v modemu nastaveny na google.
Heron avatar 24.5.2011 10:27 Heron | skóre: 53 | blog: root_at_heron | Olomouc
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Nic nepokazíte, pokud si ty DNS servery googlu (8.8.8.8 a 8.8.4.4) zadáte přímo do toho Debianu.
24.5.2011 10:54 lopikol
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
ok, ale i tak mi to je k ničemu, jelikož stále ping na seznam nejde
Heron avatar 24.5.2011 10:59 Heron | skóre: 53 | blog: root_at_heron | Olomouc
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
A jinak síť v tom debianu normálně funguje? Ping na nějaké IP v internetu, třeba zrovna ten seznam (77.75.76.3), případně na dns googlu projde? Pokud ne, co ukáže traceroute, kde se to zastaví.
24.5.2011 11:02 lopikol
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
když dám ping na 77.75.76.3, tak výsledek je:
connect: Network is unreachable
Řešení 1× (MMMMMMMMM)
Heron avatar 24.5.2011 11:18 Heron | skóre: 53 | blog: root_at_heron | Olomouc
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul

Aha, ten soubor interfaces je poněkud špatně. Chybí tam výchozí brána.

Předpokládám, že toto

network 192.168.0.138

mělo být spíše

gateway 192.168.0.138
network 192.168.0.0
Heron avatar 24.5.2011 11:19 Heron | skóre: 53 | blog: root_at_heron | Olomouc
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
A potom zrestartovat síť (nebo celý stroj).
24.5.2011 11:35 NN
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
Restovat cely stroj je zbytecne, staci:
./etc/init.d/networking restart &
nebo
ifdown eth0
ifup eth0
NN
24.5.2011 11:35 lopikol
Rozbalit Rozbalit vše Re: Apache nenačte mysql - nejde instanou modul
moc děkuji. Už to jede ;)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.