Als ik een yum update wil uitvoeren, krijg ik een error

One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:


Ik heb het bestand /etc/yum.repos.d/CentOS-Base.repo met nano bekeken en zoals in deze image de basUrl uncommented:




http://mirror.centos.org/centos/$releasever/os/$basearch/

De url hierboven nadat ik weer een update heb gedaan na het opslaan, krijg een 404 error.
Weet iemand wat de juist URL is?

ik heb CENTOS 7.2.1511

Hopelijk is hier een oplossing voor.
Een poosje geleden had ik ook zoiets, en toen hielp het om de cache van yum te verwijderen, en de repo's te updaten.

yum clean all
yum makecache
yum update
Bedankt.

Maar zelfs als ik yum makecache gebruikt krijg ik de foutmelding:

"One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue........."
En als je die stap over slaat?
Ja, daar begon deze thread ook mee, met yum update.

Zelfs als ik

Het gaat dus om dit:

cannot find a valid baseurl for repo : extras/7/x86_64

Ook als ik yum-config-manager --disable * doe, krijg ik nog steeds hetzelfde.


Daarnaast denk ik dus over een hele nieuwe installatie van centos naar almalinix,

Maar krijg dan een adner probleem via direactadmin admin backup:

"Overview Backup has stalled
Details No progress in 6 hours"

Het liest zou ik de upgrade willen doen, maar kom er niet uit


Ik denk dat een fresh install het beste is .
Ik zie ineens mijhn repo file niet meer, die is leeg:
/etc/yum.repos.d/CentOS-Base.repo

Ik ben bij transip, ze geven mij een link om het naar een nieuwe server te installeren:https://www.transip.nl/knowledgebase/3841-directadmin-migreren-naar-nieuwe-server/

Maar, ik wil dus een nieuwe installatie op dezelfde VPS-schijf.
Doet een herinstalltie altijd een format van alle schijfen?

Wat is de beste manier om alles weer goed te laten werken, alles backuppen op een andere schijf en die dan terug plaatsen?
Dank, maar goed ik heb uiteindelijk alle DA backups kunnen maken en had deze VPS al helmaal klaargestoond met extra schijfen/partities zoals ik het wel hebben.

Ik de gehele backup gedownload en kan hem daarna weer uploaden in directadmin.
Dank iig, ik ben benieuwd.

UPDATE

Ik heb uiteindelijk rocky linux 9 geinstalleerd.
Ging prima en directadmin werkt ook en heb al mijn backups successvol teruggezet:

krijg ook in de log message:

"The User files have been restored from /home/admin/admin_backups"

Alleen ik heb mijn SSH poort acces op 4488, en dit ook geconfigureerd in /etc/ssh/sshd_config
Aan de server ook aangegeven dat ik naar poort 4488 wil bijv:
semanage port -a -t ssh_port_t -p tcp 4488


maar ik blijf Error: Could not connect to server krijgen, weet iemand waar ik dit kan aanpassen?


Kijk eens in de CSF firewall bij de incoming ports? Maar misschien zit er al een firewall vóór jouw vps.

Reageren