Unable to install update to `virtiofsd-1.10.1-3.1.x86_64`. What to do?

I’m using cpe:/o:opensuse:tumbleweed:20240226. What should I do?

  1. Installation Error

    ( 47/121) Installing: usbutils-017-3.1.x86_64 .........................................................................................................................................................................................................................[done]
    error: unpacking of archive failed on file /usr/libexec/virtiofsd;65dfc62d: cpio: File from package already exists as a directory in system
    error: virtiofsd-1.10.1-3.1.x86_64: install failed
    error: virtiofsd-1.10.1-2.1.x86_64: erase skipped
    ( 48/121) Installing: virtiofsd-1.10.1-3.1.x86_64 ....................................................................................................................................................................................................................[error]
    Installation of virtiofsd-1.10.1-3.1.x86_64 failed:
    Error: Subprocess failed. Error: RPM failed: Command exited with status 1.
    Abort, retry, ignore? [a/r/i] (a): r
    error: unpacking of archive failed on file /usr/libexec/virtiofsd;65dfc644: cpio: File from package already exists as a directory in system
    error: virtiofsd-1.10.1-3.1.x86_64: install failed
    error: virtiofsd-1.10.1-2.1.x86_64: erase skipped
    ( 48/121) Installing: virtiofsd-1.10.1-3.1.x86_64 ....................................................................................................................................................................................................................[error]
    Installation of virtiofsd-1.10.1-3.1.x86_64 failed:
    Error: Subprocess failed. Error: RPM failed: Command exited with status 1.
    Abort, retry, ignore? [a/r/i] (a): a
    Warning: %posttrans and %transfiletrigger scripts are not executed when aborting!
    
    Problem occurred during or after installation or removal of packages:
    Installation has been aborted as directed.
    Please see the above error message for a hint.
    
  2. Package & Repositories

    PS /home/RokeJulianLockhart> zypper info virtiofsd
    Loading repository data...
    Reading installed packages...
    
    
    Information for package virtiofsd:
    ----------------------------------
    Repository     : Main Repository (OSS)
    Name           : virtiofsd
    Version        : 1.10.1-3.1
    Arch           : x86_64
    Vendor         : openSUSE
    Installed Size : 2.7 MiB
    Installed      : Yes (automatically)
    Status         : out-of-date (version 1.10.1-2.1 installed)
    Source package : virtiofsd-1.10.1-3.1.src
    Upstream URL   : https://gitlab.com/virtio-fs/virtiofsd
    Summary        : A vhost-user virtio-fs device backend written in Rust
    Description    : 
        A vhost-user virtio-fs device backend written in Rust
    
    PS /home/RokeJulianLockhart> zypper lr -u                           
    Repository priorities in effect:                                                                                                                                                                                                             (See 'zypper lr -P' for details)
          90 (raised priority)  :  1 repository
          99 (default priority) : 17 repositories
    
    #  | Alias                                          | Name                                   | Enabled | GPG Check | Refresh | URI
    ---+------------------------------------------------+----------------------------------------+---------+-----------+---------+-----------------------------------------------------------------------------------------------
     1 | coolercontrol-coolercontrol                    | coolercontrol-coolercontrol            | Yes     | (rp) Yes  | Yes     | https://dl.cloudsmith.io/public/coolercontrol/coolercontrol/rpm/opensuse/tumbleweed/x86_64
     2 | coolercontrol-coolercontrol-noarch             | coolercontrol-coolercontrol-noarch     | Yes     | (rp) Yes  | Yes     | https://dl.cloudsmith.io/public/coolercontrol/coolercontrol/rpm/opensuse/tumbleweed/noarch
     3 | coolercontrol-coolercontrol-source             | coolercontrol-coolercontrol-source     | Yes     | (rp) Yes  | Yes     | https://dl.cloudsmith.io/public/coolercontrol/coolercontrol/rpm/opensuse/tumbleweed/SRPMS
     4 | copr:copr.fedorainfracloud.org:jstaf:onedriver | Copr repo for onedriver owned by jstaf | Yes     | ( p) Yes  | No      | https://download.copr.fedorainfracloud.org/results/jstaf/onedriver/opensuse-tumbleweed-x86_64/
     5 | download.opensuse.org-non-oss                  | Main Repository (NON-OSS)              | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss/
     6 | download.opensuse.org-oss                      | Main Repository (OSS)                  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss/
     7 | download.opensuse.org-tumbleweed               | Main Update Repository                 | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/
     8 | google-chrome                                  | google-chrome                          | Yes     | (r ) Yes  | Yes     | https://dl.google.com/linux/chrome/rpm/stable/x86_64
     9 | https-download.opensuse.org-1ff5d8a2           | openSUSE:Factory                       | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/tumbleweed/repo/oss/
    11 | https-download.opensuse.org-5dda65be           | openSUSE:Tumbleweed                    | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/
    10 | https-download.opensuse.org-56dbdd38           | utilities                              | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/utilities/openSUSE_Factory/
    12 | microsoft-edge                                 | microsoft-edge                         | Yes     | (r ) Yes  | Yes     | https://packages.microsoft.com/yumrepos/edge/
    13 | openSUSE-20230920-0                            | openSUSE-20230920-0                    | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss/
    14 | packman                                        | Packman                                | Yes     | (r ) Yes  | Yes     | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/
    15 | repo-debug                                     | openSUSE-Tumbleweed-Debug              | No      | ----      | ----    | http://download.opensuse.org/debug/tumbleweed/repo/oss/
    16 | repo-openh264                                  | Open H.264 Codec (openSUSE Tumbleweed) | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed
    17 | repo-source                                    | openSUSE-Tumbleweed-Source             | No      | ----      | ----    | http://download.opensuse.org/source/tumbleweed/repo/oss/
    18 | snappy                                         | snappy                                 | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed
    19 | teamviewer                                     | TeamViewer - x86_64                    | Yes     | (r ) Yes  | No      | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/
    20 | vscode                                         | vscode                                 | Yes     | (r ) Yes  | No      | https://packages.microsoft.com/yumrepos/vscode
    PS /home/RokeJulianLockhart>
    
2 Likes

@rokejulianlockhart Are you checking the Factory Mailing List??
https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/GXCWGOUCU5XFBQD7Q6EGIZ3RVXHCEHAR/

1 Like

Does ‘workaround provided’ mean it will be fixed in the following snapshot? I don’t see any information on that page.

1 Like

@sunscape not sure, I just forced the install of that package…

This is packaging bug. RPM cannot deal with such changes, they must be handled by the package installation scripts.

1 Like

I had the exact same issue migrating from TW to Slowroll yesterday.
Just had to rename/delete the existing directory /usr/libexec/virtiofsd and zypper installed the package just fine.

I just aborted and will wait for the next fix to come in. In most cases waiting for the next fix is a sound policy. I believe it is in this case as well.

1 Like

If nobody reports this problem, there will be no fix.


https://bugzilla.opensuse.org/show_bug.cgi?id=1220598
https://bugzilla.opensuse.org/show_bug.cgi?id=1220592
https://bugzilla.suse.com/show_bug.cgi?id=1220304#c2

1 Like

True. But if the problem affects enough many people it will be noticed and fixed.

1 Like

Hope so…was glad it wasn’t just me. :slight_smile:

same problem

Here’s the workaround:

sudo zypper rm virtiofsd 
sudo zypper in virtiofsd qemu-tools

After this you’re fine.

6 Likes

@knurpht that depends, after the rm, whatever is uninstalled in the listed output should be re-installed, it will vary on the end users system.

2 Likes

Just repeated what I found on the Factory ML

In my PC, after emoving virtiofsd:

sudo zypper in live-fat-stick live-grub-stick live-usb-gui qemu-tools virtiofsd

Nope, @malcolmlewis. I’ve not nearly enough time to look at the mailing list to an extent that I would naturally discover such things. Thanks for the useful URI though.

For me, su -c 'zypper remove -y virtiofsd && zypper dup -y && zypper install -y libguestfs libguestfs-appliance libguestfs-xfs qemu-tools virtiofsd'.

2 Likes

Seems it has already someone working on it, suggestion from him was to just keep the old package and wait for the fix.

Bug confirmed.

The problem seems to be that the newer package includes the /usr/libexec/virtiofsd file while the previous one installed /usr/libexec/virtiofsd/virtiofsd. So zypper won’t replace a directory with a file. But I suspect that putting the file in this wrong path can also creat problems.

The best seems to ignore and keep the old version (virtiofsd-1.10.1-2.1) as I got problems with my virtio network bridge after trying to force the newer versions (remove 1-2.1 without deps check then install 1-3.1). Some qemu program might be looking for the virtiofsd file in its previous path.

2 Likes

Ah, darn. I hope that the new package also fixes the installation for people who worked around the issue.

1 Like