Corrupt $releasever / &dist not set


I have a machine that gives an error when trying to update or install:

Could not retrieve mirrorlist$releasever&arch=x86_64&repo=os&dist=$dist&staging=$staging error was
14: HTTP Error 500 - Internal Server Error

It looks like variables $releasever &dist etc are not set. How can I fix or set this variables to update ?? (I’m getting an error with modules that need a nodejs update)

Many thanks


One of the errors I get when I try to enable/update modules is " Error: Cannot find module ‘chalk’" , this after trying to reinstall single missing module.


Seems this error has been after a error with yum:

> error: rpmdb: BDB0134 read: 0x7fdb05171290, 4096: Input/output error
> error: db5 error(5) from dbcursor->c_get: Input/output error

I’m getting this error on another machine, but I remember this happened on the first one. Once you run yum everything slows down / halts. Yum with dificulties won’t install anything giving diferent errors, in this case for example

Running transaction
Warning: RPMDB altered outside of yum.
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
kbd-1.15.5-15.el7.x86_64 has missing requires of kbd-misc = ('0', '1.15.5', '15.