![在 Windows 10 上的 Ubuntu 20.04 终端上,initexmf --register-root=/path 后跟 initexmf --update-fndb 无法注册 bib 文件](https://linux22.com/image/431480/%E5%9C%A8%20Windows%2010%20%E4%B8%8A%E7%9A%84%20Ubuntu%2020.04%20%E7%BB%88%E7%AB%AF%E4%B8%8A%EF%BC%8Cinitexmf%20--register-root%3D%2Fpath%20%E5%90%8E%E8%B7%9F%20initexmf%20--update-fndb%20%E6%97%A0%E6%B3%95%E6%B3%A8%E5%86%8C%20bib%20%E6%96%87%E4%BB%B6.png)
我已经在 Windows Subsystem for Linux 2 shell 上安装了适用于 Ubuntu 20.04 的 MikTex:
user@machine:/mnt/c/Users/user/OneDrive/Documents/project$ sudo initexmf --register-root=/mnt/c/Users/user/OneDrive/Documents/texmf
initexmf: security risk: running with elevated privileges
user@machine:/mnt/c/Users/user/OneDrive/Documents/project$ sudo initexmf --update-fndb
initexmf: security risk: running with elevated privileges
user@machine:/mnt/c/Users/user/OneDrive/Documents/project$ ls /mnt/c/Users/user/OneDrive/Documents/texmf/bibtex/bib/
library.bib
user@machine:/mnt/c/Users/user/OneDrive/Documents/project$ biber project-file
INFO - This is Biber 2.16
INFO - Logfile is 'project-file.blg'
INFO - Reading 'project-file.bcf'
INFO - Found 13 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'library.bib' for section 0
ERROR - Cannot find 'library.bib'!
INFO - ERRORS: 1
biber: major issue: So far, you have not checked for MiKTeX updates.