由于错误而试图执行'apt-get install php5-curl'
以下软件包具有未满足的依赖性: php5-curl:取决于:php5-common(= 5.6.33 + dfsg-0 + deb8u1)但要安装5.6.40 + dfsg-0 + deb8u8
任何想法如何解决此问题?
答案 0 :(得分:0)
到目前为止,PHP 5一直是officially unsupported for over a year-我认为您将努力解决依赖关系。甚至Jessie(您似乎正在使用的the only version still shipping PHP 5 by default)也变成了unsupported within a few months of now。
您最好的长期计划是计划代码的升级以使其与PHP 7.4兼容
答案 1 :(得分:0)
因为您的`sources.list'上的安全性存储库丢失/禁用。
php5-curl
在安全性存储库中可用。
您应将以下行添加到const handleSubmit = data => { // rename "values" by "data" here
api.putItem(`users/${data.id}`, params) // params is not defined in your code.
.then(res => {
modelClose();
console.log(res);
let response = res.data;
const newUserForeignInfo = [...userForeignInfo]; // Copy your array here before using splice
let index = newUserForeignInfo.findIndex(response.id);
newUserForeignInfo.splice(index, 1, response);
setuserForeignInfo(newUserForeignInfo); // Update the state here
setLoadingBtn(false);
}).catch(e => {
console.log(e.toString());
setLoadingBtn(false);
})
};
中:
/etc/apt/sources.list
然后:
deb http://security.debian.org/debian-security jessie/updates main