php7.0-mbstring을 설치할 수 없습니다:
다음 패키지에는 충족되지 않은 종속성이 있습니다: php7.0-mbstring : 종속성: php7.0-common (= 7.0.19-1)이지만 7.0.20-1~dotdeb+8.2 설치 E: 문제를 해결할 수 없습니다. 손상된 패키지.
소스.목록:
deb http://debian.man.ac.uk/debian/ stretch main deb-src http://debian.man.ac.uk/debian/ stretch main
deb http://security.debian.org/ stretch/updates main contrib deb-src http://security.debian.org/ stretch/updates main contrib
deb http://ftp.at.debian.org/debian/ stretch-updates main contrib non-free deb-src http://ftp.at.debian.org/debian/ stretch-updates main contrib non-free
deb http://download.webmin.com/download/repository sarge contrib
apt-cache policy
산출:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://download.webmin.com/download/repository sarge/contrib amd64 Packages
release v=3.1,o=Jamie Cameron,a=stable,n=sarge,l=Webmin,c=contrib,b=amd64
origin download.webmin.com
500 http://ftp.at.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin ftp.at.debian.org
500 http://security.debian.org stretch/updates/contrib amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org stretch/updates/main amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://debian.man.ac.uk/debian stretch/main amd64 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin debian.man.ac.uk
apt-cache policy php7.0-common
산출:
Installed: 7.0.20-1~dotdeb+8.2
Candidate: 7.0.20-1~dotdeb+8.2
Version table:
*** 7.0.20-1~dotdeb+8.2 100
100 /var/lib/dpkg/status
7.0.19-1 500
500 http://debian.man.ac.uk/debian stretch/main amd64 Packages
답변1
php7.0-common
저장소 목록에 더 이상 알려지지 않은 dotdeb 버전이 있고 이로 인해 Debian 9 PHP 패키지를 설치할 수 없습니다. 이 패키지와 이에 의존하는 모든 패키지를 제거하고 php7.0-common
Debian 저장소에서 설치해야 합니다.
sudo apt remove php7.0-common
sudo apt install php7.0-mbstring