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

  1. First, install <span>apt-file</span>:

<span>sudo apt install apt-file</span>

  1. Then update the database:

<span>sudo apt update</span>

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

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

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

Reply Favorite View the author
All Replies

No replies yet

New Thread

Popular Events

More
国际排名
WHLUG