You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WSL update clobbers perf with an inferior version #41934
This morning I updated my wsl to the latest version, which clobbered my installed perf binary (v7.0.14). The version you installed is missing ELF/DWARF support so you have broken my development pipeline. Furthermore, your installation is done through mounting your binary directly over the top over the package manager's file, which is quite evil. I would like to see this behaviour fixed/reverted, or else please have a perf binary with decent capabilities.
Expected Behavior
My perf sessions should support the necessary symbols for ELF and DWARF format binaries.
Ubuntu package manager should not end up in an invalid state for the linux-perf package
Actual Behavior
Perf is completely broken, package manager files are shadowed with your mounted version
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues
Once completed please upload the output files to this GitHub issue.
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
dpkg: error processing archive
linux-tools-common_6.8.0-147.147_all.deb (--unpack):
unable to make backup link of './usr/bin/perf'
before installing new version: Invalid cross-device link
Investigation:
df -T /usr/bin/perf
=> /dev/sdb mounted on /usr/bin/perf
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.
Unpacking linux-tools-common (6.8.0-147.147) over (6.8.0-142.142) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_6.8.0-147.147_all.deb (--unpack):
unable to make backup link of './usr/bin/perf' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
still broken as of today, with latest update etc.
Reacted by John Bentley, boonyasukd, shane and Alex Hirsch
yep, still broken. i ran in to this today after a failed run of sudo apt-get upgrade, and tried to apt remove and apt-get install --reinstall:
$ ~ sudo apt-get install --reinstall linux-tools-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
linux-tools-common
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
56 not fully installed or removed.
Need to get 0 B/434 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
(Reading database ... 266477 files and directories currently installed.)
Preparing to unpack .../linux-tools-common_6.8.0-147.147_all.deb ...
Unpacking linux-tools-common (6.8.0-147.147) over (6.8.0-146.146) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_6.8.0-147.147_all.deb (--unpack):
unable to make backup link of './usr/bin/perf' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-tools-common_6.8.0-147.147_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
any attempts at rm/unlink give the Device or resource busy error.
Activity
github-actions commentedon Oct 15, 2026
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use
.\collect-wsl-logs.ps1 -LogProfile networkinginstead, following the instructions in Collect WSL logs for networking issuesOnce completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
kilobytelogic commentedon Oct 15, 2026
I can reproduce a package management failure caused by the perf mount on:
WSL version: 3.0.3.0
Kernel version: 6.18.54.1-1
Distributor ID: Ubuntu
Description: Ubuntu 24.04.5 LTS
Release: 24.04
Codename: noble
Symptoms:
sudo apt upgrade fails with:
dpkg: error processing archive
linux-tools-common_6.8.0-147.147_all.deb (--unpack):
unable to make backup link of './usr/bin/perf'
before installing new version: Invalid cross-device link
Investigation:
df -T /usr/bin/perf
=> /dev/sdb mounted on /usr/bin/perf
findmnt /usr/bin/perf
=> /dev/sdb[/6.18.54.1-microsoft-standard-WSL2/perf/bin/perf]
The mounted perf binary appears to shadow the file owned by
linux-tools-common, causing dpkg hard-link creation to fail.
microsoft-github-policy-service commentedon Oct 23, 2026
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.
Thank you!
RaceFPV commentedon Oct 24, 2026
Unpacking linux-tools-common (6.8.0-147.147) over (6.8.0-142.142) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_6.8.0-147.147_all.deb (--unpack):
unable to make backup link of './usr/bin/perf' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
still broken as of today, with latest update etc.
shaneknapp commentedon Oct 25, 2026
yep, still broken. i ran in to this today after a failed run of
sudo apt-get upgrade, and tried toapt removeandapt-get install --reinstall:any attempts at
rm/unlinkgive theDevice or resource busyerror.kilobytelogic commentedon Nov 10, 2026
My Windows machine just updated
wslto 3.0.5.0 and the problem is no longer present for me.shaneknapp commentedon Nov 10, 2026
woohoo! same here!