Bug 1220598

Summary: virtiofsd: File from package already exists as a directory in system
Product: [openSUSE] openSUSE Tumbleweed Reporter: Felix Niederwanger <felix.niederwanger>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ddiss, jengelh, scott.beamer
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Felix Niederwanger 2024-02-29 07:22:07 UTC
When updating to Tumbleweed snapshot 20240227 I get the following error message:

> error: unpacking of archive failed on file /usr/libexec/virtiofsd;65e02c7e: 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
> ( 43/104) Installing: virtiofsd-1.10.1-3.1.x86_64

Indeed, the directory /usr/libexec/virtiofsd exists and contains a virtiofsd binary:

> phoenix@racetrack-7290:/usr/libexec/virtiofsd> ls /usr/libexec/virtiofsd
> virtiofsd
> phoenix@racetrack-7290:/usr/libexec/virtiofsd> stat /usr/libexec/virtiofsd/virtiofsd
>   File: /usr/libexec/virtiofsd/virtiofsd
>   Size: 2788952         Blocks: 5448       IO Block: 4096   regular file
> Device: 0,35    Inode: 761792      Links: 1
> Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
> Context: system_u:object_r:bin_t:s0
> Access: 2024-02-23 17:33:31.000000000 +0100
> Modify: 2024-02-23 17:33:31.000000000 +0100
> Change: 2024-02-27 08:11:27.270584421 +0100
>  Birth: 2024-02-27 08:11:27.250584470 +0100

I've not done (knowingly) any changes to this directory/files.
Comment 1 Felix Niederwanger 2024-02-29 08:04:06 UTC
A possible workaround is to remove and re-install the package:

> # zypper rm virtiofsd
> # zypper in virtiofsd

This was posted on the Factory mailing list.
Comment 2 David Disseldorp 2024-02-29 08:33:45 UTC
Looks like a dup. I expect quite a few people are hitting this

*** This bug has been marked as a duplicate of bug 1220592 ***