apt-get은 oldstable 소스에서 최신 PHP 5.4를 설치하지 않습니다.

apt-get은 oldstable 소스에서 최신 PHP 5.4를 설치하지 않습니다.

13.04를 실행하는 두 대의 서버가 있는데 어느 시점에 다음을 추가했습니다.oldstable 패키지 소스PHP 5.4용. 어떤 이유로든 더 이상 업데이트할 수 없습니다. 한 서버는 5.4.23에서 5.4.24로 업그레이드되지 않고, 다른 서버는 몇 번의 문제 해결 제거 후에 기본 패키지 소스의 5.4.9에서 멈춰 있습니다. .

한 서버에 설치된 올바른 버전은 다음과 같습니다.

PHP 5.4.23-1+sury.org~raring+1 (cli) (built: Dec 12 2013 09:25:05)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

다른 서버에서 내가 한 일은 다음과 같습니다.

# add-apt-repository ppa:ondrej/php5-oldstable
# apt-get update && apt-get upgrade

하지만 이전 버전을 얻습니다.

# php -v
PHP 5.4.9-4ubuntu2.4 (cli) (built: Dec 12 2013 04:29:20)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

나는 이미 을 apt-get remove php* --purge한 다음 을 했지만 apt-get install php5주사위는 없었습니다. 이로 인해 5.4.23에서 5.4.9로 내려갔습니다.


설치해야 할 올바른 선택 사항은 다음과 같습니다.

# dpkg --get-selections | grep php
libapache2-mod-php5         install
php-apc                     install
php-pear                    install
php5                        install
php5-cli                    install
php5-common                 install
php5-curl                   install
php5-gd                     install
php5-imagick                install
php5-mysql                  install

캐시에는 PPA도 표시되지 않습니다.

# apt-cache policy php5
php5:
  Installed: 5.4.9-4ubuntu2.4
  Candidate: 5.4.9-4ubuntu2.4
  Version table:
 *** 5.4.9-4ubuntu2.4 0
        500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ raring-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ raring-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.9-4ubuntu2 0
        500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages

답변1

원하는 패키지를 설치할 수 없는 이유는 해당 패키지가 추가한 PPA에 더 이상 없기 때문입니다. 희귀용 php5 5.4.23-1+sury.org가 PPA에서 제거되었습니다.

2013년 12월 16일 PPA의 모습은 다음과 같습니다.http://web.archive.org/web/20131216111917/https://launchpad.net/~ondrej/+archive/php5-oldstable

그 당시 PPA에 php5용 희귀 패키지가 있었다는 것을 알 수 있습니다. 이것이 다른 서버에 설치된 것입니다. 오늘 보시면 그 패키지는 없습니다. Ubuntu는 설치된 패키지를 제거하지 않습니다. 따라서 다른 서버에는 여전히 해당 정보가 있습니다.

PPA에서 해당 패키지를 제거하는 이유는 아마도 Ubuntu 13.04의 지원이 부족하기 때문일 것입니다. 1월부터 업데이트 수신이 중단되었습니다. 아직 13.04를 사용 중인 사람은 13.10으로 업그레이드해야 합니다.

관련 정보