MacM2環境でLinuxの勉強がしたいがyumのネット接続をどうすればいいかわからない
解決したいこと
前提としてかなり初心者です。お見苦しい点ありましたら恐縮です。
下記記事に基づいて環境構築し、Linuxの勉強を始めました。
https://envader.plus/article/135
*使用環境
・MacM2
・UTM 4.1.6
・CentOS 7
発生している問題・エラー
しかし、コマンドやマニュアルがインストールされておらず、学習が進まなくなったため、インストールをしようとしたところ、ネット接続されていないとわかりました。ネット接続がなくてもインストールできるという記事(https://www.ktsample.com/engineer/doc/ja/information/linux/article_linux_p1-3.html)を見つけ、試しましたが、その準備のための記事(https://www.ktsample.com/engineer/doc/ja/information/linux/article_linux_p1-2.html#contents2-1)の2つ目に出てくるコマンド「yum info centos-release」で以下のエラーがでて立ち行かなくなりました。
他にもネットに出ている記事やChat GPIの言う方法で試したのですが最終的に同じエラーが出ることが多く、いずれもうまくいきません。
[rootOlocalhost.
*I# uum info centos-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorist http://mirrorist.centos.ord/?release=7&arch aarch6 frepo=osdinfra=stock error was
14: curl#6
"Could not resolve host: mirrorist.centos.org: Unknown 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 "Pix" this
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurletc. 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 land the packages for the previous distribution release still work).
3. Run the conmand with the repository temporarily disabled
ЦшМ
--disablerepo=crepoid>
4. Disable the repository permanently, so yum won't use it by default. Yum will them just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable crepoid>
Or subscription-manager repos --disable=crepoid>
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 land thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise:
yum-config-manager--save--setopt=crepoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base 7/aarch64
前提として誤っているところもあると思いますが、コマンドやマニュアルをインストールするにはどうすれば良いのか、ご教示いただけますと幸いです。よろしくお願いいたします。