debug Ubuntu 16 rc.local无效

Debug rc.local不生效的方法
本文介绍了一种解决rc.local设置不起作用的问题的调试方法。通过在rc.local中添加特定的命令行,将错误信息输出到/tmp/rc.local.log文件中,便于查看具体的错误提示,从而定位问题。

设置了rc.local不起作用,可以使用如下方法进行Debug:
sudo vim /etc/rc.local
在所有语句执行前,添加两行:
exec 2> /tmp/rc.local.log
exec 1>&2
重启后,可以查看/tmp/rc.local.log,上面显示了错误提示信息。

dr@dr-virtual-machine:~/下载/Steam _v3.0.0-rc.15_linux_x64$ bash ./Steam++.sh 符号链接 ./Steam++ 已存在 Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/assemblies/libSkiaSharp.so: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/dotnet/shared/Microsoft.NETCore.App/9.0.1/libSkiaSharp.so: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/assemblies/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/dotnet/shared/Microsoft.NETCore.App/9.0.1/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/assemblies/libSkiaSharp: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/dotnet/shared/Microsoft.NETCore.App/9.0.1/libSkiaSharp: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/assemblies/liblibSkiaSharp: cannot open shared object file: No such file or directory /home/dr/下载/Steam _v3.0.0-rc.15_linux_x64/dotnet/shared/Microsoft.NETCore.App/9.0.1/liblibSkiaSharp: cannot open shared object file: No such file or directory at SkiaSharp.SkiaApi.sk_colortype_get_default_8888() at SkiaSharp.SkiaApi.sk_colortype_get_default_8888() at SkiaSharp.SKImageInfo..cctor() --- End of inner exception stack trace --- at Avalonia.Skia.PlatformRenderInterface..ctor(Null
最新发布
03-13
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值