[Share Experiences] Solution to Linyaps Packaging Error
Experiences and Insight 418 views · 0 replies ·
deepin小助手
Super Moderator
OM
2024-11-26 09:07
Author
The following content is from the user @deepin-superuser, Thanks for the sharing.
Error Message:
<span>errorwhile loading shared libraries: libusb-1.0.so.0: cannot open sharedobject file: No such file or directory</span>
Solution:
First, install <span>apt-file</span>:
<span>sudo apt install apt-file</span>
Then update the database:
<span>sudo apt update</span>
Next, run the following command to search for the missing library and find out which package it belongs to:
<span>apt-file search libusb-1.0.so.0</span>
From the search results, you can see that <span>libusb-1.0-0</span> matches the system dependency. Navigate to the program directory, for example, in my case: <span>/home/cloud/Desktop/ll-build/linglong-build/com.itusb1-manager/package/com.itusb1-manager.linyaps</span>, and run the following command to add the missing dependency:
In this case, <span>/home/cloud/Desktop/ll-build</span> is my specified build directory, and <span>linglong-build/com.syntevo.deepgit/package/com.syntevo.deepgit.linyaps</span> is auto-generated by the script.
<span>ll-pica adep -d "libusb-1.0-0"</span>
Then run the following commands to package the program:
<span>ll-builder build</span>
<span>ll-builder export</span>
<span>ll-builder run</span>
If everything runs smoothly, you can submit the <span>xxx.runtime.layer</span> file from the program directory. If other dependencies are still missing, repeat steps 3 to 5.
The following content is from the user @deepin-superuser, Thanks for the sharing.
Error Message:
<span>errorwhile loading shared libraries: libusb-1.0.so.0: cannot open sharedobject file: No such file or directory</span>
Solution:
<span>apt-file</span>
:<span>sudo apt install apt-file</span>
<span>sudo apt update</span>
<span>apt-file search libusb-1.0.so.0</span>
<span>libusb-1.0-0</span>
matches the system dependency. Navigate to the program directory, for example, in my case:<span>/home/cloud/Desktop/ll-build/linglong-build/com.itusb1-manager/package/com.itusb1-manager.linyaps</span>
, and run the following command to add the missing dependency:In this case,
<span>/home/cloud/Desktop/ll-build</span>
is my specified build directory, and<span>linglong-build/com.syntevo.deepgit/package/com.syntevo.deepgit.linyaps</span>
is auto-generated by the script.<span>ll-pica adep -d "libusb-1.0-0"</span>
<span>ll-builder build</span>
<span>ll-builder export</span>
<span>ll-builder run</span>
If everything runs smoothly, you can submit the
<span>xxx.runtime.layer</span>
file from the program directory. If other dependencies are still missing, repeat steps 3 to 5.