当前位置: 首页 > news >正文

总结 自行解决问题经验

一、总结在使用Linux时遇到的各种坑

  • yum 源要替换为国内源
  • wget 需要用yum先行下载
  • 在make的时候需要预先安装各种库
  • 端口无法访问时要记得去防火墙开启端口访问权限
  • 安装完各种程序的时候记得创建环境变量或者软链接

二、遇到故障如何正确高效的去解决

  • 在使用yum下载wget的时候报错:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"One of the configured repositories failed (未知),and yum doesn't have enough cached data to continue. At this point the onlysafe 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 workingupstream. This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).3. Disable the repository, so yum won't use it by default. Yum will thenjust ignore the repository until you permanently enable it again or use--enablerepo for temporary usage:yum-config-manager --disable <repoid>4. 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 muchslower). If it is a very temporary problem though, this is often a nicecompromise:yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=trueCannot find a valid baseurl for repo: base/7/x86_64

快速抓住关键语句即Cannot find a valid baseurl for repo: base/7/x86_64并在加上简单的问题描述后Google或者baidu,期望在哪个网站得到答案则加网站关键词后缀,例如:

# CSDN
Linux yum 报错 Cannot find a valid baseurl for repo: base/7/x86_64 CSDN
# 博客园
Linux yum 报错 Cannot find a valid baseurl for repo: base/7/x86_64 cnblog
# 简书
Linux yum 报错 Cannot find a valid baseurl for repo: base/7/x86_64 jianshu
# stack overflow
Linux yum 报错 Cannot find a valid baseurl for repo: base/7/x86_64 stack overflow

检索查询结果并尝试,最后解决问题。

http://www.lryc.cn/news/446240.html

相关文章:

  • 软件设计模式——工厂模式
  • Apache Druid命令执行(CVE-2021-25646)
  • 新的 MathWorks 硬件支持包支持从 MATLAB 和 Simulink 模型到高通 Hexagon 神经处理单元架构的自动化代码生成
  • gorm.io/sharding:改造,当查询条件中不包含分表键时,从自定义方法中获取对应的表进行查询
  • 【CSS】变量的声明与使用
  • 【数学分析笔记】第3章第4节闭区间上的连续函数(1)
  • Mybatis中sql数组为空判断
  • 12.第二阶段x86游戏实战2-CE找基地址
  • 笔记整理—内核!启动!—linux应用编程、网络编程部分(3)文件共享与标准IO
  • plt常用函数介绍一
  • 基于ExtendSim的 电子制造 仿真模型
  • BGP 路由反射器
  • CSRF高级防御绕过
  • MySQL安装文档-Windows
  • html TAB、table生成
  • 2024!再见前端!
  • 【源码+文档+调试讲解】人事管理系统设计与实现Python
  • 基于注意力机制的图表示学习:GRAPH-BERT模型
  • linux服务器安装原生的php环境
  • 数电学习基础(逻辑门电路+)
  • 【艾思科蓝】Spring Boot实战:零基础打造你的Web应用新纪元
  • C++ 二叉树
  • 初探IT世界:从基础到未来
  • 一区黏菌算法+双向深度学习+注意力机制!SMA-BiTCN-BiGRU-Attention黏菌算法优化双向时间卷积双向门控循环单元融合注意力机制多变量回归预测
  • 机器翻译之Bahdanau注意力机制在Seq2Seq中的应用
  • MyBatis 入门教程-搭建入门工程
  • CVE-2024-2389 未经身份验证的命令注入
  • C++初阶-list用法总结
  • 【智能大数据分析 | 实验一】MapReduce实验:单词计数
  • Git 版本控制--git restore和git reset