• Linux 常规报错


    2020-06-06

    • 错误描述:tar: Cannot connect to nginx-2019-06-02-info.0.log-2019-06-06_06: resolve failed
    [root@backup back_log]# tar xf nginx-2019-06-02-info.0.log-2019-06-06_06:00:01.tar.gz 
    tar: Cannot connect to nginx-2019-06-02-info.0.log-2019-06-06_06: resolve failed
    
    • 原因及解决办法:由于压缩文件名字里面有":",所以会被识别成一个地址,此时解压缩需要使用--force-loca的参数来忽略冒号。
    [root@backup back_log]# tar xf nginx-2019-06-02-info.0.log-2019-06-06_06:00:01.tar.gz  --force-local
    

    2021-04-19

    • 错误描述:mount: /dev/sdb 写保护,将以只读方式挂载
      0 11:13:25 root@dolphindb1,172.16.1.11:~ # mount /dev/sdb /data
    mount: /dev/sdb 写保护,将以只读方式挂载
    mount: 未知的文件系统类型“(null)”
    
    • 原因及解决办法:应该是挂在的磁盘分区不对,如果磁盘分过区,则需要使用分区编号进行挂载。
      0 11:20:12 root@dolphindb1,172.16.1.11:~ # ls /dev/sd*
    /dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sdb  /dev/sdb1  /dev/sdc  /dev/sdc1
      0 11:13:25 root@dolphindb1,172.16.1.11:~ # mount /dev/sdb1 /data
    

    2021-06-05

    • 错误描述:yum update提示“One of the configured repositories failed”
    [root@node17 build]# yum update 
    已加载插件:fastestmirror, langpacks, nvidia
    Loading mirror speeds from cached hostfile
    Could not retrieve mirrorlist http://mirrorlist.centos.org?arch=x86_64&release=7&repo=sclo-rh error was
    14: curl#7 - "Failed to connect to 2604:1580:fe02:2::10: 网络不可达"
    
    
     One of the configured repositories failed (未知),
     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:
    
                yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
    
    Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64
    
    • 原因及解决办法:报错的结尾提示说有个源是无效的,那么我们尝试先把这个源挪走再试。
    [root@node17 build]# mv /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo{,.bak}
    [root@node17 build]# yum update      # 恢复正常
    已加载插件:fastestmirror, langpacks, nvidia
    Loading mirror speeds from cached hostfile
    epel/x86_64/metalink                                                                                                                                                                                                                  | 4.3 kB  00:00:00
    


    写作不易,转载请注明出处,谢谢~~

  • 相关阅读:
    拓端tecdat| R语言使用Bass模型进行手机市场产品周期预测
    19.纯 CSS 创作一种有削铁如泥感觉的菜单导航特效
    3.div+css 的布局较 table 布局有什么优点
    1.五大浏览器内核
    18.纯 CSS 创作 404 文字变形为 NON 文字的交互特效
    17.1拓展之纯 CSS 创作炫酷的同心圆旋转动画
    17.纯 CSS 创作炫酷的同心矩形旋转动画
    16.纯 CSS 创作一个渐变色动画边框
    15.纯 CSS 创作条形图,不用任何图表库
    14.纯 CSS 创作一种侧立图书的特效
  • 原文地址:https://www.cnblogs.com/ccbloom/p/14678475.html
Copyright © 2020-2023  润新知