Debian 6 update php |
Debian 6 update php |
18.11.2015, 20:33:41
Post
#1
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
Cześć!
na wstępie chciałbym zaznaczyć, że jestem dość zielony w tym temacie. potrzebuje zrobić update php do wersji większej niż ktualna: 5.2.17 aptitude update oraz aptitude install php5 nie dają efektu. php -v: PHP 5.2.17 (cli) (built: Nov 28 2011 10:49:32) Copyright © 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright © 1998-2010 Zend Technologies sources.list: #~~~~~~Squeeze~~~~~~# deb http://ftp.pl.debian.org/debian/ squeeze main non-free contrib deb-src http://ftp.pl.debian.org/debian/ squeeze main non-free contrib deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free deb http://ftp.pl.debian.org/debian/ squeeze-updates main non-free contrib deb-src http://ftp.pl.debian.org/debian/ squeeze-updates main non-free contrib deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main mógłby ktoś pomóc? |
|
|
18.11.2015, 20:37:20
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 355 Pomógł: 533 Dołączył: 15.01.2010 Skąd: Bydgoszcz Ostrzeżenie: (0%) |
|
|
|
18.11.2015, 20:40:04
Post
#3
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
dzięki za szybką odp. Od wczoraj wertuje internet, tą stronę także widziałem, nic nie daje.
czy mam dodać tylko squeeze czy mogę inne? Za każdym razem wyskakuje że php jest w najnowszej wersji. |
|
|
18.11.2015, 21:18:27
Post
#4
|
|
Grupa: Zarejestrowani Postów: 1 045 Pomógł: 141 Dołączył: 19.09.2006 Skąd: B-tów Ostrzeżenie: (0%) |
najnowszy powinien być 5.3.3-7+squeeze19 oczywiście dla squeeze
odpal aptitude wciśnij "u" żeby zaktualizować listę jak już wszystko przerobi to wciskasz / i w okienku wpisujesz php5, następnie wciskasz enter oraz n aż znajdzie właściwy pakiet w ostatniej kolumnie będzie dostępna wersja |
|
|
18.11.2015, 21:19:07
Post
#5
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) |
Dla Squeeze jest tylko 5.4
Dodałeś dla swojego distro odpowiednie wpisy ? |
|
|
18.11.2015, 21:24:03
Post
#6
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
@sazian php5 ----------- 5.4.45-1~d - coś tutaj zrobić?
@Pyton_000: niestety nie wiem co to :/ |
|
|
18.11.2015, 21:29:46
Post
#7
|
|
Grupa: Zarejestrowani Postów: 2 355 Pomógł: 533 Dołączył: 15.01.2010 Skąd: Bydgoszcz Ostrzeżenie: (0%) |
Pokaż co wpisujesz po kolei w konsoli, na pewno coś pomijasz.
|
|
|
18.11.2015, 21:30:29
Post
#8
|
|
Grupa: Zarejestrowani Postów: 1 045 Pomógł: 141 Dołączył: 19.09.2006 Skąd: B-tów Ostrzeżenie: (0%) |
gdy masz zaznaczony pakiet który chcesz zaktualizować wciskasz +
wciskasz g pojawi się lista co będzie trzeba zmienić w systemie - co wymaga aktualizacji, co jest do usunięcia, a co trzeba doinstalować jeśli to akceptujesz to jeszcze raz g i czekasz.... |
|
|
18.11.2015, 21:33:15
Post
#9
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) |
sudo apt-get install php5 -V
|
|
|
18.11.2015, 21:37:32
Post
#10
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
sudo apt-get install php5 -V
E: Nie udało się uzyskać blokady /var/lib/dpkg/lock - open (11: Zasoby chwilowo niedostępne) E: Nie udało się zablokować katalogu administracyjnego (/var/lib/dpkg/), czy inny proces go używa? Co robiłem: dodałem wpisy do sources.list: aptitude update aptitude install php5 restart |
|
|
18.11.2015, 21:50:17
Post
#11
|
|
Grupa: Zarejestrowani Postów: 2 355 Pomógł: 533 Dołączył: 15.01.2010 Skąd: Bydgoszcz Ostrzeżenie: (0%) |
A to?
wget https://www.dotdeb.org/dotdeb.gpg sudo apt-key add dotdeb.gpg I dla pewności pokaż zawartość sources.list No i usuń tego locka przede wszystkim. Ten post edytował Damonsson 18.11.2015, 21:52:51 |
|
|
18.11.2015, 21:54:10
Post
#12
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) |
lock jest dla tego że pewnie masz odpalone aptitude Wyłącz wszystko co się instaluje/aktualizuje, wszelkie aptitude itp.
|
|
|
19.11.2015, 12:38:31
Post
#13
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
sudo apt-get install php5 -V
Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe php5 jest już w najnowszej wersji. 0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych. |
|
|
19.11.2015, 12:51:20
Post
#14
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) |
a zapuść jeszcze
sudo apt-get dist-upgrade -V i zobacz co wtedy dostaniesz. Ew. pokaż wynik. |
|
|
19.11.2015, 12:56:30
Post
#15
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
leci:
sudo apt-get dist-upgrade -V Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe Obliczanie aktualizacji...Gotowe 0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych. |
|
|
19.11.2015, 13:06:26
Post
#16
|
|
Grupa: Zarejestrowani Postów: 915 Pomógł: 210 Dołączył: 8.09.2009 Skąd: Tomaszów Lubelski/Wrocław Ostrzeżenie: (0%) |
Kod cat /etc/issue
cat /etc/debian_version cat /etc/apt/sources.list apt-cache show php5 Ten post edytował redeemer 19.11.2015, 13:07:22 -------------------- |
|
|
19.11.2015, 13:13:42
Post
#17
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
cat /etc/issue
Debian GNU/Linux 6.0 \n \l cat /etc/debian_version 6.0.10 cat /etc/apt/sources.list #~~~~~~Squeeze~~~~~~# deb http://ftp.pl.debian.org/debian/ squeeze main non-free contrib deb-src http://ftp.pl.debian.org/debian/ squeeze main non-free contrib deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free deb http://ftp.pl.debian.org/debian/ squeeze-updates main non-free contrib deb-src http://ftp.pl.debian.org/debian/ squeeze-updates main non-free contrib deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all deb http://packages.dotdeb.org squeeze-php54 all deb-src http://packages.dotdeb.org squeeze-php54 all apt-cache show php5 Package: php5 Priority: optional Section: php Installed-Size: 20 Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org> Architecture: all Version: 5.3.3-7+squeeze19 Depends: libapache2-mod-php5 (>= 5.3.3-7+squeeze19) | libapache2-mod-php5filter (>= 5.3.3-7+squeeze19) | php5-cgi (>= 5.3.3-7+squeeze19), php5-common (>= 5.3.3-7+squeeze19) Filename: pool/main/p/php5/php5_5.3.3-7+squeeze19_all.deb Size: 1062 MD5sum: 44fc772cb683ed29f28211c469093ad6 SHA1: 35ae994e2325cbd13d5e35a4a8d59f5b8fba6950 SHA256: 8b0f0dc26389ce5c3d119558df0879d8e1160a3c4654a5697b684df602ff9f1b Description-pl: Osadzony w HTML-u od strony serwera język skryptowy (metapakiet) Ten pakiet jest metapakietem, który gwarantuje, że zostanie zainstalowana co najmniej jedna z trzech serwerowych wersji interpretera PHP5. Usunięcie tego pakietu nie usunie PHP5 z systemu, ale może usunąć pakiety zależne od niego. . PHP5 jest powszechnie używanym i uniwersalnym językiem skryptowym, szczególnie nadającym się do tworzenia aplikacji internetowych z możliwością zagnieżdżania ich w kodzie HTML. Celem języka jest umożliwienie programistom szybkiego pisania dynamicznie generowanych stron internetowych. Ta wersja PHP5 została zbudowana z łatką Suhosin. Homepage: http://www.php.net/ Tag: devel::lang:php, devel::runtime, implemented-in::c, network::server, protocol::http, role::metapackage, role::program, secteam::etch-limited-support, secteam::lenny-limited-support, web::scripting, works-with::software:running, works-with::software:source Package: php5 Status: install ok installed Priority: optional Section: php Installed-Size: 20 Maintainer: Guillaume Plessis <gui@dotdeb.org> Architecture: all Version: 5.4.45-1~dotdeb+6.1 Depends: libapache2-mod-php5 (>= 5.4.45-1~dotdeb+6.1) | libapache2-mod-php5filter (>= 5.4.45-1~dotdeb+6.1) | php5-cgi (>= 5.4.45-1~dotdeb+6.1) | php5-fpm (>= 5.4.45-1~dotdeb+6.1), php5-common (>= 5.4.45-1~dotdeb+6.1) Description: server-side, HTML-embedded scripting language (metapackage) This package is a metapackage that, when installed, guarantees that you have at least one of the four server-side versions of the PHP5 interpreter installed. Removing this package won't remove PHP5 from your system, however it may remove other packages that depend on this one. PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Homepage: http://www.php.net/ |
|
|
19.11.2015, 13:33:00
Post
#18
|
|
Grupa: Zarejestrowani Postów: 915 Pomógł: 210 Dołączył: 8.09.2009 Skąd: Tomaszów Lubelski/Wrocław Ostrzeżenie: (0%) |
No dobra, a:
Może nie restartowałeś apache po upgrade? Ten post edytował redeemer 19.11.2015, 13:33:30 -------------------- |
|
|
19.11.2015, 13:37:15
Post
#19
|
|
Grupa: Zarejestrowani Postów: 71 Pomógł: 2 Dołączył: 25.04.2010 Ostrzeżenie: (0%) |
php --version
PHP 5.2.17 (cli) (built: Nov 28 2011 10:49:32) Copyright © 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright © 1998-2010 Zend Technologies wcześniej restartowałem teraz np mam: Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. failed! jak robię netstat -ltnp | grep ':80' potem kill to nic nie daje |
|
|
19.11.2015, 13:46:43
Post
#20
|
|
Grupa: Zarejestrowani Postów: 915 Pomógł: 210 Dołączył: 8.09.2009 Skąd: Tomaszów Lubelski/Wrocław Ostrzeżenie: (0%) |
Błąd z apache narazie pomijam. Nie instalowałeś wcześniej tego PHP nie z repo a np. ze źródeł?
Kod dpkg -l | grep php find może trochę potrwać
find / -name "php" -executable -------------------- |
|
|
Wersja Lo-Fi | Aktualny czas: 22.09.2024 - 23:54 |