プロバイダーとの互換性を維持するには、この特定のバージョンをubuntu12.10にインストールする必要があります。シナプスを使用してphp5.3.10を簡単にインストールできましたが、5.3.14にアップグレードできませんでした。どうやってやるの ?Apt-getが機能しません...Webでいくつかのtutoを見ましたが、これに固有のものは何もありません。
10418 次
2 に答える
4
パッケージを削除してパージします。
apt-get remove php-apc php5 php5-mysql php5-gd php5-curl libapache2-mod-php5
apt-get autoremove
実行する前に、このコマンドが何をするかを理解しておいてください。
dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge
通常、あまり心配することなく、古いバージョンからソースを追加できます。
/etc/apt/sources.list.d/precise.list
deb http://mirror.rackspace.com/ubuntu/ precise main restricted
deb-src http://mirror.rackspace.com/ubuntu/ precise main restricted
deb http://mirror.rackspace.com/ubuntu/ precise-updates main restricted
deb-src http://mirror.rackspace.com/ubuntu/ precise-updates main restricted
deb http://mirror.rackspace.com/ubuntu/ precise universe
deb-src http://mirror.rackspace.com/ubuntu/ precise universe
deb http://mirror.rackspace.com/ubuntu/ precise-updates universe
deb-src http://mirror.rackspace.com/ubuntu/ precise-updates universe
以下は、広すぎる可能性がありますが、うまくいけば有益な apt 設定ファイルです。
/etc/apt/preferences.d/php_precise
Package: php5
Pin: release a=precise
Pin-Priority: 1001
Package: php*
Pin: release a=precise
Pin-Priority: 1001
Package: php-*
Pin: release a=precise
Pin-Priority: 1001
Package: libapache2-mod-php5
Pin: release a=precise
Pin-Priority: 1001
Package: php5
Pin: release a=precise-updates
Pin-Priority: 1001
Package: php*
Pin: release a=precise-updates
Pin-Priority: 1001
Package: php-*
Pin: release a=precise-updates
Pin-Priority: 1001
Package: libapache2-mod-php5
Pin: release a=precise-updates
Pin-Priority: 1001
更新して変更を確認する
apt-get update
apt-cache policy <package> to check which version will be installed (eg php5)
いくつかのテストを実行します。設定ファイルに追加する必要がある依存関係がある場合があります
apt-get install <everything you removed before>
于 2014-01-30T12:45:03.537 に答える