Yum repository throwing - [Errno -1] Package does not match intended download
2
votes
2
answers
6261
views
I am building a Yum repository to install RPM packages.
I am creating a folder
mkdir -p ~/yum/el7/x86_64
and moving rpm file to it under same path given above.
### Here is my my-app.repo file info.
[my-app]
name=My App
baseurl=https://dl.my-app.com/yum/el7/$basearch
gpgkey=https://dl.my-app.com/rpm.gpg
gpgcheck=1
enabled=1
repo_gpgcheck=1
### Here is the error I get when I install the package.
[root@ip-192-31-59-132 ~]# yum install my-app
Loaded plugins: langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package my-app.x86_64 0:1.3.15-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================
Installing:
my-app x86_64 1.3.15-2.el7 my-app 9.5 M
Transaction Summary
==================================================================================================================================================================================
Install 1 Package
Total download size: 9.5 M
Installed size: 33 M
Is this ok [y/d/N]: y
Downloading packages:
my-app-1.3.15-2.el7.x8 FAILED
https://dl.my-app.com/yum/el7/x86_64/my-app-1.3.15-2.el7.x86_64.rpm : [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=my-app clean metadata
Trying other mirror.
Error downloading packages:
my-app-1.3.15-2.el7.x86_64: [Errno 256] No more mirrors to try.
[root@ip-192-31-59-132 ~]#
I have the Gnupg configuration correct. I hope thats not the cause of this issue.
What am I doing wrong here? Why is Yum throwing Package does not match intended download
error?
Asked by Mir Adnan
(121 rep)
Jan 13, 2018, 12:22 AM
Last activity: Apr 21, 2025, 12:05 PM
Last activity: Apr 21, 2025, 12:05 PM