• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[Gelöst] error: unpacking of archive failed - cpio: File from package already exists as a directory in system

gehrke

Administrator
Teammitglied
Ich habe seit Wochen ein Problem mit dem Upgrade von Prosody unter CentOS 8:
Code:
# dnf history info 41
Failed to set locale, defaulting to C.UTF-8
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
 Problem 2: conflicting requests
  - nothing provides module(nginx) needed by module php:7.2:8010020200220193032:2430b045-0.x86_64
Transaction ID : 41
Begin time     : Wed Feb 26 18:51:45 2020
Begin rpmdb    : 760:ac29d0e585ed06c700ebbd81c4d6d26b49c4a98d
End time       : Wed Feb 26 18:51:47 2020 (2 seconds)
End rpmdb      : 760:8da6e5ec4ab1043bd76f6f87dfb620ddcbd97fd8
User           : root <root>
Return-Code    : Failure: 1
Releasever     : 8
Command Line   : upgrade
Packages Altered:
    Upgrade  openjpeg2-2.3.1-3.el8_1.x86_64                          @AppStream
    Upgraded openjpeg2-2.3.1-2.el8_1.x86_64                          @@System
    Upgrade  libzip-1.5.1-2.module_el8.1.0+276+68c728ae.x86_64       @Stream-AppStream
    Upgraded libzip-1.5.1-2.module_el8.1.0+209+03b9a8ff.x86_64       @@System
    Upgrade  libzip-devel-1.5.1-2.module_el8.1.0+276+68c728ae.x86_64 @Stream-AppStream
    Upgraded libzip-devel-1.5.1-2.module_el8.1.0+209+03b9a8ff.x86_64 @@System
    Upgrade  libmodulemd1-1.8.16-0.2.8.2.1.x86_64                    @Stream-BaseOS
    Upgraded libmodulemd1-1.8.11-4.el8_1.x86_64                      @@System
 ** Upgrade  prosody-0.11.4-1.el8.x86_64                             @epel
 ** Upgraded prosody-0.11.3-1.el8.x86_64                             @@System
Scriptlet output:
   1 error: unpacking of archive failed on file /etc/prosody/certs: cpio: File from package already exists as a directory in system
   2 error: prosody-0.11.4-1.el8.x86_64: install failed
   3 error: prosody-0.11.3-1.el8.x86_64: erase skipped
Hat sich in der Zwischenzeit leider nicht wie gehofft in Luft aufgelöst.
Code:
# ls -ltar /etc/prosody/certs
total 32
-rw-r-----. 1 root prosody 1679 Jul 15  2017 localhost.key
-rw-r--r--. 1 root prosody 1444 Jul 15  2017 localhost.crt
-rw-r-----. 1 root prosody 1584 Aug 31  2019 openssl.cnf
-rw-r-----. 1 root prosody  719 Aug 31  2019 makefile
-rw-r-----. 1 root prosody  607 Aug 31  2019 localhost.cnf
-rw-r-----. 1 root prosody 1895 Aug 31  2019 GNUmakefile
drwxr-x---. 2 root prosody 4096 Nov  1 17:59 .
drwxr-x---. 4 root prosody 4096 Mar 21 07:09 ..
Scheint irgendwie mit dem Wechsel von ''@epel auf '@@System' zu tun zu haben, aber das neue Modulkonzept von RHEL 8 habe ich noch nicht wirklich verstanden.
 
OP
gehrke

gehrke

Administrator
Teammitglied
Hab' mal mutig rumgepfuscht und das Directory entsorgt.
Code:
[root@vj2 ~]# systemctl stop prosody.service
[root@vj2 ~]# mv /etc/prosody/certs /root
Code:
[root@vj2 ~]# dnf upgrade -y
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:52:02 ago on Sat Mar 21 12:29:00 2020.
Dependencies resolved.
=============================================================================================================================
 Package                      Architecture                Version                            Repository                 Size
=============================================================================================================================
Upgrading:
 prosody                      x86_64                      0.11.4-1.el8                       epel                      376 k

Transaction Summary
=============================================================================================================================
Upgrade  1 Package

Total download size: 376 k
Downloading Packages:
prosody-0.11.4-1.el8.x86_64.rpm                                                              4.1 MB/s | 376 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                        272 kB/s | 376 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                     1/1 
  Running scriptlet: prosody-0.11.4-1.el8.x86_64                                                                         1/1 
  Running scriptlet: prosody-0.11.4-1.el8.x86_64                                                                         1/2 
  Upgrading        : prosody-0.11.4-1.el8.x86_64                                                                         1/2 
  Running scriptlet: prosody-0.11.4-1.el8.x86_64                                                                         1/2 
  Running scriptlet: prosody-0.11.3-1.el8.x86_64                                                                         2/2 
  Cleanup          : prosody-0.11.3-1.el8.x86_64                                                                         2/2 
  Running scriptlet: prosody-0.11.3-1.el8.x86_64                                                                         2/2 
  Verifying        : prosody-0.11.4-1.el8.x86_64                                                                         1/2 
  Verifying        : prosody-0.11.3-1.el8.x86_64                                                                         2/2 

Upgraded:
  prosody-0.11.4-1.el8.x86_64                                                                                                

Complete!

Code:
[root@vj2 ~]# ls -ltar /etc/prosody/certs
lrwxrwxrwx. 1 root prosody 15 Feb 10 02:00 /etc/prosody/certs -> ../pki/prosody/

[root@vj2 ~]# ls -ltar /etc/pki/prosody/
total 32
-rw-r-----.  1 root prosody 3247 Nov  2 18:35 localhost.key
-rw-r--r--.  1 root root    2139 Nov  2 18:35 localhost.crt
drwxr-xr-x. 12 root root    4096 Nov 14 20:31 ..
-rw-r-----.  1 root prosody 1584 Jan  2 10:49 openssl.cnf
-rw-r-----.  1 root prosody  719 Jan  2 10:49 makefile
-rw-r-----.  1 root prosody  607 Jan  2 10:49 localhost.cnf
-rw-r-----.  1 root prosody 1895 Jan  2 10:49 GNUmakefile
drwxr-x---.  2 root prosody 4096 Feb 10 02:00 .

Code:
Mar 21 14:24:48 startup	info	Hello and welcome to Prosody version 0.11.4
Scheinbar funktioniert XMPP damit fehlerfrei.
Hhmmm...

#EinmalMitProfis
 
Oben