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

Debian registry: Reading package lists... Error! #26313

Closed
podsvirov opened this issue Aug 3, 2023 · 2 comments · Fixed by #26332
Closed

Debian registry: Reading package lists... Error! #26313

podsvirov opened this issue Aug 3, 2023 · 2 comments · Fixed by #26332

Comments

@podsvirov
Copy link

Description

I was create Debian packages as described there, and then upload it to registry at Gitea demo site there. I also reproduse this error at my Gitea instanse version 1.20.2.

But when I try to setup this registry from the command line, I get the error:

Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/try.gitea.io_api_packages_podsvirov_debian_dists_ubuntu_jammy_binary-amd64_Packages.lz4
E: The package lists or status file could not be parsed or opened.

Looks like Gite generate extra empty line inside Package file inside Package description block.

I guess the source of the error in the code is here.

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

The docker container from image gitea/gitea:1.20.2 on Ubuntu host via docker-compose.

Database

SQLite

@KN4CK3R
Copy link
Member

KN4CK3R commented Aug 4, 2023

Thank you for the report. That's the first debian package I got which has a double newline character at the end of the control block. I will send a fix soon.

@lunny lunny added this to the 1.20.3 milestone Aug 5, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Aug 5, 2023
KN4CK3R added a commit that referenced this issue Aug 5, 2023
Backport #26332 by @KN4CK3R

Fixes #26313

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
@podsvirov
Copy link
Author

Thanks for quick fix! 🥳

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants