-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Installing package dependencies from RPM Package Repo fails #27056
Comments
This is a bug , because dnf can't properly parse the filename in the request header. It is possible to temporarily add a new virtual route to alleviate the error. gitea/routers/api/packages/api.go Line 522 in 17693fb
|
Having the same issue and hoping for a fix as it would be nice to auto install dependencies in production. |
The current rpm repository places all packages in the same repository, and different systems (el7,f34) may hit packages that do not belong to this distribution ( #25304 ) , which now supports grouping of rpm. ![图片](https://github.com/go-gitea/gitea/assets/33776693/d1e1d99f-7799-4b2b-a19b-cb2a5c692914) Fixes #25304 . Fixes #27056 . Refactor: [#25866](#25866)
Note: After upgrading to the latest version you need to upload a new RPM to refresh the index before it will work. |
The current rpm repository places all packages in the same repository, and different systems (el7,f34) may hit packages that do not belong to this distribution ( go-gitea#25304 ) , which now supports grouping of rpm. ![图片](https://github.com/go-gitea/gitea/assets/33776693/d1e1d99f-7799-4b2b-a19b-cb2a5c692914) Fixes go-gitea#25304 . Fixes go-gitea#27056 . Refactor: [go-gitea#25866](go-gitea#25866)
The current rpm repository places all packages in the same repository, and different systems (el7,f34) may hit packages that do not belong to this distribution ( go-gitea#25304 ) , which now supports grouping of rpm. ![图片](https://github.com/go-gitea/gitea/assets/33776693/d1e1d99f-7799-4b2b-a19b-cb2a5c692914) Fixes go-gitea#25304 . Fixes go-gitea#27056 . Refactor: [go-gitea#25866](go-gitea#25866)
Description
I have uploaded some rpm packages to my Gitea instance. Some of those packages have dependencies which are uploaded as well to the gitea package repo.
I have added my package repo to dnf.
But have modified the
/etc/yum.repos.d/rpm.repo
and disabled gpgcheckI have uploaded the required packages
Due to simplification I now use Package 1 and Package 2
Package 1 is dependend on Package 2.
When trying to install Package 1 with dnf it correctly resolves dependencies and the source repository, but install fails due to checksum mismatch.
I did a bit of further analysis and found out that the filename of the downloaded file might be the reason.
All packages that are / were downloaded have the same filename
x86_64
.When trying to install just from cache I see this error.
dnf is always refering to the same filename
x86_64
even if the package name is different.Downloading the packages manually with
wget
also outputs filename (which is the last part of the URL)wget http://XXXX:3000/api/packages/cloned/rpm/package/package-1/1.0/x86_64
Now I dont know where the rootcause is. Is gitea outputting a "wrong" filename or is dnf
A few more annotations:
yum
instead ofdnf
results in the same error behaviouryumdownloader --resolve package-1
also outputs a single file namedx86_64
Gitea Version
1.20.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
How are you running Gitea?
On-Premise with executable (no docker)
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: