【问题标题】:trying to use owncloud but it says some php modules not installed尝试使用owncloud,但它说没有安装一些php模块
【发布时间】:2018-09-08 19:43:18
【问题描述】:

我在尝试输入http://localhost/index.php 时收到此错误

PHP module zip not installed.

Please ask your server administrator to install the module.
PHP module dom not installed.

Please ask your server administrator to install the module.
PHP module XMLWriter not installed.

Please ask your server administrator to install the module.
PHP module XMLReader not installed.

Please ask your server administrator to install the module.
PHP module intl not installed.

Please ask your server administrator to install the module.
PHP module libxml not installed.

Please ask your server administrator to install the module.
PHP module mb multibyte not installed.

Please ask your server administrator to install the module.
PHP module GD not installed.

Please ask your server administrator to install the module.
PHP module SimpleXML not installed.

Please ask your server administrator to install the module.
PHP module cURL not installed.

Please ask your server administrator to install the module.
PHP modules have been installed, but they are still listed as missing?

Please ask your server administrator to restart the web server.

owncloud 的安装位置,我试过这个命令:

apt-get install -y apache2 mariadb-server libapache2-mod-php7.0     openssl php-imagick php7.0-common php7.0-curl php7.0-gd     php7.0-imap php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring     php7.0-mcrypt php7.0-mysql php7.0-pgsql php-smbclient php-ssh2     php7.0-sqlite3 php7.0-xml php7.0-zip

但它给了我一些奇怪的错误:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.1 (>= 1:10.1.34-0ubuntu0.18.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我不知道该怎么办...我搜索了整个互联网并没有找到答案...

【问题讨论】:

    标签: linux owncloud


    【解决方案1】:

    对于第一部分,您需要安装几个 PHP 模块:

    apt install -y apache2 mariadb-server libapache2-mod-php7.0 \
    php7.0-gd php7.0-json php7.0-mysql php7.0-curl \
    php7.0-intl php7.0-mcrypt php-imagick \
    php7.0-zip php7.0-xml php7.0-mbstring
    

    对于第二部分,您似乎在 apt 上持有一个包裹。您需要找出持有的包裹:

     sudo aptitude why-not mariadb-server
    

    包裹被扣的原因有很多,具体怎么做取决于它被扣的原因。一般来说,一旦你知道它被持有的原因并且你解决了你可以取消持有它的原因:

    sudo apt-mark unhold package_name
    

    如果您不知道为什么要保留它,您可以尝试修复损坏的依赖项,但如果有必须保留它的真正原因,这可能会很糟糕:

    sudo apt-get install mariadb-server --fix-missing --fix-broken
    

    如果您在主机上,它可能由您的主机持有,因此您基本上可以跳过 mariadb 安装,因为它似乎安装在以前的版本上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-07
      • 1970-01-01
      • 2015-09-06
      • 2017-10-22
      • 2019-01-30
      • 1970-01-01
      • 1970-01-01
      • 2020-08-04
      相关资源
      最近更新 更多