PHP module is not installed - intl and cURL

Steps to reproduce

  1. https://example.de/owncloud/

Expected behaviour

login page

Actual behaviour

PHP-Modul intl nicht installiert.

Bitte frage, für die Installation des Moduls, Deinen Server-Administrator.
PHP-Modul cURL nicht installiert.

Bitte frage, für die Installation des Moduls, Deinen Server-Administrator.
PHP-Module wurden installiert, werden aber als noch fehlend gelistet?

Bitte kontaktiere Deinen Server-Administrator und bitte um den Neustart des Webservers.

Server configuration

ubuntu 18.04 lts

Web server:
apache2
Database:
mysql
PHP version:
7.4.3
ownCloud version: (see ownCloud admin page)
10.4 ? 10.3 was last, 10.4 is not running anymore
Updated from an older ownCloud or fresh install:
updated from 10.3
Where did you install ownCloud from:
repository web install
Signing status (ownCloud 9.0 and above):
can’t log in

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
not working because of php 7.4.3

**Are you using encryption:** no

### Client configuration
**Browser:** firefox

The Problem came with last repository update for owncloud on ubuntu server 16.04.
Message was Owncloud is no longer comapatible with php 7.0
I updated php and I got 7.4.3 and owncloud had the error php modules missing
I installed php 7.2 but it didn't solve the problem
then I upgrade operating system to ubuntu 18.04 and I got the mentioned above error on webpage

Do I have to remove php 7.4 and install 7.2
What PHP modules do I have to install?
And what configuration do I have to change in system?

This version of PHP is not yet supported. Please install PHP 7.3 and run

  1. update-alternatives --config php
  2. update-alternatives --config php-cli

These commands will both ask you interactively what PHP version you want to set it to, just follow the instructions on the terminal.

Make sure to install all required modules.

Many Thanks for the hints.
I cant install php7.3 because of old dependencies of ubuntu 16.04. It seems that it is the old owncloud repository for 16.04 what cause the fault. How can I remove the repository?

apt-cache show php-curl
Package: php-curl
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com
Original-Maintainer: Debian PHP Maintainers pkg-php-maint@lists.alioth.debian.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-curl
Filename: pool/main/p/php-defaults/php-curl_7.2+60ubuntu1_all.deb
Size: 1996
MD5sum: 1368d69e201b7a2ab8b67b91fa0bfe23
SHA1: 760c741d8b09b0500ec0d34f3d1dc61201cd94ec
SHA256: 799a08d8be5c0d15469c4b7698e560e7d9ed06cb6387559f8b82004a64dc02c8
Description-en: CURL module for PHP [default]
This package provides a CURL module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Ubuntu’s default
PHP version (currently 7.2).
Description-md5: 8ab5b2f6b0eb3192a292656773062ec4
Supported: 5y

root@fkbox:~# apt-get update && apt-get dist-upgrade
OK:1 http://de.archive.ubuntu.com/ubuntu bionic InRelease
Holen:2 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Holen:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Holen:5 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Ign:3 https://attic.owncloud.org/download/repositories/production/Ubuntu_18.04 InRelease
Holen:6 https://download.owncloud.org/download/repositories/production/Ubuntu_18.04 Release [608 B]
Holen:7 http://de.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [651 kB]
Holen:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB]
Holen:9 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [871 kB]
Holen:10 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17,6 kB]
Holen:11 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41,5 kB]
Holen:12 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [617 kB]
Holen:14 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [649 kB]
Holen:15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,0 kB]
Holen:16 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Holen:17 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Holen:18 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.464 B]
Holen:19 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [307 kB]
Holen:20 http://de.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73,8 kB]
Holen:21 http://de.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [140 kB]
Holen:22 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1.055 kB]
Holen:23 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1.011 kB]
Holen:24 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [326 kB]
Holen:25 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [264 kB]
Holen:26 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [193 kB]
Holen:27 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [436 kB]
Holen:28 http://de.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2.468 B]
Holen:29 http://de.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7.980 B]
Es wurden 7.126 kB in 8 s geholt (894 kB/s).
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
Die folgenden Pakete werden aktualisiert (Upgrade):
fonts-noto-cjk linux-firmware
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 75,1 MB von 131 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 3.202 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-firmware all 1.173.16 [75,1 MB]
Es wurden 75,1 MB in 1 min 29 s geholt (841 kB/s).
(Lese Datenbank … 297902 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von …/fonts-noto-cjk_1%3a20190409+repack1-0ubuntu0.18.04_all.deb …
Entpacken von fonts-noto-cjk (1:20190409+repack1-0ubuntu0.18.04) über (1:20170601+repack1-2) …
dpkg-deb (Unterprozess): Archiv-Element wird dekomprimiert: lzma-Fehler: komprimierte Daten sind beschädigt
dpkg-deb: Fehler: Unterprozess gab den Fehler-Ausgangsstatus 2 zurück
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/fonts-noto-cjk_1%3a20190409+repack1-0ubuntu0.18.04_all.deb (–unpack):
Extrahierte Daten für »./usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc« können nicht nach »/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc.dpkg-new« kopiert werden: Unerwartetes Ende der Datei oder des Datenstroms
Vorbereitung zum Entpacken von …/linux-firmware_1.173.16_all.deb …
Entpacken von linux-firmware (1.173.16) über (1.173.15) …
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/fonts-noto-cjk_1%3a20190409+repack1-0ubuntu0.18.04_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Even when we are going offtopic here, this looks like either your disk is full or the deb package is broken for some reason (e.g. when the disk was full while downloading).
If you didn’t install any packages manually, you should be safe cleaning up no longer required packages and previously downloaded archived with

  • sudo apt clean
  • sudo apt -f autoremove

Then you should run the upgrade again.

2 Likes

So you’re running Ubuntu 16.04 and you have a repo included that is for 18.04?
I wouldn’t be surprised if that throws errors.

Check your /etc/apt folder for the repo line and deactivate it by commenting it out with a #

And please also look at the reply above.

1 Like