[Share Experiences] Solution to Linyaps Packaging Error
Tofloor
poster avatar
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:

  1. First, install apt-file:

sudo apt install apt-file

  1. Then update the database:

sudo apt update

  1. 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

  1. 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"

  1. 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.

Reply Favorite View the author
All Replies

No replies yet