sudo apt install php7.0-intl
输出:
The following packages have unmet dependencies:
php7.0-intl : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
以前的版本从未出现过这种依赖性问题
有任何想法吗?..
> uname -a
Linux ###### 5.13.0-21-generic #21-Ubuntu SMP Tue Oct 19 08:59:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
答案1
恐慌取消
只需下载二进制
wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2_amd64.deb
并手动安装:
sudo dpkg -i libicu66_66.1-2ubuntu2_amd64.deb
之后你可以安装 php-intl:
sudo apt-get install php7.0-intl
现在安装成功了