psadmin-io / ps-vagabond

PeopleSoft Image management with Vagrant
MIT License
26 stars 10 forks source link

`sudo yum update` returns a checksum error #13

Closed iversond closed 7 years ago

iversond commented 7 years ago
==> ps-vagabond: Loaded plugins: ulninfo
==> ps-vagabond: http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
==> ps-vagabond: Trying other mirror.
==> ps-vagabond: http://public.yum.oracle.com/repo/OracleLinux/OL7/UEKR3/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
==> ps-vagabond: Trying other mirror.
==> ps-vagabond:
==> ps-vagabond:
==> ps-vagabond:  One of the configured repositories failed (Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64)),
==> ps-vagabond:  and yum doesn't have enough cached data to continue. At this point the only
==> ps-vagabond:  safe thing yum can do is fail. There are a few ways to work "fix" this:
==> ps-vagabond:
==> ps-vagabond:      1. Contact the upstream for the repository and get them to fix the problem.
==> ps-vagabond:
==> ps-vagabond:      2. Reconfigure the baseurl/etc. for the repository, to point to a working
==> ps-vagabond:         upstream. This is most often useful if you are using a newer
==> ps-vagabond:         distribution release than is supported by the repository (and the
==> ps-vagabond:         packages for the previous distribution release still work).
==> ps-vagabond:
==> ps-vagabond:      3. Disable the repository, so yum won't use it by default. Yum will then
==> ps-vagabond:         just ignore the repository until you permanently enable it again or use
==> ps-vagabond:         --enablerepo for temporary usage:
==> ps-vagabond:
==> ps-vagabond:             yum-config-manager --disable ol7_UEKR3
==> ps-vagabond:
==> ps-vagabond:      4. Configure the failing repository to be skipped, if it is unavailable.
==> ps-vagabond:         Note that yum will try to contact the repo. when it runs most commands,
==> ps-vagabond:         so will have to try and fail each time (and thus. yum will be be much
==> ps-vagabond:         slower). If it is a very temporary problem though, this is often a nice
==> ps-vagabond:         compromise:
==> ps-vagabond:
==> ps-vagabond:             yum-config-manager --save --setopt=ol7_UEKR3.skip_if_unavailable=true
==> ps-vagabond:
==> ps-vagabond: failure: repodata/primary.xml.gz from ol7_UEKR3: [Errno 256] No more mirrors to try.
==> ps-vagabond: http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
iversond commented 7 years ago

To manually resolve the issue, I updated the /etc/yum.repos.d/public-yum-ol7.repo by hand. This was in version 0.0.4 of the vagrant box.

iversond commented 7 years ago
sudo rm /etc/yum.repos.d/public-yum-ol7.repo
cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-ol7.repo
jrbing commented 7 years ago

I wasn't able to get a re-creation case on this, but I think it may be related to the recent transition of OEL 7.2 to 7.3. I experienced an almost identical error when trying to provision a CentOS 7.2 VM.

At any rate, I went ahead and upgraded the Vagrant box to use OEL 7.3 - so running vagrant box update should upgrade bring it up to date.

C:\pum_images\fscm92
λ vagrant box outdated
Checking if box 'jrbing/ps-vagabond' is up to date...
A newer version of the box 'jrbing/ps-vagabond' is available! You currently
have version '0.0.4'. The latest is version '1.0.0'. Run
`vagrant box update` to update.

C:\pum_images\fscm92
λ vagrant box update
==> ps-vagabond: Checking for updates to 'jrbing/ps-vagabond'
    ps-vagabond: Latest installed version: 0.0.4
    ps-vagabond: Version constraints:
    ps-vagabond: Provider: virtualbox
==> ps-vagabond: Updating 'jrbing/ps-vagabond' with provider 'virtualbox' from version
==> ps-vagabond: '0.0.4' to '1.0.0'...
==> ps-vagabond: Loading metadata for box 'https://atlas.hashicorp.com/jrbing/ps-vagabond'
==> ps-vagabond: Adding box 'jrbing/ps-vagabond' (v1.0.0) for provider: virtualbox
    ps-vagabond: Downloading: https://atlas.hashicorp.com/jrbing/boxes/ps-vagabond/versions/1.0.0/providers/virtualbox.box
    ps-vagabond: Progress: 100% (Rate: 18.8M/s, Estimated time remaining: --:--:--)
==> ps-vagabond: Successfully added box 'jrbing/ps-vagabond' (v1.0.0) for 'virtualbox'!

C:\pum_images\fscm92