Home > Backend Development > PHP Tutorial > ubuntu16.04 - ubuntu16.4 The following packages have unmet dependencies: libapache2-mod-SegmentFault

ubuntu16.04 - ubuntu16.4 The following packages have unmet dependencies: libapache2-mod-SegmentFault

WBOY
Release: 2016-09-11 11:34:18
Original
2127 people have browsed it

I executed on ubuntu16: sudo apt-get install libapache2-mod-php and got the following results:

<code>pcd@pcd-All-Series:~/桌面$ sudo apt-get install libapache2-mod-php
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 libapache2-mod-php : 依赖: libapache2-mod-php7.0 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系</code>
Copy after login
Copy after login

How should I solve this?
I referred to this question, but there is no solution to my problem.

Reply content:

I executed on ubuntu16: sudo apt-get install libapache2-mod-php and got the following results:

<code>pcd@pcd-All-Series:~/桌面$ sudo apt-get install libapache2-mod-php
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 libapache2-mod-php : 依赖: libapache2-mod-php7.0 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系</code>
Copy after login
Copy after login

How should I solve this?
I referred to this question, but there is no solution to my problem.

apt-get will automatically solve the software package dependency problem. It is recommended that you try to execute
sudo apt-get update
and then try to install the software package you need

This kind of problem usually occurs because the software source is not configured properly
ubuntu16.04 - ubuntu16.4 The following packages have unmet dependencies: libapache2-mod-SegmentFault
I personally use the China server in Ubuntu Software (as shown in the picture), and there is no problem that cannot be solved by dependencies.
ubuntu16.04 - ubuntu16.4 The following packages have unmet dependencies: libapache2-mod-SegmentFault
It will automatically update after switching here, no need to manually apt-get update

The PHP version in the Ubuntu 16.04 software source is 7.0.
If you want to install LAMP, you can do this:
sudo apt-get install apache2 php7.0 php7.0-mysql mysql-server

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak //Now rename the info folder
sudo mkdir /var/lib/dpkg/info //Create a new info folder
sudo apt-get install libapache2-mod-php7.0
sudo mv /var/lib/dpkg/info.bak /var/lib/dpkg/info

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template