我希望我来对地方了。
我正在运行新鲜 Debian 9(拉伸)系统。我正在尝试安装PHP7.2(从OndřejSurý存储库中)。在开始之前,我做了必要的$matricule = $_POST['matricule'];
$absent=$_POST['absent'];
for ($i=0; $i<sizeof($matricule); $i++)
{
if($absent[$i]=='absent')
{
$status='absent';
}else{
$status='present';
}
$query = "INSERT INTO exam_status (student_matricule,status) VALUES ('". $matricule[$i] . "','". $status . "')";
$result=mysqli_query($conn,$query);
}
。然后,我按照Christopher Shaw's site上的说明进行操作:
sudo apt-get update
然后我又做了一个 sudo apt-get install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
之后,我着手研究事情sudo apt-get update
,然后问题开始了。输出如下:
sudo apt-get install php7.2
我搜索并搜索并没有发现与该问题有关的所有信息。 ing打了近一个小时后,我尝试了..
(( -- successful stuff snipped -- ))
Processing triggers for man-db (2.7.6.1-2) ...
Setting up php7.2-common (7.2.7-1+0~20180622080745.23+stretch~1.gbpfd8e2e) ...
touch: cannot touch '/var/lib/php/modules/7.2/apache2/enabled_by_maint/calendar': No such file or directory
dpkg: error processing package php7.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php7.2-readline:
php7.2-readline depends on php7.2-common (= 7.2.7-1+0~20180622080745.23+stretch~1.gbpfd8e2e); however:
Package php7.2-common is not configured yet.
dpkg: error processing package php7.2-readline (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.2:
php7.2 depends on php7.2-common; however:
Package php7.2-common is not configured yet.
dpkg: error processing package php7.2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.2-cli:
php7.2-cli depends on php7.2-common (= 7.2.7-1+0~20180622080745.23+stretch~1.gbpfd8e2e); however:
Package php7.2-common is not configured yet.
php7.2-cli depends on php7.2-readline; however:
Package php7.2-readline is not configured yet.
dpkg: error processing package php7.2-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.2-json:
php7.2-json depends on php7.2-common (= 7.2.7-1+0~20180622080745.23+stretch~1.gbpfd8e2e); however:
Package php7.2-common is not configured yet.
dpkg: error processing package php7.2-json (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php7.2:
libapache2-mod-php7.2 depends on php7.2-cli; however:
Package php7.2-cli is not configured yet.
libapache2-mod-php7.2 depends on php7.2-common (= 7.2.7-1+0~20180622080745.23+stretch~1.gbpfd8e2e); however:
Package php7.2-common is not configured yet.
libapache2-mod-php7.2 depends on php7.2-json; however:
Package php7.2-json is not configured yet.
dpkg: error processing package libapache2-mod-php7.2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.2-opcache:
php7.2-opcache depends on php7.2-common (= 7.2.7-1+0~20180622080745.23+stretch~1.gbpfd8e2e); however:
Package php7.2-common is not configured yet.
dpkg: error processing package php7.2-opcache (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php7.2-common
php7.2-readline
php7.2
php7.2-cli
php7.2-json
libapache2-mod-php7.2
php7.2-opcache
E: Sub-process /usr/bin/dpkg returned an error code (1)
~$
...然后再次尝试该过程。不高兴。
我严重死于水中,完全茫然。有谁知道什么地方出了问题或接下来我可以尝试什么?
谢谢!