-
Notifications
You must be signed in to change notification settings - Fork 4.9k
I am getting error saying package not available #3870
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
Comments
A few questions:
Please also paste the commands you ran and their output here. |
Following commands were working fine via packer (since today morning), and it suddenly started failing.
{
"execute_command": "echo 'ec2-user' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"type": "shell",
"inline": [
"rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm",
"yum update",
"yum install -y apt-transport-https",
"yum update",
"yum install -y aspnetcore-runtime-3.0.1",
"yum install -y dotnet-sdk-3.0.1",
"yum install -y curl"
]
},
|
What are the errors, and what's the output of the commands? What type of machine is this and what Linux distro does it run? There are some issues in general with the RPM package repos right now that might be related (#3853) but there isn't enough info here to tell yet. |
Looking at this again, I don't understand how these lines could have worked before:
These packages don't exist, for a few reasons:
If you really want to specify a specific version, the syntax to do that with an RPM package manager like (Also, a side note: you don't need to install both |
I am using circleCI pipeline, using dotnet/core 3.0
Mostly my PC has Ubuntu 18.4 installed.
docker:
- image: mcr.microsoft.com/dotnet/core/sdk:3.0<http://mcr.microsoft.com/dotnet/core/sdk:3.0>
|
i have same issue. 런타임 환경: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: [Error] |
The same issue is happening here on Fedora 31. The first issue which is already reported is the mismatch between the checksum of the "netstandard-targeting-pack-2.1-2.1.0-1.x86_64". I have downloaded the rpm package for that and installed it through command line. Then I updated the .Net Core which updated the Asp.Net Core runtime and SDK as well. I have also removed all the .Net Core versions and just install version 3.0.101 through the following command:
Then I created a web app using the following command:
Then in the root folder of my test project ran the following command:
Even though dotnet build runs correctly and compiles the project, dotnet run returns the following message:
The following shows my dotnet --info
The only way to get my project run is by installing ASP.NET Core Runtime 3.0.0 through the following command:
My dotnet --info after installing aspnetcore-runtime-3.0-3.0.0-1:
Now if I run sudo dnf update, I will get the following package update whereupon installing it I'll go back to square one.
Please do not hesitate to let me know if you need any further details to investigate this. Many thanks. |
@dpanchal-visuallease I don't understand, can you please show the error and describe when it happens? Are you trying to install on your machine, some other machine, or use that Docker image? @oppakjt That issue looks very different to me... like a corrupted install. I would suggest verifying the install, or reinstalling, then open a new issue if you have problems. @mdx0111 That's also quite different, that's a known problem tracked by #3863. |
Yes, I understand that; hence, stating that it's already reported but the rest of the information and details that I have provided are related to the issue originally reported here. |
I'm sorry, I'm missing how it relates to the original issue here. There isn't much to go on yet. Can you give more context why you think they're connected? I'm trying to keep this issue focused if I can. |
AAh! My mistake! Sorry, got confused by the title. I'll open another issue for what I'm experiencing. Many thanks and apologies again for the confusion. |
Good morning,
Culprit is the MIRROR, it did work once, but then it’s been failing all the times.,
amazon-ebs: netstandard-targeting-pack-2.1 FAILED
amazon-ebs: https://packages.microsoft.com/rhel/7/prod/netstandard-targeting-pack-2.1.0-x64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=packages-microsoft-com-prod clean metadata
amazon-ebs: Trying other mirror.
amazon-ebs: (4/5): dotnet-sdk-3.0.101-x64.rpm
Did you try installing it (dotnet-sdk-3.0.101) manually?
Thanks,
Dinesh
|
Thanks for posting the logs @dpanchal-visuallease, that is a known issue with the RPM feeds that hasn't been resolved yet: #3853. In the meantime, you can work around this by manually installing netstandard-targeting-pack-2.1 before the SDK, ignoring the "package does not match intended download" check. Details at #3853 (comment). |
AWS kindly replied and it did install dotnet 3.0.101, hopefully it will fix my issue.
These are the commands that worked for me:
$ sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
$ sudo yum install dotnet-runtime-3.0 -y
This installed .Net 3.0. runtime. I run these command within the Packer builder template and I was able to create a RHEL7-based AMI pre-backed with .Net 3.0 runtime.
To install the .Net SDK as well, I needed to run these commands:
$ sudo rpm -Uvh https://packages.microsoft.com/rhel/7/prod/netstandard-targeting-pack-2.1.0-x64.rpm
# This is a required dependency that yum is unable to find in the its repositories so they need to be manually installed.
$ sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
$ sudo yum install dotnet-runtime-3.0 -y
$ sudo yum install dotnet-sdk-3.0 -y
|
Good to hear! That is indeed the workaround recommended at #3853 (comment), so agreed, it should work around the current problem with the linux repo. |
Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/sdk-3.0.101
Operating System:
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
The text was updated successfully, but these errors were encountered: