when remove firefox: "incorrect number of tail fields, expected 3 but found 4"

Bug #2009047 reported by NEREU LUIZ SPACKI
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

I'm using windows with wsl 2.
When I remove firefox "snap remove firefox" the error message appears:

2023-03-02T11:48:41-03:00 ERROR cannot remove snap file "firefox", will retry in 3 mins: incorrect number of tail fields, expected 3 but found 4

This error is related to "Docker Desktop" https://www.docker.com/products/docker-desktop/.
When docker desktop is running it adds the following line to /proc/self/mountinfo:

"1427 82 0:184 / /Docker/host rw,noatime - 9p drvfs rw,dirsync,aname=drvfs;path=C:\Program Files\Docker\Docker\resources;symlinkroot=/mnt/,mmap,access=client ,msize=262144,trans=virtio"

From what I saw in the source, snapd uses the space character to separate the mountinfo fields, the problem is that in this case there is one more space than it should in "path=C:\Program Files", this causes snap cannot process this line from mountinfo

Revision history for this message
Vasyl Vavrychuk (vvavrychuk) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.