Yum repository throwing - [Errno -1] Package does not match intended download

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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?







share|improve this question






















  • Did you you as suggested: Suggestion: run yum --enablerepo=my-app clean metadata.
    – Thomas
    Jan 13 at 9:17










  • Yes. I did that. I even deleted /var/cache/yum
    – Mir
    Jan 13 at 19:54











  • This seems to be an issue with meta-data
    – Mir
    Jan 13 at 20:01














up vote
0
down vote

favorite












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?







share|improve this question






















  • Did you you as suggested: Suggestion: run yum --enablerepo=my-app clean metadata.
    – Thomas
    Jan 13 at 9:17










  • Yes. I did that. I even deleted /var/cache/yum
    – Mir
    Jan 13 at 19:54











  • This seems to be an issue with meta-data
    – Mir
    Jan 13 at 20:01












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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?







share|improve this question














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?









share|improve this question













share|improve this question




share|improve this question








edited May 1 at 6:47









halloleo

1267




1267










asked Jan 13 at 0:22









Mir

101




101











  • Did you you as suggested: Suggestion: run yum --enablerepo=my-app clean metadata.
    – Thomas
    Jan 13 at 9:17










  • Yes. I did that. I even deleted /var/cache/yum
    – Mir
    Jan 13 at 19:54











  • This seems to be an issue with meta-data
    – Mir
    Jan 13 at 20:01
















  • Did you you as suggested: Suggestion: run yum --enablerepo=my-app clean metadata.
    – Thomas
    Jan 13 at 9:17










  • Yes. I did that. I even deleted /var/cache/yum
    – Mir
    Jan 13 at 19:54











  • This seems to be an issue with meta-data
    – Mir
    Jan 13 at 20:01















Did you you as suggested: Suggestion: run yum --enablerepo=my-app clean metadata.
– Thomas
Jan 13 at 9:17




Did you you as suggested: Suggestion: run yum --enablerepo=my-app clean metadata.
– Thomas
Jan 13 at 9:17












Yes. I did that. I even deleted /var/cache/yum
– Mir
Jan 13 at 19:54





Yes. I did that. I even deleted /var/cache/yum
– Mir
Jan 13 at 19:54













This seems to be an issue with meta-data
– Mir
Jan 13 at 20:01




This seems to be an issue with meta-data
– Mir
Jan 13 at 20:01










1 Answer
1






active

oldest

votes

















up vote
0
down vote













# yum clean metadata


and try again. Your client yum(8) has its own idea of the RPM characteristics, so ask it to check their repo value again.






share|improve this answer




















  • I have tried this and yum clean all. Its something to do with metadata
    – Mir
    Jan 15 at 4:07










  • There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
    – Mir
    Jan 15 at 4:08










  • I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
    – Mir
    Jan 15 at 4:09










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416713%2fyum-repository-throwing-errno-1-package-does-not-match-intended-download%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













# yum clean metadata


and try again. Your client yum(8) has its own idea of the RPM characteristics, so ask it to check their repo value again.






share|improve this answer




















  • I have tried this and yum clean all. Its something to do with metadata
    – Mir
    Jan 15 at 4:07










  • There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
    – Mir
    Jan 15 at 4:08










  • I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
    – Mir
    Jan 15 at 4:09














up vote
0
down vote













# yum clean metadata


and try again. Your client yum(8) has its own idea of the RPM characteristics, so ask it to check their repo value again.






share|improve this answer




















  • I have tried this and yum clean all. Its something to do with metadata
    – Mir
    Jan 15 at 4:07










  • There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
    – Mir
    Jan 15 at 4:08










  • I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
    – Mir
    Jan 15 at 4:09












up vote
0
down vote










up vote
0
down vote









# yum clean metadata


and try again. Your client yum(8) has its own idea of the RPM characteristics, so ask it to check their repo value again.






share|improve this answer












# yum clean metadata


and try again. Your client yum(8) has its own idea of the RPM characteristics, so ask it to check their repo value again.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 14 at 17:12









Oldest Software Guy

1672




1672











  • I have tried this and yum clean all. Its something to do with metadata
    – Mir
    Jan 15 at 4:07










  • There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
    – Mir
    Jan 15 at 4:08










  • I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
    – Mir
    Jan 15 at 4:09
















  • I have tried this and yum clean all. Its something to do with metadata
    – Mir
    Jan 15 at 4:07










  • There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
    – Mir
    Jan 15 at 4:08










  • I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
    – Mir
    Jan 15 at 4:09















I have tried this and yum clean all. Its something to do with metadata
– Mir
Jan 15 at 4:07




I have tried this and yum clean all. Its something to do with metadata
– Mir
Jan 15 at 4:07












There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
– Mir
Jan 15 at 4:08




There is something wrong with the package name too. Its show half of it my-app-1.3.15-2.el7.x8
– Mir
Jan 15 at 4:08












I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
– Mir
Jan 15 at 4:09




I am create a new folder and place the .rpm file under it. then running createrepo -v /path/to/rpm and then run it. It works fine. When I move it to S3 I have issues with Package does not match intended download errors
– Mir
Jan 15 at 4:09












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416713%2fyum-repository-throwing-errno-1-package-does-not-match-intended-download%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?