Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux version install package has non-standard package name. #95

Open
MuTong233 opened this issue Nov 28, 2024 · 1 comment
Open

Linux version install package has non-standard package name. #95

MuTong233 opened this issue Nov 28, 2024 · 1 comment

Comments

@MuTong233
Copy link

While installing the deb package, dpkg will throw an error complaining about the package name doesn't start with alphabet or number.
Please do not use Chinese characters in your installation package.

@AdAstraAbyssoque
Copy link

The same thing occurs.

Just Do things Below:


Steps to Fix the Issue

1. Repackage the .deb File with a Valid Package Name

Manually extract the .deb file, fix the Package field in the control file, and repackage it. Here's how:

Step 1: Extract the .deb File

mkdir xbt_ai_temp
dpkg -x XBT_AI_linux_x64.deb xbt_ai_temp
dpkg -e XBT_AI_linux_x64.deb xbt_ai_temp/DEBIAN

Step 2: Edit the control File
Open the control file in a text editor:

nano xbt_ai_temp/DEBIAN/control

Change the Package field to use only alphanumeric characters, hyphens, or dots. For example:

Package: xbt-ai
Version: 3.2.0
Architecture: amd64
Installed-Size: 91274
Maintainer: 佰阅科技
Priority: optional
Depends: libwebkit2gtk-4.1-0, libgtk-3-0
Description: 小白兔AI 人工智能工具箱

Save the file and exit the editor.

Step 3: Repackage the .deb File

dpkg-deb -b xbt_ai_temp XBT_AI_linux_x64_fixed.deb

Step 4: Install the Fixed .deb File

sudo dpkg -i XBT_AI_linux_x64_fixed.deb

And disappointed by this repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants