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