The size of the lib folder in the c:\windows\system32\lxss\lib directory is 0 #8160
Unanswered
Galaxy-Ding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version
Microsoft Windows [版本 10.0.22523.1000]
WSL Version
Kernel Version
5.10.74.3
Distro Version
Ubuntu Release: 20.04
Other Software
At the beginning, I just wanted to install opencv, so I installed its dependencies first.
sudo apt-get install build-essential cmake unzip pkg-config sudo apt-get install libjpeg-dev libpng-dev libtiff-dev
As I entered the above command, it appeared the following prompt:
/sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn cnn train.so.8 is not a symbolic link /sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn adv train.so.8 is not a symbolic link sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn cnn infer.so.8 is not a symbolic link /sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn ops infer.so.8 is not a symbolic link /sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn.so.8 is not a symbolic link /sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn ops train.so.8 is not a symbolic link /sbin/ldconfig.real: /usr/local/cuda-11.0/targets/x86 64-linux/lib/libcudnn adv infer.so.8 is not a symbolic link /sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
I searched for related solutions, refer to the following link:
#5548 (comment)
But when I run the following command at the ubuntu
ln -s libcuda.so.1.1 libcuda.so.1 ln -s libcuda.so.1.1 libcuda.so
It told me i don't have enough rights to do
So I started searching for various ways to change the permissions of windows files, trying to make the permissions of their files allow me to modify them on ubuntu。
I probably remember that the permission of libcuda.so.1.1 is
-a------
。Repro Steps
I guess that the size of the lib folder is 0 because of the content of the following web pages.
http://www.xitongcheng.com/jiaocheng/win10_article_17371.html
https://blog.csdn.net/hfhwfw161226/article/details/99300340
https://www.xkyun.com/help/article/13.html
I tried the method from the first link and it didn't work。
So I refer to the content of the second and third links to modify my lib folder.
The command in the article is as follows :
Cacls d:\xkyun /t /e /c /g ruinet:F
what i input to cmd:
Cacls C:\Windows\System32\lxss\lib /t /e /c /g Galaxy:F
is no error.after above cmd, the cmd
cd lib; ls
was input cmd.but it doesn't seem to work.
-a----- libcuda.so.1 xx xx xx
i tried the cmd
cacls.exe C:\Windows\System32\lxss\lib\libcuda.so.1 /c /e /t /g administrators:F
,no error.but it still doesn't work.
-a----- libcuda.so.1 xx xx xx
-------------------------------------after that----------------------------
I ignored it for two days, and then started busy with other things. When I turned on the computer tonight, the lib size was empty, and I couldn't change the owner and couldn't access it.
Advanced security settings for lib
name: C:\Windows\System32\lxss\lib
owner: Unable to show current owner
------------------------what i have done-------------------------------------
In safe mode, try to modify the permissions of its lib, failed。
from the link[https://docs.microsoft.com/zh-cn/windows/wsl/release-notes], I know the lib folder is
Linux User Mode Libraries
.Expected Behavior
Actual Behavior
The lib folder now has size 0 and is inaccessible.
The file in lib does not seem to exist at present。
Diagnostic Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions