Debian 9 OSがVBで動作するプロジェクト用のワークスペースを準備するために、いくつかのパッケージをインストールする必要があります。私の命令があります。次、Debian 9:php5パッケージがインストールされていません
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
で次のようにやった、
----------------------------------------------------------------------
The following Debian 8 packages are required to run [X-Product]:
sudo apt-get install exim4 ntp pwgen curl php5-dev php-pear pkg-config nmap libzmq3 libzmq3-dev libapache2-mod-php5 apache2 percona-server-server-5.6 php5-cli php5-mysql php5-curl php5-intl daemontools-run oracle-java8-installer ant ruby-compass libtool-bin
----------------------------------------------------------------------
私は、コマンドを実行すると、私は次の端末のスタックを取得し、
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
私は、インターネット上でいくつかの研究を行なったし
それは私を助けません。これを修正するには何が必要ですか?私が提供する答えの指示に従っ、問題はまだ解決されていない私はphp version
を参照してくださいカントのように私は sudo apt-get install php5.6
注意を頼めば、私は、Debianについてほとんど知識を持っています
それは
、PHP
バージョンを探すために、端末内に
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php5.6-json' for regex 'php5.6'
Note, selecting 'php5.6-common' for regex 'php5.6'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
を印刷します
sudo php -v
それは、端末に出力し、私はそれを実行した場合
sudo apt-get install php5-dev I get error E: Unable to locate package php5-dev
しかし、コマンド sudo apt-get install php-dev
よう
sudo: php: command not found
詳細情報は、コマンド dpkg -l | grep php| awk '{print $2}' |tr "\n" " "
成功
です値を返します。
私はhvae php7がインストールされ、他の操作をブロックしているということですか?
dh-php php-cli php-common php-dev php-gd php-pear php-xml php7.0-cli php7.0-common php7.0-dev php7.0-gd php7.0-json php7.0-opcache php7.0-readline php7.0-xml pkg-php-tools
いいえ、私が持っているまだ 'echo'コマンドはエラー、' bashのを返す – Arefe